From 746af5d07d2b7745618eb75ef3757d150ab02042 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Fri, 17 Dec 2021 17:03:51 +0100 Subject: Update generated Thrift API to version 0.15.0 --- pom.xml | 2 +- .../bwlp/thrift/iface/AuthorizationError.java | 8 +- .../bwlp/thrift/iface/ClientSessionData.java | 202 +- .../openslx/bwlp/thrift/iface/DateParamError.java | 8 +- .../openslx/bwlp/thrift/iface/ImageBaseWrite.java | 313 +- .../bwlp/thrift/iface/ImageDetailsRead.java | 467 +- .../bwlp/thrift/iface/ImagePermissions.java | 173 +- .../bwlp/thrift/iface/ImagePublishData.java | 442 +- .../bwlp/thrift/iface/ImageSummaryRead.java | 525 +- .../bwlp/thrift/iface/ImageVersionDetails.java | 286 +- .../bwlp/thrift/iface/ImageVersionWrite.java | 128 +- .../openslx/bwlp/thrift/iface/InvocationError.java | 8 +- .../org/openslx/bwlp/thrift/iface/LdapFilter.java | 188 +- .../bwlp/thrift/iface/LecturePermissions.java | 143 +- .../org/openslx/bwlp/thrift/iface/LectureRead.java | 1152 +- .../openslx/bwlp/thrift/iface/LectureSummary.java | 454 +- .../openslx/bwlp/thrift/iface/LectureWrite.java | 919 +- .../org/openslx/bwlp/thrift/iface/Location.java | 163 +- .../openslx/bwlp/thrift/iface/MasterServer.java | 8010 +++++----- .../openslx/bwlp/thrift/iface/MasterSoftware.java | 163 +- .../org/openslx/bwlp/thrift/iface/MasterTag.java | 148 +- .../openslx/bwlp/thrift/iface/NetDirection.java | 8 +- .../org/openslx/bwlp/thrift/iface/NetRule.java | 162 +- .../org/openslx/bwlp/thrift/iface/NetShare.java | 252 +- .../openslx/bwlp/thrift/iface/NetShareAuth.java | 8 +- .../openslx/bwlp/thrift/iface/OperatingSystem.java | 242 +- .../openslx/bwlp/thrift/iface/Organization.java | 216 +- .../openslx/bwlp/thrift/iface/PredefinedData.java | 253 +- .../openslx/bwlp/thrift/iface/PresetNetRule.java | 183 +- .../openslx/bwlp/thrift/iface/PresetRunScript.java | 181 +- .../java/org/openslx/bwlp/thrift/iface/Role.java | 8 +- .../org/openslx/bwlp/thrift/iface/Satellite.java | 201 +- .../openslx/bwlp/thrift/iface/SatelliteConfig.java | 309 +- .../openslx/bwlp/thrift/iface/SatelliteServer.java | 15462 ++++++++++--------- .../openslx/bwlp/thrift/iface/SatelliteStatus.java | 143 +- .../bwlp/thrift/iface/SatelliteUserConfig.java | 128 +- .../bwlp/thrift/iface/ServerSessionData.java | 133 +- .../org/openslx/bwlp/thrift/iface/SessionData.java | 173 +- .../org/openslx/bwlp/thrift/iface/ShareMode.java | 8 +- .../org/openslx/bwlp/thrift/iface/SscMode.java | 8 +- .../bwlp/thrift/iface/TAuthorizationException.java | 149 +- .../bwlp/thrift/iface/TInvalidDateParam.java | 149 +- .../bwlp/thrift/iface/TInvalidTokenException.java | 111 +- .../bwlp/thrift/iface/TInvocationException.java | 149 +- .../bwlp/thrift/iface/TNotFoundException.java | 135 +- .../thrift/iface/TTransferRejectedException.java | 135 +- .../bwlp/thrift/iface/TransferInformation.java | 245 +- .../openslx/bwlp/thrift/iface/TransferState.java | 8 +- .../openslx/bwlp/thrift/iface/TransferStatus.java | 152 +- .../openslx/bwlp/thrift/iface/UploadOptions.java | 128 +- .../org/openslx/bwlp/thrift/iface/UserInfo.java | 227 +- .../org/openslx/bwlp/thrift/iface/Virtualizer.java | 153 +- .../org/openslx/bwlp/thrift/iface/WhoamiInfo.java | 157 +- .../org/openslx/thrifthelper/ThriftManager.java | 2 +- 54 files changed, 17015 insertions(+), 16865 deletions(-) diff --git a/pom.xml b/pom.xml index ed067a1..8d87bc6 100644 --- a/pom.xml +++ b/pom.xml @@ -143,7 +143,7 @@ org.apache.thrift libthrift - 0.9.3 + 0.15.0 compile diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/AuthorizationError.java b/src/main/java/org/openslx/bwlp/thrift/iface/AuthorizationError.java index cacc3d8..d39865e 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/AuthorizationError.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/AuthorizationError.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,10 +7,7 @@ package org.openslx.bwlp.thrift.iface; -import java.util.Map; -import java.util.HashMap; -import org.apache.thrift.TEnum; - +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public enum AuthorizationError implements org.apache.thrift.TEnum { GENERIC_ERROR(0), NOT_AUTHENTICATED(1), @@ -41,6 +38,7 @@ public enum AuthorizationError implements org.apache.thrift.TEnum { * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ + @org.apache.thrift.annotation.Nullable public static AuthorizationError findByValue(int value) { switch (value) { case 0: diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ClientSessionData.java b/src/main/java/org/openslx/bwlp/thrift/iface/ClientSessionData.java index 715ff3a..5b40cd0 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ClientSessionData.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ClientSessionData.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class ClientSessionData 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("ClientSessionData"); @@ -43,16 +16,13 @@ public class ClientSessionData implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ClientSessionDataStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ClientSessionDataTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ClientSessionDataStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ClientSessionDataTupleSchemeFactory(); - public String sessionId; // required - public String authToken; // required - public List satellites; // required - public UserInfo userInfo; // required + public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String authToken; // required + public @org.apache.thrift.annotation.Nullable java.util.List satellites; // required + public @org.apache.thrift.annotation.Nullable UserInfo userInfo; // 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 { @@ -61,10 +31,10 @@ public class ClientSessionData implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -72,6 +42,7 @@ public class ClientSessionData implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.AUTH_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("authToken", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -134,7 +106,7 @@ public class ClientSessionData implements org.apache.thrift.TBase satellites, + java.lang.String sessionId, + java.lang.String authToken, + java.util.List satellites, UserInfo userInfo) { this(); @@ -165,7 +137,7 @@ public class ClientSessionData implements org.apache.thrift.TBase __this__satellites = new ArrayList(other.satellites.size()); + java.util.List __this__satellites = new java.util.ArrayList(other.satellites.size()); for (Satellite other_element : other.satellites) { __this__satellites.add(new Satellite(other_element)); } @@ -188,11 +160,12 @@ public class ClientSessionData implements org.apache.thrift.TBase getSatellitesIterator() { return (this.satellites == null) ? null : this.satellites.iterator(); } public void addToSatellites(Satellite elem) { if (this.satellites == null) { - this.satellites = new ArrayList(); + this.satellites = new java.util.ArrayList(); } this.satellites.add(elem); } - public List getSatellites() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSatellites() { return this.satellites; } - public ClientSessionData setSatellites(List satellites) { + public ClientSessionData setSatellites(@org.apache.thrift.annotation.Nullable java.util.List satellites) { this.satellites = satellites; return this; } @@ -275,11 +251,12 @@ public class ClientSessionData implements org.apache.thrift.TBase)value); + setSatellites((java.util.List)value); } break; @@ -336,7 +313,8 @@ public class ClientSessionData implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_sessionId = true && (isSetSessionId()); - list.add(present_sessionId); - if (present_sessionId) - list.add(sessionId); + hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287); + if (isSetSessionId()) + hashCode = hashCode * 8191 + sessionId.hashCode(); - boolean present_authToken = true && (isSetAuthToken()); - list.add(present_authToken); - if (present_authToken) - list.add(authToken); + hashCode = hashCode * 8191 + ((isSetAuthToken()) ? 131071 : 524287); + if (isSetAuthToken()) + hashCode = hashCode * 8191 + authToken.hashCode(); - boolean present_satellites = true && (isSetSatellites()); - list.add(present_satellites); - if (present_satellites) - list.add(satellites); + hashCode = hashCode * 8191 + ((isSetSatellites()) ? 131071 : 524287); + if (isSetSatellites()) + hashCode = hashCode * 8191 + satellites.hashCode(); - boolean present_userInfo = true && (isSetUserInfo()); - list.add(present_userInfo); - if (present_userInfo) - list.add(userInfo); + hashCode = hashCode * 8191 + ((isSetUserInfo()) ? 131071 : 524287); + if (isSetUserInfo()) + hashCode = hashCode * 8191 + userInfo.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -460,7 +434,7 @@ public class ClientSessionData implements org.apache.thrift.TBase { + private static class ClientSessionDataStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, ClientSessionData struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -617,8 +592,8 @@ public class ClientSessionData implements org.apache.thrift.TBase(_list16.size); - Satellite _elem17; + struct.satellites = new java.util.ArrayList(_list16.size); + @org.apache.thrift.annotation.Nullable Satellite _elem17; for (int _i18 = 0; _i18 < _list16.size; ++_i18) { _elem17 = new Satellite(); @@ -689,18 +664,18 @@ public class ClientSessionData implements org.apache.thrift.TBase { + private static class ClientSessionDataTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, ClientSessionData struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSessionId()) { optionals.set(0); } @@ -736,8 +711,8 @@ public class ClientSessionData implements org.apache.thrift.TBase(_list21.size); - Satellite _elem22; + org.apache.thrift.protocol.TList _list21 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.satellites = new java.util.ArrayList(_list21.size); + @org.apache.thrift.annotation.Nullable Satellite _elem22; for (int _i23 = 0; _i23 < _list21.size; ++_i23) { _elem22 = new Satellite(); @@ -768,5 +743,8 @@ public class ClientSessionData implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/DateParamError.java b/src/main/java/org/openslx/bwlp/thrift/iface/DateParamError.java index 23910bf..fec22bd 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/DateParamError.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/DateParamError.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,10 +7,7 @@ package org.openslx.bwlp.thrift.iface; -import java.util.Map; -import java.util.HashMap; -import org.apache.thrift.TEnum; - +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public enum DateParamError implements org.apache.thrift.TEnum { TOO_LOW(0), TOO_HIGH(1), @@ -33,6 +30,7 @@ public enum DateParamError implements org.apache.thrift.TEnum { * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ + @org.apache.thrift.annotation.Nullable public static DateParamError findByValue(int value) { switch (value) { case 0: diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ImageBaseWrite.java b/src/main/java/org/openslx/bwlp/thrift/iface/ImageBaseWrite.java index 6e35111..1c796fa 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ImageBaseWrite.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ImageBaseWrite.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class ImageBaseWrite 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("ImageBaseWrite"); @@ -48,25 +21,22 @@ public class ImageBaseWrite implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ImageBaseWriteStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ImageBaseWriteTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ImageBaseWriteStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ImageBaseWriteTupleSchemeFactory(); - public String imageName; // required - public String description; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String description; // required public int osId; // required - public String virtId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String virtId; // required public boolean isTemplate; // required - public ImagePermissions defaultPermissions; // required + public @org.apache.thrift.annotation.Nullable ImagePermissions defaultPermissions; // required /** * * @see ShareMode */ - public ShareMode shareMode; // required - public List addTags; // optional - public List remTags; // optional + public @org.apache.thrift.annotation.Nullable ShareMode shareMode; // required + public @org.apache.thrift.annotation.Nullable java.util.List addTags; // optional + public @org.apache.thrift.annotation.Nullable java.util.List remTags; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -84,10 +54,10 @@ public class ImageBaseWrite implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -95,6 +65,7 @@ public class ImageBaseWrite implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.IMAGE_NAME, new org.apache.thrift.meta_data.FieldMetaData("imageName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -182,7 +154,7 @@ public class ImageBaseWrite implements org.apache.thrift.TBase __this__addTags = new ArrayList(other.addTags); + java.util.List __this__addTags = new java.util.ArrayList(other.addTags); this.addTags = __this__addTags; } if (other.isSetRemTags()) { - List __this__remTags = new ArrayList(other.remTags); + java.util.List __this__remTags = new java.util.ArrayList(other.remTags); this.remTags = __this__remTags; } } @@ -261,11 +233,12 @@ public class ImageBaseWrite implements org.apache.thrift.TBase getAddTagsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getAddTagsIterator() { return (this.addTags == null) ? null : this.addTags.iterator(); } - public void addToAddTags(String elem) { + public void addToAddTags(java.lang.String elem) { if (this.addTags == null) { - this.addTags = new ArrayList(); + this.addTags = new java.util.ArrayList(); } this.addTags.add(elem); } - public List getAddTags() { + @org.apache.thrift.annotation.Nullable + public java.util.List getAddTags() { return this.addTags; } - public ImageBaseWrite setAddTags(List addTags) { + public ImageBaseWrite setAddTags(@org.apache.thrift.annotation.Nullable java.util.List addTags) { this.addTags = addTags; return this; } @@ -478,22 +457,24 @@ public class ImageBaseWrite implements org.apache.thrift.TBase getRemTagsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getRemTagsIterator() { return (this.remTags == null) ? null : this.remTags.iterator(); } - public void addToRemTags(String elem) { + public void addToRemTags(java.lang.String elem) { if (this.remTags == null) { - this.remTags = new ArrayList(); + this.remTags = new java.util.ArrayList(); } this.remTags.add(elem); } - public List getRemTags() { + @org.apache.thrift.annotation.Nullable + public java.util.List getRemTags() { return this.remTags; } - public ImageBaseWrite setRemTags(List remTags) { + public ImageBaseWrite setRemTags(@org.apache.thrift.annotation.Nullable java.util.List remTags) { this.remTags = remTags; return this; } @@ -513,13 +494,13 @@ public class ImageBaseWrite implements org.apache.thrift.TBase)value); + setAddTags((java.util.List)value); } break; @@ -583,14 +564,15 @@ public class ImageBaseWrite implements org.apache.thrift.TBase)value); + setRemTags((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case IMAGE_NAME: return getImageName(); @@ -620,13 +602,13 @@ public class ImageBaseWrite implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_imageName = true && (isSetImageName()); - list.add(present_imageName); - if (present_imageName) - list.add(imageName); + hashCode = hashCode * 8191 + ((isSetImageName()) ? 131071 : 524287); + if (isSetImageName()) + hashCode = hashCode * 8191 + imageName.hashCode(); - boolean present_description = true && (isSetDescription()); - list.add(present_description); - if (present_description) - list.add(description); + hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287); + if (isSetDescription()) + hashCode = hashCode * 8191 + description.hashCode(); - boolean present_osId = true; - list.add(present_osId); - if (present_osId) - list.add(osId); + hashCode = hashCode * 8191 + osId; - boolean present_virtId = true && (isSetVirtId()); - list.add(present_virtId); - if (present_virtId) - list.add(virtId); + hashCode = hashCode * 8191 + ((isSetVirtId()) ? 131071 : 524287); + if (isSetVirtId()) + hashCode = hashCode * 8191 + virtId.hashCode(); - boolean present_isTemplate = true; - list.add(present_isTemplate); - if (present_isTemplate) - list.add(isTemplate); + hashCode = hashCode * 8191 + ((isTemplate) ? 131071 : 524287); - boolean present_defaultPermissions = true && (isSetDefaultPermissions()); - list.add(present_defaultPermissions); - if (present_defaultPermissions) - list.add(defaultPermissions); + hashCode = hashCode * 8191 + ((isSetDefaultPermissions()) ? 131071 : 524287); + if (isSetDefaultPermissions()) + hashCode = hashCode * 8191 + defaultPermissions.hashCode(); - boolean present_shareMode = true && (isSetShareMode()); - list.add(present_shareMode); - if (present_shareMode) - list.add(shareMode.getValue()); + hashCode = hashCode * 8191 + ((isSetShareMode()) ? 131071 : 524287); + if (isSetShareMode()) + hashCode = hashCode * 8191 + shareMode.getValue(); - boolean present_addTags = true && (isSetAddTags()); - list.add(present_addTags); - if (present_addTags) - list.add(addTags); + hashCode = hashCode * 8191 + ((isSetAddTags()) ? 131071 : 524287); + if (isSetAddTags()) + hashCode = hashCode * 8191 + addTags.hashCode(); - boolean present_remTags = true && (isSetRemTags()); - list.add(present_remTags); - if (present_remTags) - list.add(remTags); + hashCode = hashCode * 8191 + ((isSetRemTags()) ? 131071 : 524287); + if (isSetRemTags()) + hashCode = hashCode * 8191 + remTags.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -809,7 +778,7 @@ public class ImageBaseWrite implements org.apache.thrift.TBase { + private static class ImageBaseWriteStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, ImageBaseWrite struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -1095,8 +1065,8 @@ public class ImageBaseWrite implements org.apache.thrift.TBase(_list34.size); - String _elem35; + struct.addTags = new java.util.ArrayList(_list34.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem35; for (int _i36 = 0; _i36 < _list34.size; ++_i36) { _elem35 = iprot.readString(); @@ -1113,8 +1083,8 @@ public class ImageBaseWrite implements org.apache.thrift.TBase(_list37.size); - String _elem38; + struct.remTags = new java.util.ArrayList(_list37.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem38; for (int _i39 = 0; _i39 < _list37.size; ++_i39) { _elem38 = iprot.readString(); @@ -1178,7 +1148,7 @@ public class ImageBaseWrite implements org.apache.thrift.TBase { + private static class ImageBaseWriteTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, ImageBaseWrite struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetImageName()) { optionals.set(0); } @@ -1271,7 +1241,7 @@ public class ImageBaseWrite implements org.apache.thrift.TBase(_list44.size); - String _elem45; + org.apache.thrift.protocol.TList _list44 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.addTags = new java.util.ArrayList(_list44.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem45; for (int _i46 = 0; _i46 < _list44.size; ++_i46) { _elem45 = iprot.readString(); @@ -1336,9 +1306,9 @@ public class ImageBaseWrite implements org.apache.thrift.TBase(_list47.size); - String _elem48; + org.apache.thrift.protocol.TList _list47 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.remTags = new java.util.ArrayList(_list47.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem48; for (int _i49 = 0; _i49 < _list47.size; ++_i49) { _elem48 = iprot.readString(); @@ -1350,5 +1320,8 @@ public class ImageBaseWrite implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ImageDetailsRead.java b/src/main/java/org/openslx/bwlp/thrift/iface/ImageDetailsRead.java index e4e7eac..62e6854 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ImageDetailsRead.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ImageDetailsRead.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class ImageDetailsRead 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("ImageDetailsRead"); @@ -55,32 +28,29 @@ public class ImageDetailsRead implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ImageDetailsReadStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ImageDetailsReadTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ImageDetailsReadStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ImageDetailsReadTupleSchemeFactory(); - public String imageBaseId; // required - public String latestVersionId; // required - public List versions; // required - public String imageName; // required - public String description; // required - public List tags; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String latestVersionId; // required + public @org.apache.thrift.annotation.Nullable java.util.List versions; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String description; // required + public @org.apache.thrift.annotation.Nullable java.util.List tags; // required public int osId; // required - public String virtId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String virtId; // required public long createTime; // required public long updateTime; // required - public String ownerId; // required - public String updaterId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String ownerId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String updaterId; // required /** * * @see ShareMode */ - public ShareMode shareMode; // required + public @org.apache.thrift.annotation.Nullable ShareMode shareMode; // required public boolean isTemplate; // required - public ImagePermissions defaultPermissions; // required - public ImagePermissions userPermissions; // optional + public @org.apache.thrift.annotation.Nullable ImagePermissions defaultPermissions; // required + public @org.apache.thrift.annotation.Nullable ImagePermissions userPermissions; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -105,10 +75,10 @@ public class ImageDetailsRead implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -116,6 +86,7 @@ public class ImageDetailsRead implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.LATEST_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("latestVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -233,7 +205,7 @@ public class ImageDetailsRead implements org.apache.thrift.TBase versions, - String imageName, - String description, - List tags, + java.lang.String imageBaseId, + java.lang.String latestVersionId, + java.util.List versions, + java.lang.String imageName, + java.lang.String description, + java.util.List tags, int osId, - String virtId, + java.lang.String virtId, long createTime, long updateTime, - String ownerId, - String updaterId, + java.lang.String ownerId, + java.lang.String updaterId, ShareMode shareMode, boolean isTemplate, ImagePermissions defaultPermissions) @@ -291,7 +263,7 @@ public class ImageDetailsRead implements org.apache.thrift.TBase __this__versions = new ArrayList(other.versions.size()); + java.util.List __this__versions = new java.util.ArrayList(other.versions.size()); for (ImageVersionDetails other_element : other.versions) { __this__versions.add(new ImageVersionDetails(other_element)); } @@ -304,7 +276,7 @@ public class ImageDetailsRead implements org.apache.thrift.TBase __this__tags = new ArrayList(other.tags); + java.util.List __this__tags = new java.util.ArrayList(other.tags); this.tags = __this__tags; } this.osId = other.osId; @@ -359,11 +331,12 @@ public class ImageDetailsRead implements org.apache.thrift.TBase getVersionsIterator() { return (this.versions == null) ? null : this.versions.iterator(); } public void addToVersions(ImageVersionDetails elem) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new java.util.ArrayList(); } this.versions.add(elem); } - public List getVersions() { + @org.apache.thrift.annotation.Nullable + public java.util.List getVersions() { return this.versions; } - public ImageDetailsRead setVersions(List versions) { + public ImageDetailsRead setVersions(@org.apache.thrift.annotation.Nullable java.util.List versions) { this.versions = versions; return this; } @@ -446,11 +422,12 @@ public class ImageDetailsRead implements org.apache.thrift.TBase getTagsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getTagsIterator() { return (this.tags == null) ? null : this.tags.iterator(); } - public void addToTags(String elem) { + public void addToTags(java.lang.String elem) { if (this.tags == null) { - this.tags = new ArrayList(); + this.tags = new java.util.ArrayList(); } this.tags.add(elem); } - public List getTags() { + @org.apache.thrift.annotation.Nullable + public java.util.List getTags() { return this.tags; } - public ImageDetailsRead setTags(List tags) { + public ImageDetailsRead setTags(@org.apache.thrift.annotation.Nullable java.util.List tags) { this.tags = tags; return this; } @@ -544,23 +524,24 @@ public class ImageDetailsRead implements org.apache.thrift.TBase)value); + setVersions((java.util.List)value); } break; @@ -807,7 +793,7 @@ public class ImageDetailsRead implements org.apache.thrift.TBase)value); + setTags((java.util.List)value); } break; @@ -831,7 +817,7 @@ public class ImageDetailsRead implements org.apache.thrift.TBase list = new ArrayList(); - - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); - - boolean present_latestVersionId = true && (isSetLatestVersionId()); - list.add(present_latestVersionId); - if (present_latestVersionId) - list.add(latestVersionId); - - boolean present_versions = true && (isSetVersions()); - list.add(present_versions); - if (present_versions) - list.add(versions); - - boolean present_imageName = true && (isSetImageName()); - list.add(present_imageName); - if (present_imageName) - list.add(imageName); - - boolean present_description = true && (isSetDescription()); - list.add(present_description); - if (present_description) - list.add(description); - - boolean present_tags = true && (isSetTags()); - list.add(present_tags); - if (present_tags) - list.add(tags); - - boolean present_osId = true; - list.add(present_osId); - if (present_osId) - list.add(osId); - - boolean present_virtId = true && (isSetVirtId()); - list.add(present_virtId); - if (present_virtId) - list.add(virtId); - - boolean present_createTime = true; - list.add(present_createTime); - if (present_createTime) - list.add(createTime); - - boolean present_updateTime = true; - list.add(present_updateTime); - if (present_updateTime) - list.add(updateTime); - - boolean present_ownerId = true && (isSetOwnerId()); - list.add(present_ownerId); - if (present_ownerId) - list.add(ownerId); - - boolean present_updaterId = true && (isSetUpdaterId()); - list.add(present_updaterId); - if (present_updaterId) - list.add(updaterId); - - boolean present_shareMode = true && (isSetShareMode()); - list.add(present_shareMode); - if (present_shareMode) - list.add(shareMode.getValue()); - - boolean present_isTemplate = true; - list.add(present_isTemplate); - if (present_isTemplate) - list.add(isTemplate); - - boolean present_defaultPermissions = true && (isSetDefaultPermissions()); - list.add(present_defaultPermissions); - if (present_defaultPermissions) - list.add(defaultPermissions); - - boolean present_userPermissions = true && (isSetUserPermissions()); - list.add(present_userPermissions); - if (present_userPermissions) - list.add(userPermissions); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetLatestVersionId()) ? 131071 : 524287); + if (isSetLatestVersionId()) + hashCode = hashCode * 8191 + latestVersionId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetVersions()) ? 131071 : 524287); + if (isSetVersions()) + hashCode = hashCode * 8191 + versions.hashCode(); + + hashCode = hashCode * 8191 + ((isSetImageName()) ? 131071 : 524287); + if (isSetImageName()) + hashCode = hashCode * 8191 + imageName.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287); + if (isSetDescription()) + hashCode = hashCode * 8191 + description.hashCode(); + + hashCode = hashCode * 8191 + ((isSetTags()) ? 131071 : 524287); + if (isSetTags()) + hashCode = hashCode * 8191 + tags.hashCode(); + + hashCode = hashCode * 8191 + osId; + + hashCode = hashCode * 8191 + ((isSetVirtId()) ? 131071 : 524287); + if (isSetVirtId()) + hashCode = hashCode * 8191 + virtId.hashCode(); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(createTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(updateTime); + + hashCode = hashCode * 8191 + ((isSetOwnerId()) ? 131071 : 524287); + if (isSetOwnerId()) + hashCode = hashCode * 8191 + ownerId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetUpdaterId()) ? 131071 : 524287); + if (isSetUpdaterId()) + hashCode = hashCode * 8191 + updaterId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetShareMode()) ? 131071 : 524287); + if (isSetShareMode()) + hashCode = hashCode * 8191 + shareMode.getValue(); + + hashCode = hashCode * 8191 + ((isTemplate) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetDefaultPermissions()) ? 131071 : 524287); + if (isSetDefaultPermissions()) + hashCode = hashCode * 8191 + defaultPermissions.hashCode(); + + hashCode = hashCode * 8191 + ((isSetUserPermissions()) ? 131071 : 524287); + if (isSetUserPermissions()) + hashCode = hashCode * 8191 + userPermissions.hashCode(); + + return hashCode; } @Override @@ -1262,7 +1225,7 @@ public class ImageDetailsRead implements org.apache.thrift.TBase { + private static class ImageDetailsReadStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, ImageDetailsRead struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -1626,8 +1590,8 @@ public class ImageDetailsRead implements org.apache.thrift.TBase(_list58.size); - ImageVersionDetails _elem59; + struct.versions = new java.util.ArrayList(_list58.size); + @org.apache.thrift.annotation.Nullable ImageVersionDetails _elem59; for (int _i60 = 0; _i60 < _list58.size; ++_i60) { _elem59 = new ImageVersionDetails(); @@ -1661,8 +1625,8 @@ public class ImageDetailsRead implements org.apache.thrift.TBase(_list61.size); - String _elem62; + struct.tags = new java.util.ArrayList(_list61.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem62; for (int _i63 = 0; _i63 < _list61.size; ++_i63) { _elem62 = iprot.readString(); @@ -1803,7 +1767,7 @@ public class ImageDetailsRead implements org.apache.thrift.TBase { + private static class ImageDetailsReadTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, ImageDetailsRead struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetImageBaseId()) { optionals.set(0); } @@ -1951,7 +1915,7 @@ public class ImageDetailsRead implements org.apache.thrift.TBase(_list68.size); - ImageVersionDetails _elem69; + org.apache.thrift.protocol.TList _list68 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.versions = new java.util.ArrayList(_list68.size); + @org.apache.thrift.annotation.Nullable ImageVersionDetails _elem69; for (int _i70 = 0; _i70 < _list68.size; ++_i70) { _elem69 = new ImageVersionDetails(); @@ -2025,9 +1989,9 @@ public class ImageDetailsRead implements org.apache.thrift.TBase(_list71.size); - String _elem72; + org.apache.thrift.protocol.TList _list71 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.tags = new java.util.ArrayList(_list71.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem72; for (int _i73 = 0; _i73 < _list71.size; ++_i73) { _elem72 = iprot.readString(); @@ -2081,5 +2045,8 @@ public class ImageDetailsRead implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ImagePermissions.java b/src/main/java/org/openslx/bwlp/thrift/iface/ImagePermissions.java index 57cc72e..5b0d739 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ImagePermissions.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ImagePermissions.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class ImagePermissions 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("ImagePermissions"); @@ -43,11 +16,8 @@ public class ImagePermissions implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ImagePermissionsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ImagePermissionsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ImagePermissionsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ImagePermissionsTupleSchemeFactory(); public boolean link; // required public boolean download; // required @@ -61,10 +31,10 @@ public class ImagePermissions implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -72,6 +42,7 @@ public class ImagePermissions implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.LINK, new org.apache.thrift.meta_data.FieldMetaData("link", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.DOWNLOAD, new org.apache.thrift.meta_data.FieldMetaData("download", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -138,7 +110,7 @@ public class ImagePermissions implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_link = true; - list.add(present_link); - if (present_link) - list.add(link); + hashCode = hashCode * 8191 + ((link) ? 131071 : 524287); - boolean present_download = true; - list.add(present_download); - if (present_download) - list.add(download); + hashCode = hashCode * 8191 + ((download) ? 131071 : 524287); - boolean present_edit = true; - list.add(present_edit); - if (present_edit) - list.add(edit); + hashCode = hashCode * 8191 + ((edit) ? 131071 : 524287); - boolean present_admin = true; - list.add(present_admin); - if (present_admin) - list.add(admin); + hashCode = hashCode * 8191 + ((admin) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -442,7 +403,7 @@ public class ImagePermissions implements org.apache.thrift.TBase { + private static class ImagePermissionsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, ImagePermissions struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -627,18 +589,18 @@ public class ImagePermissions implements org.apache.thrift.TBase { + private static class ImagePermissionsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, ImagePermissions struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetLink()) { optionals.set(0); } @@ -668,8 +630,8 @@ public class ImagePermissions implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 9226df6..541b4ea 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ImagePublishData.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ImagePublishData.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-04-20") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class ImagePublishData 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("ImagePublishData"); @@ -53,26 +26,23 @@ public class ImagePublishData implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ImagePublishDataStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ImagePublishDataTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ImagePublishDataStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ImagePublishDataTupleSchemeFactory(); - public String imageBaseId; // required - public String imageVersionId; // required - public String imageName; // required - public String description; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String description; // required public long createTime; // required - public UserInfo uploader; // required + public @org.apache.thrift.annotation.Nullable UserInfo uploader; // required public long fileSize; // required - public List software; // required - public List tags; // required + public @org.apache.thrift.annotation.Nullable java.util.List software; // required + public @org.apache.thrift.annotation.Nullable java.util.List tags; // required public int osId; // required - public String virtId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String virtId; // required public boolean isTemplate; // required - public UserInfo owner; // required - public ByteBuffer machineDescription; // required + public @org.apache.thrift.annotation.Nullable UserInfo owner; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer machineDescription; // 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 { @@ -91,10 +61,10 @@ public class ImagePublishData implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -102,6 +72,7 @@ public class ImagePublishData implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -210,7 +182,7 @@ public class ImagePublishData implements org.apache.thrift.TBase software, - List tags, + java.util.List software, + java.util.List tags, int osId, - String virtId, + java.lang.String virtId, boolean isTemplate, UserInfo owner, - ByteBuffer machineDescription) + java.nio.ByteBuffer machineDescription) { this(); this.imageBaseId = imageBaseId; @@ -277,11 +249,11 @@ public class ImagePublishData implements org.apache.thrift.TBase __this__software = new ArrayList(other.software); + java.util.List __this__software = new java.util.ArrayList(other.software); this.software = __this__software; } if (other.isSetTags()) { - List __this__tags = new ArrayList(other.tags); + java.util.List __this__tags = new java.util.ArrayList(other.tags); this.tags = __this__tags; } this.osId = other.osId; @@ -323,11 +295,12 @@ public class ImagePublishData implements org.apache.thrift.TBase getSoftwareIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getSoftwareIterator() { return (this.software == null) ? null : this.software.iterator(); } - public void addToSoftware(String elem) { + public void addToSoftware(java.lang.String elem) { if (this.software == null) { - this.software = new ArrayList(); + this.software = new java.util.ArrayList(); } this.software.add(elem); } - public List getSoftware() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSoftware() { return this.software; } - public ImagePublishData setSoftware(List software) { + public ImagePublishData setSoftware(@org.apache.thrift.annotation.Nullable java.util.List software) { this.software = software; return this; } @@ -532,22 +511,24 @@ public class ImagePublishData implements org.apache.thrift.TBase getTagsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getTagsIterator() { return (this.tags == null) ? null : this.tags.iterator(); } - public void addToTags(String elem) { + public void addToTags(java.lang.String elem) { if (this.tags == null) { - this.tags = new ArrayList(); + this.tags = new java.util.ArrayList(); } this.tags.add(elem); } - public List getTags() { + @org.apache.thrift.annotation.Nullable + public java.util.List getTags() { return this.tags; } - public ImagePublishData setTags(List tags) { + public ImagePublishData setTags(@org.apache.thrift.annotation.Nullable java.util.List tags) { this.tags = tags; return this; } @@ -578,23 +559,24 @@ public class ImagePublishData implements org.apache.thrift.TBase)value); + setSoftware((java.util.List)value); } break; @@ -765,7 +748,7 @@ public class ImagePublishData implements org.apache.thrift.TBase)value); + setTags((java.util.List)value); } break; @@ -773,7 +756,7 @@ public class ImagePublishData implements org.apache.thrift.TBase list = new ArrayList(); - - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); - - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); - - boolean present_imageName = true && (isSetImageName()); - list.add(present_imageName); - if (present_imageName) - list.add(imageName); - - boolean present_description = true && (isSetDescription()); - list.add(present_description); - if (present_description) - list.add(description); - - boolean present_createTime = true; - list.add(present_createTime); - if (present_createTime) - list.add(createTime); - - boolean present_uploader = true && (isSetUploader()); - list.add(present_uploader); - if (present_uploader) - list.add(uploader); - - boolean present_fileSize = true; - list.add(present_fileSize); - if (present_fileSize) - list.add(fileSize); - - boolean present_software = true && (isSetSoftware()); - list.add(present_software); - if (present_software) - list.add(software); - - boolean present_tags = true && (isSetTags()); - list.add(present_tags); - if (present_tags) - list.add(tags); - - boolean present_osId = true; - list.add(present_osId); - if (present_osId) - list.add(osId); - - boolean present_virtId = true && (isSetVirtId()); - list.add(present_virtId); - if (present_virtId) - list.add(virtId); - - boolean present_isTemplate = true; - list.add(present_isTemplate); - if (present_isTemplate) - list.add(isTemplate); - - boolean present_owner = true && (isSetOwner()); - list.add(present_owner); - if (present_owner) - list.add(owner); - - boolean present_machineDescription = true && (isSetMachineDescription()); - list.add(present_machineDescription); - if (present_machineDescription) - list.add(machineDescription); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetImageName()) ? 131071 : 524287); + if (isSetImageName()) + hashCode = hashCode * 8191 + imageName.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287); + if (isSetDescription()) + hashCode = hashCode * 8191 + description.hashCode(); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(createTime); + + hashCode = hashCode * 8191 + ((isSetUploader()) ? 131071 : 524287); + if (isSetUploader()) + hashCode = hashCode * 8191 + uploader.hashCode(); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(fileSize); + + hashCode = hashCode * 8191 + ((isSetSoftware()) ? 131071 : 524287); + if (isSetSoftware()) + hashCode = hashCode * 8191 + software.hashCode(); + + hashCode = hashCode * 8191 + ((isSetTags()) ? 131071 : 524287); + if (isSetTags()) + hashCode = hashCode * 8191 + tags.hashCode(); + + hashCode = hashCode * 8191 + osId; + + hashCode = hashCode * 8191 + ((isSetVirtId()) ? 131071 : 524287); + if (isSetVirtId()) + hashCode = hashCode * 8191 + virtId.hashCode(); + + hashCode = hashCode * 8191 + ((isTemplate) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetOwner()) ? 131071 : 524287); + if (isSetOwner()) + hashCode = hashCode * 8191 + owner.hashCode(); + + hashCode = hashCode * 8191 + ((isSetMachineDescription()) ? 131071 : 524287); + if (isSetMachineDescription()) + hashCode = hashCode * 8191 + machineDescription.hashCode(); + + return hashCode; } @Override @@ -1126,7 +1092,7 @@ public class ImagePublishData implements org.apache.thrift.TBase { + private static class ImagePublishDataStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, ImagePublishData struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -1493,8 +1460,8 @@ public class ImagePublishData implements org.apache.thrift.TBase(_list74.size); - String _elem75; + struct.software = new java.util.ArrayList(_list74.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem75; for (int _i76 = 0; _i76 < _list74.size; ++_i76) { _elem75 = iprot.readString(); @@ -1511,8 +1478,8 @@ public class ImagePublishData implements org.apache.thrift.TBase(_list77.size); - String _elem78; + struct.tags = new java.util.ArrayList(_list77.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem78; for (int _i79 = 0; _i79 < _list77.size; ++_i79) { _elem78 = iprot.readString(); @@ -1616,7 +1583,7 @@ public class ImagePublishData implements org.apache.thrift.TBase { + private static class ImagePublishDataTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, ImagePublishData struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetImageBaseId()) { optionals.set(0); } @@ -1742,7 +1709,7 @@ public class ImagePublishData implements org.apache.thrift.TBase(_list84.size); - String _elem85; + org.apache.thrift.protocol.TList _list84 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.software = new java.util.ArrayList(_list84.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem85; for (int _i86 = 0; _i86 < _list84.size; ++_i86) { _elem85 = iprot.readString(); @@ -1822,9 +1789,9 @@ public class ImagePublishData implements org.apache.thrift.TBase(_list87.size); - String _elem88; + org.apache.thrift.protocol.TList _list87 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.tags = new java.util.ArrayList(_list87.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem88; for (int _i89 = 0; _i89 < _list87.size; ++_i89) { _elem88 = iprot.readString(); @@ -1857,5 +1824,8 @@ public class ImagePublishData implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ImageSummaryRead.java b/src/main/java/org/openslx/bwlp/thrift/iface/ImageSummaryRead.java index 235b90a..35c0ddc 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ImageSummaryRead.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ImageSummaryRead.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2020-10-12") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class ImageSummaryRead implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ImageSummaryRead"); @@ -61,36 +34,33 @@ public class ImageSummaryRead implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ImageSummaryReadStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ImageSummaryReadTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ImageSummaryReadStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ImageSummaryReadTupleSchemeFactory(); - public String imageBaseId; // required - public String latestVersionId; // required - public String imageName; // required - public String description; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String latestVersionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String description; // required public int osId; // required - public String virtId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String virtId; // required public long createTime; // required public long updateTime; // required public long uploadTime; // required public long expireTime; // required - public String ownerId; // required - public String uploaderId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String ownerId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String uploaderId; // required /** * * @see ShareMode */ - public ShareMode shareMode; // required + public @org.apache.thrift.annotation.Nullable ShareMode shareMode; // required public long fileSize; // required public boolean isRestricted; // required public boolean isValid; // required public boolean isProcessed; // required public boolean isTemplate; // required - public ImagePermissions defaultPermissions; // required - public ImagePermissions userPermissions; // optional + public @org.apache.thrift.annotation.Nullable ImagePermissions defaultPermissions; // required + public @org.apache.thrift.annotation.Nullable ImagePermissions userPermissions; // optional public long fileSizeSum; // optional public int versionCount; // optional @@ -123,10 +93,10 @@ public class ImageSummaryRead implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -134,6 +104,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.LATEST_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("latestVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -281,7 +253,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase list = new ArrayList(); - - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); - - boolean present_latestVersionId = true && (isSetLatestVersionId()); - list.add(present_latestVersionId); - if (present_latestVersionId) - list.add(latestVersionId); - - boolean present_imageName = true && (isSetImageName()); - list.add(present_imageName); - if (present_imageName) - list.add(imageName); - - boolean present_description = true && (isSetDescription()); - list.add(present_description); - if (present_description) - list.add(description); - - boolean present_osId = true; - list.add(present_osId); - if (present_osId) - list.add(osId); - - boolean present_virtId = true && (isSetVirtId()); - list.add(present_virtId); - if (present_virtId) - list.add(virtId); - - boolean present_createTime = true; - list.add(present_createTime); - if (present_createTime) - list.add(createTime); - - boolean present_updateTime = true; - list.add(present_updateTime); - if (present_updateTime) - list.add(updateTime); - - boolean present_uploadTime = true; - list.add(present_uploadTime); - if (present_uploadTime) - list.add(uploadTime); - - boolean present_expireTime = true; - list.add(present_expireTime); - if (present_expireTime) - list.add(expireTime); - - boolean present_ownerId = true && (isSetOwnerId()); - list.add(present_ownerId); - if (present_ownerId) - list.add(ownerId); - - boolean present_uploaderId = true && (isSetUploaderId()); - list.add(present_uploaderId); - if (present_uploaderId) - list.add(uploaderId); - - boolean present_shareMode = true && (isSetShareMode()); - list.add(present_shareMode); - if (present_shareMode) - list.add(shareMode.getValue()); - - boolean present_fileSize = true; - list.add(present_fileSize); - if (present_fileSize) - list.add(fileSize); - - boolean present_isRestricted = true; - list.add(present_isRestricted); - if (present_isRestricted) - list.add(isRestricted); - - boolean present_isValid = true; - list.add(present_isValid); - if (present_isValid) - list.add(isValid); - - boolean present_isProcessed = true; - list.add(present_isProcessed); - if (present_isProcessed) - list.add(isProcessed); - - boolean present_isTemplate = true; - list.add(present_isTemplate); - if (present_isTemplate) - list.add(isTemplate); - - boolean present_defaultPermissions = true && (isSetDefaultPermissions()); - list.add(present_defaultPermissions); - if (present_defaultPermissions) - list.add(defaultPermissions); - - boolean present_userPermissions = true && (isSetUserPermissions()); - list.add(present_userPermissions); - if (present_userPermissions) - list.add(userPermissions); - - boolean present_fileSizeSum = true && (isSetFileSizeSum()); - list.add(present_fileSizeSum); - if (present_fileSizeSum) - list.add(fileSizeSum); - - boolean present_versionCount = true && (isSetVersionCount()); - list.add(present_versionCount); - if (present_versionCount) - list.add(versionCount); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetLatestVersionId()) ? 131071 : 524287); + if (isSetLatestVersionId()) + hashCode = hashCode * 8191 + latestVersionId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetImageName()) ? 131071 : 524287); + if (isSetImageName()) + hashCode = hashCode * 8191 + imageName.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287); + if (isSetDescription()) + hashCode = hashCode * 8191 + description.hashCode(); + + hashCode = hashCode * 8191 + osId; + + hashCode = hashCode * 8191 + ((isSetVirtId()) ? 131071 : 524287); + if (isSetVirtId()) + hashCode = hashCode * 8191 + virtId.hashCode(); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(createTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(updateTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(uploadTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(expireTime); + + hashCode = hashCode * 8191 + ((isSetOwnerId()) ? 131071 : 524287); + if (isSetOwnerId()) + hashCode = hashCode * 8191 + ownerId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetUploaderId()) ? 131071 : 524287); + if (isSetUploaderId()) + hashCode = hashCode * 8191 + uploaderId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetShareMode()) ? 131071 : 524287); + if (isSetShareMode()) + hashCode = hashCode * 8191 + shareMode.getValue(); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(fileSize); + + hashCode = hashCode * 8191 + ((isRestricted) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isValid) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isProcessed) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isTemplate) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetDefaultPermissions()) ? 131071 : 524287); + if (isSetDefaultPermissions()) + hashCode = hashCode * 8191 + defaultPermissions.hashCode(); + + hashCode = hashCode * 8191 + ((isSetUserPermissions()) ? 131071 : 524287); + if (isSetUserPermissions()) + hashCode = hashCode * 8191 + userPermissions.hashCode(); + + hashCode = hashCode * 8191 + ((isSetFileSizeSum()) ? 131071 : 524287); + if (isSetFileSizeSum()) + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(fileSizeSum); + + hashCode = hashCode * 8191 + ((isSetVersionCount()) ? 131071 : 524287); + if (isSetVersionCount()) + hashCode = hashCode * 8191 + versionCount; + + return hashCode; } @Override @@ -1603,7 +1544,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase { + private static class ImageSummaryReadStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, ImageSummaryRead struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -2318,18 +2260,18 @@ public class ImageSummaryRead implements org.apache.thrift.TBase { + private static class ImageSummaryReadTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, ImageSummaryRead struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetImageBaseId()) { optionals.set(0); } @@ -2467,8 +2409,8 @@ public class ImageSummaryRead implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 abba44a..27d3256 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ImageVersionDetails.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ImageVersionDetails.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class ImageVersionDetails 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("ImageVersionDetails"); @@ -48,21 +21,18 @@ public class ImageVersionDetails implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ImageVersionDetailsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ImageVersionDetailsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ImageVersionDetailsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ImageVersionDetailsTupleSchemeFactory(); - public String versionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String versionId; // required public long createTime; // required public long expireTime; // required public long fileSize; // required - public String uploaderId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String uploaderId; // required public boolean isRestricted; // required public boolean isValid; // required public boolean isProcessed; // required - public List software; // required + public @org.apache.thrift.annotation.Nullable java.util.List 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 { @@ -76,10 +46,10 @@ public class ImageVersionDetails implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -87,6 +57,7 @@ public class ImageVersionDetails implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("versionId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.CREATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("createTime", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -176,7 +148,7 @@ public class ImageVersionDetails implements org.apache.thrift.TBase software) + java.util.List software) { this(); this.versionId = versionId; @@ -230,7 +202,7 @@ public class ImageVersionDetails implements org.apache.thrift.TBase __this__software = new ArrayList(other.software); + java.util.List __this__software = new java.util.ArrayList(other.software); this.software = __this__software; } } @@ -258,11 +230,12 @@ public class ImageVersionDetails implements org.apache.thrift.TBase getSoftwareIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getSoftwareIterator() { return (this.software == null) ? null : this.software.iterator(); } - public void addToSoftware(String elem) { + public void addToSoftware(java.lang.String elem) { if (this.software == null) { - this.software = new ArrayList(); + this.software = new java.util.ArrayList(); } this.software.add(elem); } - public List getSoftware() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSoftware() { return this.software; } - public ImageVersionDetails setSoftware(List software) { + public ImageVersionDetails setSoftware(@org.apache.thrift.annotation.Nullable java.util.List software) { this.software = software; return this; } @@ -483,13 +459,13 @@ public class ImageVersionDetails implements org.apache.thrift.TBase)value); + setSoftware((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case VERSION_ID: return getVersionId(); @@ -590,13 +567,13 @@ public class ImageVersionDetails implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_versionId = true && (isSetVersionId()); - list.add(present_versionId); - if (present_versionId) - list.add(versionId); + hashCode = hashCode * 8191 + ((isSetVersionId()) ? 131071 : 524287); + if (isSetVersionId()) + hashCode = hashCode * 8191 + versionId.hashCode(); - boolean present_createTime = true; - list.add(present_createTime); - if (present_createTime) - list.add(createTime); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(createTime); - boolean present_expireTime = true; - list.add(present_expireTime); - if (present_expireTime) - list.add(expireTime); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(expireTime); - boolean present_fileSize = true; - list.add(present_fileSize); - if (present_fileSize) - list.add(fileSize); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(fileSize); - boolean present_uploaderId = true && (isSetUploaderId()); - list.add(present_uploaderId); - if (present_uploaderId) - list.add(uploaderId); + hashCode = hashCode * 8191 + ((isSetUploaderId()) ? 131071 : 524287); + if (isSetUploaderId()) + hashCode = hashCode * 8191 + uploaderId.hashCode(); - boolean present_isRestricted = true; - list.add(present_isRestricted); - if (present_isRestricted) - list.add(isRestricted); + hashCode = hashCode * 8191 + ((isRestricted) ? 131071 : 524287); - boolean present_isValid = true; - list.add(present_isValid); - if (present_isValid) - list.add(isValid); + hashCode = hashCode * 8191 + ((isValid) ? 131071 : 524287); - boolean present_isProcessed = true; - list.add(present_isProcessed); - if (present_isProcessed) - list.add(isProcessed); + hashCode = hashCode * 8191 + ((isProcessed) ? 131071 : 524287); - boolean present_software = true && (isSetSoftware()); - list.add(present_software); - if (present_software) - list.add(software); + hashCode = hashCode * 8191 + ((isSetSoftware()) ? 131071 : 524287); + if (isSetSoftware()) + hashCode = hashCode * 8191 + software.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -779,7 +735,7 @@ public class ImageVersionDetails implements org.apache.thrift.TBase { + private static class ImageVersionDetailsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, ImageVersionDetails struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -1049,8 +1006,8 @@ public class ImageVersionDetails implements org.apache.thrift.TBase(_list50.size); - String _elem51; + struct.software = new java.util.ArrayList(_list50.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem51; for (int _i52 = 0; _i52 < _list50.size; ++_i52) { _elem51 = iprot.readString(); @@ -1110,7 +1067,7 @@ public class ImageVersionDetails implements org.apache.thrift.TBase { + private static class ImageVersionDetailsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, ImageVersionDetails struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetVersionId()) { optionals.set(0); } @@ -1191,7 +1148,7 @@ public class ImageVersionDetails implements org.apache.thrift.TBase(_list55.size); - String _elem56; + org.apache.thrift.protocol.TList _list55 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.software = new java.util.ArrayList(_list55.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem56; for (int _i57 = 0; _i57 < _list55.size; ++_i57) { _elem56 = iprot.readString(); @@ -1251,5 +1208,8 @@ public class ImageVersionDetails implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ImageVersionWrite.java b/src/main/java/org/openslx/bwlp/thrift/iface/ImageVersionWrite.java index 70a41fd..1870045 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ImageVersionWrite.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ImageVersionWrite.java @@ -1,50 +1,20 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class ImageVersionWrite 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("ImageVersionWrite"); private static final org.apache.thrift.protocol.TField IS_RESTRICTED_FIELD_DESC = new org.apache.thrift.protocol.TField("isRestricted", org.apache.thrift.protocol.TType.BOOL, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ImageVersionWriteStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ImageVersionWriteTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ImageVersionWriteStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ImageVersionWriteTupleSchemeFactory(); public boolean isRestricted; // required @@ -52,10 +22,10 @@ public class ImageVersionWrite implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -63,6 +33,7 @@ public class ImageVersionWrite implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.IS_RESTRICTED, new org.apache.thrift.meta_data.FieldMetaData("isRestricted", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ImageVersionWrite.class, metaDataMap); } @@ -158,57 +130,56 @@ public class ImageVersionWrite implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_isRestricted = true; - list.add(present_isRestricted); - if (present_isRestricted) - list.add(isRestricted); + hashCode = hashCode * 8191 + ((isRestricted) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -250,7 +220,7 @@ public class ImageVersionWrite implements org.apache.thrift.TBase { + private static class ImageVersionWriteStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, ImageVersionWrite struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -360,18 +331,18 @@ public class ImageVersionWrite implements org.apache.thrift.TBase { + private static class ImageVersionWriteTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, ImageVersionWrite struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetIsRestricted()) { optionals.set(0); } @@ -383,8 +354,8 @@ public class ImageVersionWrite implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/InvocationError.java b/src/main/java/org/openslx/bwlp/thrift/iface/InvocationError.java index 5f2b9a9..93d1477 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/InvocationError.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/InvocationError.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,10 +7,7 @@ package org.openslx.bwlp.thrift.iface; -import java.util.Map; -import java.util.HashMap; -import org.apache.thrift.TEnum; - +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public enum InvocationError implements org.apache.thrift.TEnum { MISSING_DATA(0), INVALID_DATA(1), @@ -37,6 +34,7 @@ public enum InvocationError implements org.apache.thrift.TEnum { * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ + @org.apache.thrift.annotation.Nullable public static InvocationError findByValue(int value) { switch (value) { case 0: diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LdapFilter.java b/src/main/java/org/openslx/bwlp/thrift/iface/LdapFilter.java index ba80e7b..3666868 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LdapFilter.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LdapFilter.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-11-23") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class LdapFilter 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("LdapFilter"); @@ -43,16 +16,13 @@ public class LdapFilter implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new LdapFilterStandardSchemeFactory()); - schemes.put(TupleScheme.class, new LdapFilterTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new LdapFilterStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new LdapFilterTupleSchemeFactory(); - public String attribute; // required - public String value; // required + public @org.apache.thrift.annotation.Nullable java.lang.String attribute; // required + public @org.apache.thrift.annotation.Nullable java.lang.String value; // required public int filterId; // optional - public String title; // optional + public @org.apache.thrift.annotation.Nullable java.lang.String title; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -61,10 +31,10 @@ public class LdapFilter implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -72,6 +42,7 @@ public class LdapFilter implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ATTRIBUTE, new org.apache.thrift.meta_data.FieldMetaData("attribute", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -136,7 +108,7 @@ public class LdapFilter implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_attribute = true && (isSetAttribute()); - list.add(present_attribute); - if (present_attribute) - list.add(attribute); + hashCode = hashCode * 8191 + ((isSetAttribute()) ? 131071 : 524287); + if (isSetAttribute()) + hashCode = hashCode * 8191 + attribute.hashCode(); - boolean present_value = true && (isSetValue()); - list.add(present_value); - if (present_value) - list.add(value); + hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287); + if (isSetValue()) + hashCode = hashCode * 8191 + value.hashCode(); - boolean present_filterId = true && (isSetFilterId()); - list.add(present_filterId); - if (present_filterId) - list.add(filterId); + hashCode = hashCode * 8191 + ((isSetFilterId()) ? 131071 : 524287); + if (isSetFilterId()) + hashCode = hashCode * 8191 + filterId; - boolean present_title = true && (isSetTitle()); - list.add(present_title); - if (present_title) - list.add(title); + hashCode = hashCode * 8191 + ((isSetTitle()) ? 131071 : 524287); + if (isSetTitle()) + hashCode = hashCode * 8191 + title.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -438,7 +410,7 @@ public class LdapFilter implements org.apache.thrift.TBase { + private static class LdapFilterStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, LdapFilter struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -649,18 +622,18 @@ public class LdapFilter implements org.apache.thrift.TBase { + private static class LdapFilterTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, LdapFilter struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAttribute()) { optionals.set(0); } @@ -690,8 +663,8 @@ public class LdapFilter implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LecturePermissions.java b/src/main/java/org/openslx/bwlp/thrift/iface/LecturePermissions.java index a3b8d8a..2149f30 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LecturePermissions.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LecturePermissions.java @@ -1,51 +1,21 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class LecturePermissions 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("LecturePermissions"); private static final org.apache.thrift.protocol.TField EDIT_FIELD_DESC = new org.apache.thrift.protocol.TField("edit", org.apache.thrift.protocol.TType.BOOL, (short)1); private static final org.apache.thrift.protocol.TField ADMIN_FIELD_DESC = new org.apache.thrift.protocol.TField("admin", org.apache.thrift.protocol.TType.BOOL, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new LecturePermissionsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new LecturePermissionsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new LecturePermissionsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new LecturePermissionsTupleSchemeFactory(); public boolean edit; // required public boolean admin; // required @@ -55,10 +25,10 @@ public class LecturePermissions implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -66,6 +36,7 @@ public class LecturePermissions implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EDIT, new org.apache.thrift.meta_data.FieldMetaData("edit", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.ADMIN, new org.apache.thrift.meta_data.FieldMetaData("admin", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LecturePermissions.class, metaDataMap); } @@ -172,16 +144,16 @@ public class LecturePermissions implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_edit = true; - list.add(present_edit); - if (present_edit) - list.add(edit); + hashCode = hashCode * 8191 + ((edit) ? 131071 : 524287); - boolean present_admin = true; - list.add(present_admin); - if (present_admin) - list.add(admin); + hashCode = hashCode * 8191 + ((admin) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -314,7 +281,7 @@ public class LecturePermissions implements org.apache.thrift.TBase { + private static class LecturePermissionsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, LecturePermissions struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -449,18 +417,18 @@ public class LecturePermissions implements org.apache.thrift.TBase { + private static class LecturePermissionsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, LecturePermissions struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetEdit()) { optionals.set(0); } @@ -478,8 +446,8 @@ public class LecturePermissions implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 be1aa0c..b23cde8 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-02-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class LectureRead 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("LectureRead"); @@ -72,17 +45,14 @@ public class LectureRead implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new LectureReadStandardSchemeFactory()); - schemes.put(TupleScheme.class, new LectureReadTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new LectureReadStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new LectureReadTupleSchemeFactory(); - public String lectureId; // required - public String lectureName; // required - public String description; // required - public String imageVersionId; // required - public String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String description; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageBaseId; // required public boolean autoUpdate; // required public boolean isEnabled; // required public long startTime; // required @@ -91,26 +61,26 @@ public class LectureRead implements org.apache.thrift.TBase nics; // required - public List allowedUsers; // required - public List networkExceptions; // required + public @org.apache.thrift.annotation.Nullable java.lang.String ownerId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String updaterId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String runscript; // required + public @org.apache.thrift.annotation.Nullable java.util.List nics; // required + public @org.apache.thrift.annotation.Nullable java.util.List allowedUsers; // required + public @org.apache.thrift.annotation.Nullable java.util.List networkExceptions; // required public boolean isExam; // required public boolean hasInternetAccess; // required - public LecturePermissions defaultPermissions; // required - public LecturePermissions userPermissions; // optional - public List locationIds; // required + public @org.apache.thrift.annotation.Nullable LecturePermissions defaultPermissions; // required + public @org.apache.thrift.annotation.Nullable LecturePermissions userPermissions; // optional + public @org.apache.thrift.annotation.Nullable java.util.List locationIds; // required public boolean limitToLocations; // required public boolean limitToAllowedUsers; // required public boolean hasUsbAccess; // required - public List networkShares; // optional - public List ldapFilters; // optional - public List presetScriptIds; // optional - public List presetNetworkShares; // optional - public List presetLdapFilters; // optional - public List presetNetworkExceptionIds; // optional + public @org.apache.thrift.annotation.Nullable java.util.List networkShares; // optional + public @org.apache.thrift.annotation.Nullable java.util.List ldapFilters; // optional + public @org.apache.thrift.annotation.Nullable java.util.List presetScriptIds; // optional + public @org.apache.thrift.annotation.Nullable java.util.List presetNetworkShares; // optional + public @org.apache.thrift.annotation.Nullable java.util.List presetLdapFilters; // optional + public @org.apache.thrift.annotation.Nullable java.util.List presetNetworkExceptionIds; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -148,10 +118,10 @@ public class LectureRead implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -159,6 +129,7 @@ public class LectureRead implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.LECTURE_NAME, new org.apache.thrift.meta_data.FieldMetaData("lectureName", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -361,7 +333,7 @@ public class LectureRead implements org.apache.thrift.TBase nics, - List allowedUsers, - List networkExceptions, + java.lang.String ownerId, + java.lang.String updaterId, + java.lang.String runscript, + java.util.List nics, + java.util.List allowedUsers, + java.util.List networkExceptions, boolean isExam, boolean hasInternetAccess, LecturePermissions defaultPermissions, - List locationIds, + java.util.List locationIds, boolean limitToLocations, boolean limitToAllowedUsers, boolean hasUsbAccess) @@ -476,15 +448,15 @@ public class LectureRead implements org.apache.thrift.TBase __this__nics = new ArrayList(other.nics); + java.util.List __this__nics = new java.util.ArrayList(other.nics); this.nics = __this__nics; } if (other.isSetAllowedUsers()) { - List __this__allowedUsers = new ArrayList(other.allowedUsers); + java.util.List __this__allowedUsers = new java.util.ArrayList(other.allowedUsers); this.allowedUsers = __this__allowedUsers; } if (other.isSetNetworkExceptions()) { - List __this__networkExceptions = new ArrayList(other.networkExceptions.size()); + java.util.List __this__networkExceptions = new java.util.ArrayList(other.networkExceptions.size()); for (NetRule other_element : other.networkExceptions) { __this__networkExceptions.add(new NetRule(other_element)); } @@ -499,40 +471,40 @@ public class LectureRead implements org.apache.thrift.TBase __this__locationIds = new ArrayList(other.locationIds); + java.util.List __this__locationIds = new java.util.ArrayList(other.locationIds); this.locationIds = __this__locationIds; } this.limitToLocations = other.limitToLocations; this.limitToAllowedUsers = other.limitToAllowedUsers; this.hasUsbAccess = other.hasUsbAccess; if (other.isSetNetworkShares()) { - List __this__networkShares = new ArrayList(other.networkShares.size()); + java.util.List __this__networkShares = new java.util.ArrayList(other.networkShares.size()); for (NetShare other_element : other.networkShares) { __this__networkShares.add(new NetShare(other_element)); } this.networkShares = __this__networkShares; } if (other.isSetLdapFilters()) { - List __this__ldapFilters = new ArrayList(other.ldapFilters.size()); + java.util.List __this__ldapFilters = new java.util.ArrayList(other.ldapFilters.size()); for (LdapFilter other_element : other.ldapFilters) { __this__ldapFilters.add(new LdapFilter(other_element)); } this.ldapFilters = __this__ldapFilters; } if (other.isSetPresetScriptIds()) { - List __this__presetScriptIds = new ArrayList(other.presetScriptIds); + java.util.List __this__presetScriptIds = new java.util.ArrayList(other.presetScriptIds); this.presetScriptIds = __this__presetScriptIds; } if (other.isSetPresetNetworkShares()) { - List __this__presetNetworkShares = new ArrayList(other.presetNetworkShares); + java.util.List __this__presetNetworkShares = new java.util.ArrayList(other.presetNetworkShares); this.presetNetworkShares = __this__presetNetworkShares; } if (other.isSetPresetLdapFilters()) { - List __this__presetLdapFilters = new ArrayList(other.presetLdapFilters); + java.util.List __this__presetLdapFilters = new java.util.ArrayList(other.presetLdapFilters); this.presetLdapFilters = __this__presetLdapFilters; } if (other.isSetPresetNetworkExceptionIds()) { - List __this__presetNetworkExceptionIds = new ArrayList(other.presetNetworkExceptionIds); + java.util.List __this__presetNetworkExceptionIds = new java.util.ArrayList(other.presetNetworkExceptionIds); this.presetNetworkExceptionIds = __this__presetNetworkExceptionIds; } } @@ -591,11 +563,12 @@ public class LectureRead implements org.apache.thrift.TBase getNicsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getNicsIterator() { return (this.nics == null) ? null : this.nics.iterator(); } - public void addToNics(String elem) { + public void addToNics(java.lang.String elem) { if (this.nics == null) { - this.nics = new ArrayList(); + this.nics = new java.util.ArrayList(); } this.nics.add(elem); } - public List getNics() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNics() { return this.nics; } - public LectureRead setNics(List nics) { + public LectureRead setNics(@org.apache.thrift.annotation.Nullable java.util.List nics) { this.nics = nics; return this; } @@ -1010,22 +992,24 @@ public class LectureRead implements org.apache.thrift.TBase getAllowedUsersIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getAllowedUsersIterator() { return (this.allowedUsers == null) ? null : this.allowedUsers.iterator(); } - public void addToAllowedUsers(String elem) { + public void addToAllowedUsers(java.lang.String elem) { if (this.allowedUsers == null) { - this.allowedUsers = new ArrayList(); + this.allowedUsers = new java.util.ArrayList(); } this.allowedUsers.add(elem); } - public List getAllowedUsers() { + @org.apache.thrift.annotation.Nullable + public java.util.List getAllowedUsers() { return this.allowedUsers; } - public LectureRead setAllowedUsers(List allowedUsers) { + public LectureRead setAllowedUsers(@org.apache.thrift.annotation.Nullable java.util.List allowedUsers) { this.allowedUsers = allowedUsers; return this; } @@ -1049,22 +1033,24 @@ public class LectureRead implements org.apache.thrift.TBase getNetworkExceptionsIterator() { return (this.networkExceptions == null) ? null : this.networkExceptions.iterator(); } public void addToNetworkExceptions(NetRule elem) { if (this.networkExceptions == null) { - this.networkExceptions = new ArrayList(); + this.networkExceptions = new java.util.ArrayList(); } this.networkExceptions.add(elem); } - public List getNetworkExceptions() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNetworkExceptions() { return this.networkExceptions; } - public LectureRead setNetworkExceptions(List networkExceptions) { + public LectureRead setNetworkExceptions(@org.apache.thrift.annotation.Nullable java.util.List networkExceptions) { this.networkExceptions = networkExceptions; return this; } @@ -1095,16 +1081,16 @@ public class LectureRead implements org.apache.thrift.TBase getLocationIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getLocationIdsIterator() { return (this.locationIds == null) ? null : this.locationIds.iterator(); } public void addToLocationIds(int elem) { if (this.locationIds == null) { - this.locationIds = new ArrayList(); + this.locationIds = new java.util.ArrayList(); } this.locationIds.add(elem); } - public List getLocationIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List getLocationIds() { return this.locationIds; } - public LectureRead setLocationIds(List locationIds) { + public LectureRead setLocationIds(@org.apache.thrift.annotation.Nullable java.util.List locationIds) { this.locationIds = locationIds; return this; } @@ -1228,16 +1218,16 @@ public class LectureRead implements org.apache.thrift.TBase getNetworkSharesIterator() { return (this.networkShares == null) ? null : this.networkShares.iterator(); } public void addToNetworkShares(NetShare elem) { if (this.networkShares == null) { - this.networkShares = new ArrayList(); + this.networkShares = new java.util.ArrayList(); } this.networkShares.add(elem); } - public List getNetworkShares() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNetworkShares() { return this.networkShares; } - public LectureRead setNetworkShares(List networkShares) { + public LectureRead setNetworkShares(@org.apache.thrift.annotation.Nullable java.util.List networkShares) { this.networkShares = networkShares; return this; } @@ -1329,22 +1321,24 @@ public class LectureRead implements org.apache.thrift.TBase getLdapFiltersIterator() { return (this.ldapFilters == null) ? null : this.ldapFilters.iterator(); } public void addToLdapFilters(LdapFilter elem) { if (this.ldapFilters == null) { - this.ldapFilters = new ArrayList(); + this.ldapFilters = new java.util.ArrayList(); } this.ldapFilters.add(elem); } - public List getLdapFilters() { + @org.apache.thrift.annotation.Nullable + public java.util.List getLdapFilters() { return this.ldapFilters; } - public LectureRead setLdapFilters(List ldapFilters) { + public LectureRead setLdapFilters(@org.apache.thrift.annotation.Nullable java.util.List ldapFilters) { this.ldapFilters = ldapFilters; return this; } @@ -1368,22 +1362,24 @@ public class LectureRead implements org.apache.thrift.TBase getPresetScriptIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getPresetScriptIdsIterator() { return (this.presetScriptIds == null) ? null : this.presetScriptIds.iterator(); } public void addToPresetScriptIds(int elem) { if (this.presetScriptIds == null) { - this.presetScriptIds = new ArrayList(); + this.presetScriptIds = new java.util.ArrayList(); } this.presetScriptIds.add(elem); } - public List getPresetScriptIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List getPresetScriptIds() { return this.presetScriptIds; } - public LectureRead setPresetScriptIds(List presetScriptIds) { + public LectureRead setPresetScriptIds(@org.apache.thrift.annotation.Nullable java.util.List presetScriptIds) { this.presetScriptIds = presetScriptIds; return this; } @@ -1407,22 +1403,24 @@ public class LectureRead implements org.apache.thrift.TBase getPresetNetworkSharesIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getPresetNetworkSharesIterator() { return (this.presetNetworkShares == null) ? null : this.presetNetworkShares.iterator(); } public void addToPresetNetworkShares(int elem) { if (this.presetNetworkShares == null) { - this.presetNetworkShares = new ArrayList(); + this.presetNetworkShares = new java.util.ArrayList(); } this.presetNetworkShares.add(elem); } - public List getPresetNetworkShares() { + @org.apache.thrift.annotation.Nullable + public java.util.List getPresetNetworkShares() { return this.presetNetworkShares; } - public LectureRead setPresetNetworkShares(List presetNetworkShares) { + public LectureRead setPresetNetworkShares(@org.apache.thrift.annotation.Nullable java.util.List presetNetworkShares) { this.presetNetworkShares = presetNetworkShares; return this; } @@ -1446,22 +1444,24 @@ public class LectureRead implements org.apache.thrift.TBase getPresetLdapFiltersIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getPresetLdapFiltersIterator() { return (this.presetLdapFilters == null) ? null : this.presetLdapFilters.iterator(); } public void addToPresetLdapFilters(int elem) { if (this.presetLdapFilters == null) { - this.presetLdapFilters = new ArrayList(); + this.presetLdapFilters = new java.util.ArrayList(); } this.presetLdapFilters.add(elem); } - public List getPresetLdapFilters() { + @org.apache.thrift.annotation.Nullable + public java.util.List getPresetLdapFilters() { return this.presetLdapFilters; } - public LectureRead setPresetLdapFilters(List presetLdapFilters) { + public LectureRead setPresetLdapFilters(@org.apache.thrift.annotation.Nullable java.util.List presetLdapFilters) { this.presetLdapFilters = presetLdapFilters; return this; } @@ -1485,22 +1485,24 @@ public class LectureRead implements org.apache.thrift.TBase getPresetNetworkExceptionIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getPresetNetworkExceptionIdsIterator() { return (this.presetNetworkExceptionIds == null) ? null : this.presetNetworkExceptionIds.iterator(); } public void addToPresetNetworkExceptionIds(int elem) { if (this.presetNetworkExceptionIds == null) { - this.presetNetworkExceptionIds = new ArrayList(); + this.presetNetworkExceptionIds = new java.util.ArrayList(); } this.presetNetworkExceptionIds.add(elem); } - public List getPresetNetworkExceptionIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List getPresetNetworkExceptionIds() { return this.presetNetworkExceptionIds; } - public LectureRead setPresetNetworkExceptionIds(List presetNetworkExceptionIds) { + public LectureRead setPresetNetworkExceptionIds(@org.apache.thrift.annotation.Nullable java.util.List presetNetworkExceptionIds) { this.presetNetworkExceptionIds = presetNetworkExceptionIds; return this; } @@ -1520,13 +1522,13 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setNics((java.util.List)value); } break; @@ -1662,7 +1664,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setAllowedUsers((java.util.List)value); } break; @@ -1670,7 +1672,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setNetworkExceptions((java.util.List)value); } break; @@ -1678,7 +1680,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setLocationIds((java.util.List)value); } break; @@ -1718,7 +1720,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setNetworkShares((java.util.List)value); } break; @@ -1750,7 +1752,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setLdapFilters((java.util.List)value); } break; @@ -1758,7 +1760,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setPresetScriptIds((java.util.List)value); } break; @@ -1766,7 +1768,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setPresetNetworkShares((java.util.List)value); } break; @@ -1774,7 +1776,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setPresetLdapFilters((java.util.List)value); } break; @@ -1782,14 +1784,15 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setPresetNetworkExceptionIds((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case LECTURE_ID: return getLectureId(); @@ -1891,13 +1894,13 @@ public class LectureRead implements org.apache.thrift.TBase list = new ArrayList(); - - boolean present_lectureId = true && (isSetLectureId()); - list.add(present_lectureId); - if (present_lectureId) - list.add(lectureId); - - boolean present_lectureName = true && (isSetLectureName()); - list.add(present_lectureName); - if (present_lectureName) - list.add(lectureName); - - boolean present_description = true && (isSetDescription()); - list.add(present_description); - if (present_description) - list.add(description); - - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); - - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); - - boolean present_autoUpdate = true; - list.add(present_autoUpdate); - if (present_autoUpdate) - list.add(autoUpdate); - - boolean present_isEnabled = true; - list.add(present_isEnabled); - if (present_isEnabled) - list.add(isEnabled); - - boolean present_startTime = true; - list.add(present_startTime); - if (present_startTime) - list.add(startTime); - - boolean present_endTime = true; - list.add(present_endTime); - if (present_endTime) - list.add(endTime); - - boolean present_lastUsed = true; - list.add(present_lastUsed); - if (present_lastUsed) - list.add(lastUsed); - - boolean present_useCount = true; - list.add(present_useCount); - if (present_useCount) - list.add(useCount); - - boolean present_createTime = true; - list.add(present_createTime); - if (present_createTime) - list.add(createTime); - - boolean present_updateTime = true; - list.add(present_updateTime); - if (present_updateTime) - list.add(updateTime); - - boolean present_ownerId = true && (isSetOwnerId()); - list.add(present_ownerId); - if (present_ownerId) - list.add(ownerId); - - boolean present_updaterId = true && (isSetUpdaterId()); - list.add(present_updaterId); - if (present_updaterId) - list.add(updaterId); - - boolean present_runscript = true && (isSetRunscript()); - list.add(present_runscript); - if (present_runscript) - list.add(runscript); - - boolean present_nics = true && (isSetNics()); - list.add(present_nics); - if (present_nics) - list.add(nics); - - boolean present_allowedUsers = true && (isSetAllowedUsers()); - list.add(present_allowedUsers); - if (present_allowedUsers) - list.add(allowedUsers); - - boolean present_networkExceptions = true && (isSetNetworkExceptions()); - list.add(present_networkExceptions); - if (present_networkExceptions) - list.add(networkExceptions); - - boolean present_isExam = true; - list.add(present_isExam); - if (present_isExam) - list.add(isExam); - - boolean present_hasInternetAccess = true; - list.add(present_hasInternetAccess); - if (present_hasInternetAccess) - list.add(hasInternetAccess); - - boolean present_defaultPermissions = true && (isSetDefaultPermissions()); - list.add(present_defaultPermissions); - if (present_defaultPermissions) - list.add(defaultPermissions); - - boolean present_userPermissions = true && (isSetUserPermissions()); - list.add(present_userPermissions); - if (present_userPermissions) - list.add(userPermissions); - - boolean present_locationIds = true && (isSetLocationIds()); - list.add(present_locationIds); - if (present_locationIds) - list.add(locationIds); - - boolean present_limitToLocations = true; - list.add(present_limitToLocations); - if (present_limitToLocations) - list.add(limitToLocations); - - boolean present_limitToAllowedUsers = true; - list.add(present_limitToAllowedUsers); - if (present_limitToAllowedUsers) - list.add(limitToAllowedUsers); - - boolean present_hasUsbAccess = true; - list.add(present_hasUsbAccess); - if (present_hasUsbAccess) - list.add(hasUsbAccess); - - boolean present_networkShares = true && (isSetNetworkShares()); - list.add(present_networkShares); - if (present_networkShares) - list.add(networkShares); - - boolean present_ldapFilters = true && (isSetLdapFilters()); - list.add(present_ldapFilters); - if (present_ldapFilters) - list.add(ldapFilters); - - boolean present_presetScriptIds = true && (isSetPresetScriptIds()); - list.add(present_presetScriptIds); - if (present_presetScriptIds) - list.add(presetScriptIds); - - boolean present_presetNetworkShares = true && (isSetPresetNetworkShares()); - list.add(present_presetNetworkShares); - if (present_presetNetworkShares) - list.add(presetNetworkShares); - - boolean present_presetLdapFilters = true && (isSetPresetLdapFilters()); - list.add(present_presetLdapFilters); - if (present_presetLdapFilters) - list.add(presetLdapFilters); - - boolean present_presetNetworkExceptionIds = true && (isSetPresetNetworkExceptionIds()); - list.add(present_presetNetworkExceptionIds); - if (present_presetNetworkExceptionIds) - list.add(presetNetworkExceptionIds); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetLectureId()) ? 131071 : 524287); + if (isSetLectureId()) + hashCode = hashCode * 8191 + lectureId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetLectureName()) ? 131071 : 524287); + if (isSetLectureName()) + hashCode = hashCode * 8191 + lectureName.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287); + if (isSetDescription()) + hashCode = hashCode * 8191 + description.hashCode(); + + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); + + hashCode = hashCode * 8191 + ((autoUpdate) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isEnabled) ? 131071 : 524287); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(endTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(lastUsed); + + hashCode = hashCode * 8191 + useCount; + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(createTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(updateTime); + + hashCode = hashCode * 8191 + ((isSetOwnerId()) ? 131071 : 524287); + if (isSetOwnerId()) + hashCode = hashCode * 8191 + ownerId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetUpdaterId()) ? 131071 : 524287); + if (isSetUpdaterId()) + hashCode = hashCode * 8191 + updaterId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetRunscript()) ? 131071 : 524287); + if (isSetRunscript()) + hashCode = hashCode * 8191 + runscript.hashCode(); + + hashCode = hashCode * 8191 + ((isSetNics()) ? 131071 : 524287); + if (isSetNics()) + hashCode = hashCode * 8191 + nics.hashCode(); + + hashCode = hashCode * 8191 + ((isSetAllowedUsers()) ? 131071 : 524287); + if (isSetAllowedUsers()) + hashCode = hashCode * 8191 + allowedUsers.hashCode(); + + hashCode = hashCode * 8191 + ((isSetNetworkExceptions()) ? 131071 : 524287); + if (isSetNetworkExceptions()) + hashCode = hashCode * 8191 + networkExceptions.hashCode(); + + hashCode = hashCode * 8191 + ((isExam) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((hasInternetAccess) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetDefaultPermissions()) ? 131071 : 524287); + if (isSetDefaultPermissions()) + hashCode = hashCode * 8191 + defaultPermissions.hashCode(); + + hashCode = hashCode * 8191 + ((isSetUserPermissions()) ? 131071 : 524287); + if (isSetUserPermissions()) + hashCode = hashCode * 8191 + userPermissions.hashCode(); + + hashCode = hashCode * 8191 + ((isSetLocationIds()) ? 131071 : 524287); + if (isSetLocationIds()) + hashCode = hashCode * 8191 + locationIds.hashCode(); + + hashCode = hashCode * 8191 + ((limitToLocations) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((limitToAllowedUsers) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((hasUsbAccess) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetNetworkShares()) ? 131071 : 524287); + if (isSetNetworkShares()) + hashCode = hashCode * 8191 + networkShares.hashCode(); + + hashCode = hashCode * 8191 + ((isSetLdapFilters()) ? 131071 : 524287); + if (isSetLdapFilters()) + hashCode = hashCode * 8191 + ldapFilters.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPresetScriptIds()) ? 131071 : 524287); + if (isSetPresetScriptIds()) + hashCode = hashCode * 8191 + presetScriptIds.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPresetNetworkShares()) ? 131071 : 524287); + if (isSetPresetNetworkShares()) + hashCode = hashCode * 8191 + presetNetworkShares.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPresetLdapFilters()) ? 131071 : 524287); + if (isSetPresetLdapFilters()) + hashCode = hashCode * 8191 + presetLdapFilters.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPresetNetworkExceptionIds()) ? 131071 : 524287); + if (isSetPresetNetworkExceptionIds()) + hashCode = hashCode * 8191 + presetNetworkExceptionIds.hashCode(); + + return hashCode; } @Override @@ -2464,7 +2408,7 @@ public class LectureRead implements org.apache.thrift.TBase { + private static class LectureReadStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, LectureRead struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -3221,13 +3166,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list202.size); - String _elem203; - for (int _i204 = 0; _i204 < _list202.size; ++_i204) + org.apache.thrift.protocol.TList _list210 = iprot.readListBegin(); + struct.nics = new java.util.ArrayList(_list210.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem211; + for (int _i212 = 0; _i212 < _list210.size; ++_i212) { - _elem203 = iprot.readString(); - struct.nics.add(_elem203); + _elem211 = iprot.readString(); + struct.nics.add(_elem211); } iprot.readListEnd(); } @@ -3239,13 +3184,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list205.size); - String _elem206; - for (int _i207 = 0; _i207 < _list205.size; ++_i207) + org.apache.thrift.protocol.TList _list213 = iprot.readListBegin(); + struct.allowedUsers = new java.util.ArrayList(_list213.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem214; + for (int _i215 = 0; _i215 < _list213.size; ++_i215) { - _elem206 = iprot.readString(); - struct.allowedUsers.add(_elem206); + _elem214 = iprot.readString(); + struct.allowedUsers.add(_elem214); } iprot.readListEnd(); } @@ -3257,14 +3202,14 @@ public class LectureRead implements org.apache.thrift.TBase(_list208.size); - NetRule _elem209; - for (int _i210 = 0; _i210 < _list208.size; ++_i210) + org.apache.thrift.protocol.TList _list216 = iprot.readListBegin(); + struct.networkExceptions = new java.util.ArrayList(_list216.size); + @org.apache.thrift.annotation.Nullable NetRule _elem217; + for (int _i218 = 0; _i218 < _list216.size; ++_i218) { - _elem209 = new NetRule(); - _elem209.read(iprot); - struct.networkExceptions.add(_elem209); + _elem217 = new NetRule(); + _elem217.read(iprot); + struct.networkExceptions.add(_elem217); } iprot.readListEnd(); } @@ -3310,13 +3255,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list211.size); - int _elem212; - for (int _i213 = 0; _i213 < _list211.size; ++_i213) + org.apache.thrift.protocol.TList _list219 = iprot.readListBegin(); + struct.locationIds = new java.util.ArrayList(_list219.size); + int _elem220; + for (int _i221 = 0; _i221 < _list219.size; ++_i221) { - _elem212 = iprot.readI32(); - struct.locationIds.add(_elem212); + _elem220 = iprot.readI32(); + struct.locationIds.add(_elem220); } iprot.readListEnd(); } @@ -3352,14 +3297,14 @@ public class LectureRead implements org.apache.thrift.TBase(_list214.size); - NetShare _elem215; - for (int _i216 = 0; _i216 < _list214.size; ++_i216) + org.apache.thrift.protocol.TList _list222 = iprot.readListBegin(); + struct.networkShares = new java.util.ArrayList(_list222.size); + @org.apache.thrift.annotation.Nullable NetShare _elem223; + for (int _i224 = 0; _i224 < _list222.size; ++_i224) { - _elem215 = new NetShare(); - _elem215.read(iprot); - struct.networkShares.add(_elem215); + _elem223 = new NetShare(); + _elem223.read(iprot); + struct.networkShares.add(_elem223); } iprot.readListEnd(); } @@ -3371,14 +3316,14 @@ public class LectureRead implements org.apache.thrift.TBase(_list217.size); - LdapFilter _elem218; - for (int _i219 = 0; _i219 < _list217.size; ++_i219) + org.apache.thrift.protocol.TList _list225 = iprot.readListBegin(); + struct.ldapFilters = new java.util.ArrayList(_list225.size); + @org.apache.thrift.annotation.Nullable LdapFilter _elem226; + for (int _i227 = 0; _i227 < _list225.size; ++_i227) { - _elem218 = new LdapFilter(); - _elem218.read(iprot); - struct.ldapFilters.add(_elem218); + _elem226 = new LdapFilter(); + _elem226.read(iprot); + struct.ldapFilters.add(_elem226); } iprot.readListEnd(); } @@ -3390,13 +3335,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list220.size); - int _elem221; - for (int _i222 = 0; _i222 < _list220.size; ++_i222) + org.apache.thrift.protocol.TList _list228 = iprot.readListBegin(); + struct.presetScriptIds = new java.util.ArrayList(_list228.size); + int _elem229; + for (int _i230 = 0; _i230 < _list228.size; ++_i230) { - _elem221 = iprot.readI32(); - struct.presetScriptIds.add(_elem221); + _elem229 = iprot.readI32(); + struct.presetScriptIds.add(_elem229); } iprot.readListEnd(); } @@ -3408,13 +3353,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list223.size); - int _elem224; - for (int _i225 = 0; _i225 < _list223.size; ++_i225) + org.apache.thrift.protocol.TList _list231 = iprot.readListBegin(); + struct.presetNetworkShares = new java.util.ArrayList(_list231.size); + int _elem232; + for (int _i233 = 0; _i233 < _list231.size; ++_i233) { - _elem224 = iprot.readI32(); - struct.presetNetworkShares.add(_elem224); + _elem232 = iprot.readI32(); + struct.presetNetworkShares.add(_elem232); } iprot.readListEnd(); } @@ -3426,13 +3371,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list226.size); - int _elem227; - for (int _i228 = 0; _i228 < _list226.size; ++_i228) + org.apache.thrift.protocol.TList _list234 = iprot.readListBegin(); + struct.presetLdapFilters = new java.util.ArrayList(_list234.size); + int _elem235; + for (int _i236 = 0; _i236 < _list234.size; ++_i236) { - _elem227 = iprot.readI32(); - struct.presetLdapFilters.add(_elem227); + _elem235 = iprot.readI32(); + struct.presetLdapFilters.add(_elem235); } iprot.readListEnd(); } @@ -3444,13 +3389,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list229.size); - int _elem230; - for (int _i231 = 0; _i231 < _list229.size; ++_i231) + org.apache.thrift.protocol.TList _list237 = iprot.readListBegin(); + struct.presetNetworkExceptionIds = new java.util.ArrayList(_list237.size); + int _elem238; + for (int _i239 = 0; _i239 < _list237.size; ++_i239) { - _elem230 = iprot.readI32(); - struct.presetNetworkExceptionIds.add(_elem230); + _elem238 = iprot.readI32(); + struct.presetNetworkExceptionIds.add(_elem238); } iprot.readListEnd(); } @@ -3526,9 +3471,9 @@ public class LectureRead implements org.apache.thrift.TBase { + private static class LectureReadTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, LectureRead struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetLectureId()) { optionals.set(0); } @@ -3866,27 +3811,27 @@ public class LectureRead implements org.apache.thrift.TBase(_list252.size); - String _elem253; - for (int _i254 = 0; _i254 < _list252.size; ++_i254) + org.apache.thrift.protocol.TList _list260 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.nics = new java.util.ArrayList(_list260.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem261; + for (int _i262 = 0; _i262 < _list260.size; ++_i262) { - _elem253 = iprot.readString(); - struct.nics.add(_elem253); + _elem261 = iprot.readString(); + struct.nics.add(_elem261); } } struct.setNicsIsSet(true); } if (incoming.get(17)) { { - org.apache.thrift.protocol.TList _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.allowedUsers = new ArrayList(_list255.size); - String _elem256; - for (int _i257 = 0; _i257 < _list255.size; ++_i257) + org.apache.thrift.protocol.TList _list263 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.allowedUsers = new java.util.ArrayList(_list263.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem264; + for (int _i265 = 0; _i265 < _list263.size; ++_i265) { - _elem256 = iprot.readString(); - struct.allowedUsers.add(_elem256); + _elem264 = iprot.readString(); + struct.allowedUsers.add(_elem264); } } struct.setAllowedUsersIsSet(true); } if (incoming.get(18)) { { - org.apache.thrift.protocol.TList _list258 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkExceptions = new ArrayList(_list258.size); - NetRule _elem259; - for (int _i260 = 0; _i260 < _list258.size; ++_i260) + org.apache.thrift.protocol.TList _list266 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.networkExceptions = new java.util.ArrayList(_list266.size); + @org.apache.thrift.annotation.Nullable NetRule _elem267; + for (int _i268 = 0; _i268 < _list266.size; ++_i268) { - _elem259 = new NetRule(); - _elem259.read(iprot); - struct.networkExceptions.add(_elem259); + _elem267 = new NetRule(); + _elem267.read(iprot); + struct.networkExceptions.add(_elem267); } } struct.setNetworkExceptionsIsSet(true); @@ -4104,13 +4049,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list261.size); - int _elem262; - for (int _i263 = 0; _i263 < _list261.size; ++_i263) + org.apache.thrift.protocol.TList _list269 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.locationIds = new java.util.ArrayList(_list269.size); + int _elem270; + for (int _i271 = 0; _i271 < _list269.size; ++_i271) { - _elem262 = iprot.readI32(); - struct.locationIds.add(_elem262); + _elem270 = iprot.readI32(); + struct.locationIds.add(_elem270); } } struct.setLocationIdsIsSet(true); @@ -4129,80 +4074,80 @@ public class LectureRead implements org.apache.thrift.TBase(_list264.size); - NetShare _elem265; - for (int _i266 = 0; _i266 < _list264.size; ++_i266) + org.apache.thrift.protocol.TList _list272 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.networkShares = new java.util.ArrayList(_list272.size); + @org.apache.thrift.annotation.Nullable NetShare _elem273; + for (int _i274 = 0; _i274 < _list272.size; ++_i274) { - _elem265 = new NetShare(); - _elem265.read(iprot); - struct.networkShares.add(_elem265); + _elem273 = new NetShare(); + _elem273.read(iprot); + struct.networkShares.add(_elem273); } } struct.setNetworkSharesIsSet(true); } if (incoming.get(28)) { { - org.apache.thrift.protocol.TList _list267 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.ldapFilters = new ArrayList(_list267.size); - LdapFilter _elem268; - for (int _i269 = 0; _i269 < _list267.size; ++_i269) + org.apache.thrift.protocol.TList _list275 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.ldapFilters = new java.util.ArrayList(_list275.size); + @org.apache.thrift.annotation.Nullable LdapFilter _elem276; + for (int _i277 = 0; _i277 < _list275.size; ++_i277) { - _elem268 = new LdapFilter(); - _elem268.read(iprot); - struct.ldapFilters.add(_elem268); + _elem276 = new LdapFilter(); + _elem276.read(iprot); + struct.ldapFilters.add(_elem276); } } struct.setLdapFiltersIsSet(true); } if (incoming.get(29)) { { - org.apache.thrift.protocol.TList _list270 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetScriptIds = new ArrayList(_list270.size); - int _elem271; - for (int _i272 = 0; _i272 < _list270.size; ++_i272) + org.apache.thrift.protocol.TList _list278 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetScriptIds = new java.util.ArrayList(_list278.size); + int _elem279; + for (int _i280 = 0; _i280 < _list278.size; ++_i280) { - _elem271 = iprot.readI32(); - struct.presetScriptIds.add(_elem271); + _elem279 = iprot.readI32(); + struct.presetScriptIds.add(_elem279); } } struct.setPresetScriptIdsIsSet(true); } if (incoming.get(30)) { { - org.apache.thrift.protocol.TList _list273 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetNetworkShares = new ArrayList(_list273.size); - int _elem274; - for (int _i275 = 0; _i275 < _list273.size; ++_i275) + org.apache.thrift.protocol.TList _list281 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetNetworkShares = new java.util.ArrayList(_list281.size); + int _elem282; + for (int _i283 = 0; _i283 < _list281.size; ++_i283) { - _elem274 = iprot.readI32(); - struct.presetNetworkShares.add(_elem274); + _elem282 = iprot.readI32(); + struct.presetNetworkShares.add(_elem282); } } struct.setPresetNetworkSharesIsSet(true); } if (incoming.get(31)) { { - org.apache.thrift.protocol.TList _list276 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetLdapFilters = new ArrayList(_list276.size); - int _elem277; - for (int _i278 = 0; _i278 < _list276.size; ++_i278) + org.apache.thrift.protocol.TList _list284 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetLdapFilters = new java.util.ArrayList(_list284.size); + int _elem285; + for (int _i286 = 0; _i286 < _list284.size; ++_i286) { - _elem277 = iprot.readI32(); - struct.presetLdapFilters.add(_elem277); + _elem285 = iprot.readI32(); + struct.presetLdapFilters.add(_elem285); } } struct.setPresetLdapFiltersIsSet(true); } if (incoming.get(32)) { { - org.apache.thrift.protocol.TList _list279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetNetworkExceptionIds = new ArrayList(_list279.size); - int _elem280; - for (int _i281 = 0; _i281 < _list279.size; ++_i281) + org.apache.thrift.protocol.TList _list287 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetNetworkExceptionIds = new java.util.ArrayList(_list287.size); + int _elem288; + for (int _i289 = 0; _i289 < _list287.size; ++_i289) { - _elem280 = iprot.readI32(); - struct.presetNetworkExceptionIds.add(_elem280); + _elem288 = iprot.readI32(); + struct.presetNetworkExceptionIds.add(_elem288); } } struct.setPresetNetworkExceptionIdsIsSet(true); @@ -4210,5 +4155,8 @@ public class LectureRead implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java b/src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java index 25e518b..18e2016 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2020-10-12") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class LectureSummary 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("LectureSummary"); @@ -57,28 +30,25 @@ public class LectureSummary implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new LectureSummaryStandardSchemeFactory()); - schemes.put(TupleScheme.class, new LectureSummaryTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new LectureSummaryStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new LectureSummaryTupleSchemeFactory(); - public String lectureId; // required - public String lectureName; // required - public String description; // required - public String imageVersionId; // required - public String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String description; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageBaseId; // required public boolean isEnabled; // required public long startTime; // required public long endTime; // required public long lastUsed; // required public int useCount; // required - public String ownerId; // required - public String updaterId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String ownerId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String updaterId; // required public boolean isExam; // required public boolean hasInternetAccess; // required - public LecturePermissions defaultPermissions; // required - public LecturePermissions userPermissions; // optional + public @org.apache.thrift.annotation.Nullable LecturePermissions defaultPermissions; // required + public @org.apache.thrift.annotation.Nullable LecturePermissions userPermissions; // optional public boolean isImageVersionUsable; // required public boolean hasUsbAccess; // required @@ -103,10 +73,10 @@ public class LectureSummary implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -114,6 +84,7 @@ public class LectureSummary implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.LECTURE_NAME, new org.apache.thrift.meta_data.FieldMetaData("lectureName", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -242,7 +214,7 @@ public class LectureSummary implements org.apache.thrift.TBase list = new ArrayList(); - - boolean present_lectureId = true && (isSetLectureId()); - list.add(present_lectureId); - if (present_lectureId) - list.add(lectureId); - - boolean present_lectureName = true && (isSetLectureName()); - list.add(present_lectureName); - if (present_lectureName) - list.add(lectureName); - - boolean present_description = true && (isSetDescription()); - list.add(present_description); - if (present_description) - list.add(description); - - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); - - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); - - boolean present_isEnabled = true; - list.add(present_isEnabled); - if (present_isEnabled) - list.add(isEnabled); - - boolean present_startTime = true; - list.add(present_startTime); - if (present_startTime) - list.add(startTime); - - boolean present_endTime = true; - list.add(present_endTime); - if (present_endTime) - list.add(endTime); - - boolean present_lastUsed = true; - list.add(present_lastUsed); - if (present_lastUsed) - list.add(lastUsed); - - boolean present_useCount = true; - list.add(present_useCount); - if (present_useCount) - list.add(useCount); - - boolean present_ownerId = true && (isSetOwnerId()); - list.add(present_ownerId); - if (present_ownerId) - list.add(ownerId); - - boolean present_updaterId = true && (isSetUpdaterId()); - list.add(present_updaterId); - if (present_updaterId) - list.add(updaterId); - - boolean present_isExam = true; - list.add(present_isExam); - if (present_isExam) - list.add(isExam); - - boolean present_hasInternetAccess = true; - list.add(present_hasInternetAccess); - if (present_hasInternetAccess) - list.add(hasInternetAccess); - - boolean present_defaultPermissions = true && (isSetDefaultPermissions()); - list.add(present_defaultPermissions); - if (present_defaultPermissions) - list.add(defaultPermissions); - - boolean present_userPermissions = true && (isSetUserPermissions()); - list.add(present_userPermissions); - if (present_userPermissions) - list.add(userPermissions); - - boolean present_isImageVersionUsable = true; - list.add(present_isImageVersionUsable); - if (present_isImageVersionUsable) - list.add(isImageVersionUsable); - - boolean present_hasUsbAccess = true; - list.add(present_hasUsbAccess); - if (present_hasUsbAccess) - list.add(hasUsbAccess); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetLectureId()) ? 131071 : 524287); + if (isSetLectureId()) + hashCode = hashCode * 8191 + lectureId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetLectureName()) ? 131071 : 524287); + if (isSetLectureName()) + hashCode = hashCode * 8191 + lectureName.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287); + if (isSetDescription()) + hashCode = hashCode * 8191 + description.hashCode(); + + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); + + hashCode = hashCode * 8191 + ((isEnabled) ? 131071 : 524287); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(endTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(lastUsed); + + hashCode = hashCode * 8191 + useCount; + + hashCode = hashCode * 8191 + ((isSetOwnerId()) ? 131071 : 524287); + if (isSetOwnerId()) + hashCode = hashCode * 8191 + ownerId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetUpdaterId()) ? 131071 : 524287); + if (isSetUpdaterId()) + hashCode = hashCode * 8191 + updaterId.hashCode(); + + hashCode = hashCode * 8191 + ((isExam) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((hasInternetAccess) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetDefaultPermissions()) ? 131071 : 524287); + if (isSetDefaultPermissions()) + hashCode = hashCode * 8191 + defaultPermissions.hashCode(); + + hashCode = hashCode * 8191 + ((isSetUserPermissions()) ? 131071 : 524287); + if (isSetUserPermissions()) + hashCode = hashCode * 8191 + userPermissions.hashCode(); + + hashCode = hashCode * 8191 + ((isImageVersionUsable) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((hasUsbAccess) ? 131071 : 524287); + + return hashCode; } @Override @@ -1337,7 +1283,7 @@ public class LectureSummary implements org.apache.thrift.TBase { + private static class LectureSummaryStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, LectureSummary struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -1938,18 +1885,18 @@ public class LectureSummary implements org.apache.thrift.TBase { + private static class LectureSummaryTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, LectureSummary struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetLectureId()) { optionals.set(0); } @@ -2063,8 +2010,8 @@ public class LectureSummary implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 921ea64..aee2ee8 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-02-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class LectureWrite 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("LectureWrite"); @@ -62,35 +35,32 @@ public class LectureWrite implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new LectureWriteStandardSchemeFactory()); - schemes.put(TupleScheme.class, new LectureWriteTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new LectureWriteStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new LectureWriteTupleSchemeFactory(); - public String lectureName; // required - public String description; // required - public String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String description; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageVersionId; // required public boolean autoUpdate; // required public boolean isEnabled; // required public long startTime; // required public long endTime; // required - public String runscript; // required - public List nics; // required - public List networkExceptions; // optional + public @org.apache.thrift.annotation.Nullable java.lang.String runscript; // required + public @org.apache.thrift.annotation.Nullable java.util.List nics; // required + public @org.apache.thrift.annotation.Nullable java.util.List networkExceptions; // optional public boolean isExam; // required public boolean hasInternetAccess; // required - public LecturePermissions defaultPermissions; // required - public List addAllowedUsers; // optional - public List remAllowedUsers; // optional - public List locationIds; // required + public @org.apache.thrift.annotation.Nullable LecturePermissions defaultPermissions; // required + public @org.apache.thrift.annotation.Nullable java.util.List addAllowedUsers; // optional + public @org.apache.thrift.annotation.Nullable java.util.List remAllowedUsers; // optional + public @org.apache.thrift.annotation.Nullable java.util.List locationIds; // required public boolean limitToLocations; // required public boolean limitToAllowedUsers; // required public boolean hasUsbAccess; // required - public List networkShares; // optional - public List ldapFilters; // optional - public List presetScriptIds; // optional - public List presetNetworkExceptionIds; // optional + public @org.apache.thrift.annotation.Nullable java.util.List networkShares; // optional + public @org.apache.thrift.annotation.Nullable java.util.List ldapFilters; // optional + public @org.apache.thrift.annotation.Nullable java.util.List presetScriptIds; // optional + public @org.apache.thrift.annotation.Nullable java.util.List presetNetworkExceptionIds; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -118,10 +88,10 @@ public class LectureWrite implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -129,6 +99,7 @@ public class LectureWrite implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.LECTURE_NAME, new org.apache.thrift.meta_data.FieldMetaData("lectureName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -286,7 +258,7 @@ public class LectureWrite implements org.apache.thrift.TBase nics, + java.lang.String runscript, + java.util.List nics, boolean isExam, boolean hasInternetAccess, LecturePermissions defaultPermissions, - List locationIds, + java.util.List locationIds, boolean limitToLocations, boolean limitToAllowedUsers, boolean hasUsbAccess) @@ -361,11 +333,11 @@ public class LectureWrite implements org.apache.thrift.TBase __this__nics = new ArrayList(other.nics); + java.util.List __this__nics = new java.util.ArrayList(other.nics); this.nics = __this__nics; } if (other.isSetNetworkExceptions()) { - List __this__networkExceptions = new ArrayList(other.networkExceptions.size()); + java.util.List __this__networkExceptions = new java.util.ArrayList(other.networkExceptions.size()); for (NetRule other_element : other.networkExceptions) { __this__networkExceptions.add(new NetRule(other_element)); } @@ -377,40 +349,40 @@ public class LectureWrite implements org.apache.thrift.TBase __this__addAllowedUsers = new ArrayList(other.addAllowedUsers); + java.util.List __this__addAllowedUsers = new java.util.ArrayList(other.addAllowedUsers); this.addAllowedUsers = __this__addAllowedUsers; } if (other.isSetRemAllowedUsers()) { - List __this__remAllowedUsers = new ArrayList(other.remAllowedUsers); + java.util.List __this__remAllowedUsers = new java.util.ArrayList(other.remAllowedUsers); this.remAllowedUsers = __this__remAllowedUsers; } if (other.isSetLocationIds()) { - List __this__locationIds = new ArrayList(other.locationIds); + java.util.List __this__locationIds = new java.util.ArrayList(other.locationIds); this.locationIds = __this__locationIds; } this.limitToLocations = other.limitToLocations; this.limitToAllowedUsers = other.limitToAllowedUsers; this.hasUsbAccess = other.hasUsbAccess; if (other.isSetNetworkShares()) { - List __this__networkShares = new ArrayList(other.networkShares.size()); + java.util.List __this__networkShares = new java.util.ArrayList(other.networkShares.size()); for (NetShare other_element : other.networkShares) { __this__networkShares.add(new NetShare(other_element)); } this.networkShares = __this__networkShares; } if (other.isSetLdapFilters()) { - List __this__ldapFilters = new ArrayList(other.ldapFilters.size()); + java.util.List __this__ldapFilters = new java.util.ArrayList(other.ldapFilters.size()); for (LdapFilter other_element : other.ldapFilters) { __this__ldapFilters.add(new LdapFilter(other_element)); } this.ldapFilters = __this__ldapFilters; } if (other.isSetPresetScriptIds()) { - List __this__presetScriptIds = new ArrayList(other.presetScriptIds); + java.util.List __this__presetScriptIds = new java.util.ArrayList(other.presetScriptIds); this.presetScriptIds = __this__presetScriptIds; } if (other.isSetPresetNetworkExceptionIds()) { - List __this__presetNetworkExceptionIds = new ArrayList(other.presetNetworkExceptionIds); + java.util.List __this__presetNetworkExceptionIds = new java.util.ArrayList(other.presetNetworkExceptionIds); this.presetNetworkExceptionIds = __this__presetNetworkExceptionIds; } } @@ -455,11 +427,12 @@ public class LectureWrite implements org.apache.thrift.TBase getNicsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getNicsIterator() { return (this.nics == null) ? null : this.nics.iterator(); } - public void addToNics(String elem) { + public void addToNics(java.lang.String elem) { if (this.nics == null) { - this.nics = new ArrayList(); + this.nics = new java.util.ArrayList(); } this.nics.add(elem); } - public List getNics() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNics() { return this.nics; } - public LectureWrite setNics(List nics) { + public LectureWrite setNics(@org.apache.thrift.annotation.Nullable java.util.List nics) { this.nics = nics; return this; } @@ -686,22 +664,24 @@ public class LectureWrite implements org.apache.thrift.TBase getNetworkExceptionsIterator() { return (this.networkExceptions == null) ? null : this.networkExceptions.iterator(); } public void addToNetworkExceptions(NetRule elem) { if (this.networkExceptions == null) { - this.networkExceptions = new ArrayList(); + this.networkExceptions = new java.util.ArrayList(); } this.networkExceptions.add(elem); } - public List getNetworkExceptions() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNetworkExceptions() { return this.networkExceptions; } - public LectureWrite setNetworkExceptions(List networkExceptions) { + public LectureWrite setNetworkExceptions(@org.apache.thrift.annotation.Nullable java.util.List networkExceptions) { this.networkExceptions = networkExceptions; return this; } @@ -732,16 +712,16 @@ public class LectureWrite implements org.apache.thrift.TBase getAddAllowedUsersIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getAddAllowedUsersIterator() { return (this.addAllowedUsers == null) ? null : this.addAllowedUsers.iterator(); } - public void addToAddAllowedUsers(String elem) { + public void addToAddAllowedUsers(java.lang.String elem) { if (this.addAllowedUsers == null) { - this.addAllowedUsers = new ArrayList(); + this.addAllowedUsers = new java.util.ArrayList(); } this.addAllowedUsers.add(elem); } - public List getAddAllowedUsers() { + @org.apache.thrift.annotation.Nullable + public java.util.List getAddAllowedUsers() { return this.addAllowedUsers; } - public LectureWrite setAddAllowedUsers(List addAllowedUsers) { + public LectureWrite setAddAllowedUsers(@org.apache.thrift.annotation.Nullable java.util.List addAllowedUsers) { this.addAllowedUsers = addAllowedUsers; return this; } @@ -834,22 +817,24 @@ public class LectureWrite implements org.apache.thrift.TBase getRemAllowedUsersIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getRemAllowedUsersIterator() { return (this.remAllowedUsers == null) ? null : this.remAllowedUsers.iterator(); } - public void addToRemAllowedUsers(String elem) { + public void addToRemAllowedUsers(java.lang.String elem) { if (this.remAllowedUsers == null) { - this.remAllowedUsers = new ArrayList(); + this.remAllowedUsers = new java.util.ArrayList(); } this.remAllowedUsers.add(elem); } - public List getRemAllowedUsers() { + @org.apache.thrift.annotation.Nullable + public java.util.List getRemAllowedUsers() { return this.remAllowedUsers; } - public LectureWrite setRemAllowedUsers(List remAllowedUsers) { + public LectureWrite setRemAllowedUsers(@org.apache.thrift.annotation.Nullable java.util.List remAllowedUsers) { this.remAllowedUsers = remAllowedUsers; return this; } @@ -873,22 +858,24 @@ public class LectureWrite implements org.apache.thrift.TBase getLocationIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getLocationIdsIterator() { return (this.locationIds == null) ? null : this.locationIds.iterator(); } public void addToLocationIds(int elem) { if (this.locationIds == null) { - this.locationIds = new ArrayList(); + this.locationIds = new java.util.ArrayList(); } this.locationIds.add(elem); } - public List getLocationIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List getLocationIds() { return this.locationIds; } - public LectureWrite setLocationIds(List locationIds) { + public LectureWrite setLocationIds(@org.apache.thrift.annotation.Nullable java.util.List locationIds) { this.locationIds = locationIds; return this; } @@ -919,16 +906,16 @@ public class LectureWrite implements org.apache.thrift.TBase getNetworkSharesIterator() { return (this.networkShares == null) ? null : this.networkShares.iterator(); } public void addToNetworkShares(NetShare elem) { if (this.networkShares == null) { - this.networkShares = new ArrayList(); + this.networkShares = new java.util.ArrayList(); } this.networkShares.add(elem); } - public List getNetworkShares() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNetworkShares() { return this.networkShares; } - public LectureWrite setNetworkShares(List networkShares) { + public LectureWrite setNetworkShares(@org.apache.thrift.annotation.Nullable java.util.List networkShares) { this.networkShares = networkShares; return this; } @@ -1020,22 +1009,24 @@ public class LectureWrite implements org.apache.thrift.TBase getLdapFiltersIterator() { return (this.ldapFilters == null) ? null : this.ldapFilters.iterator(); } public void addToLdapFilters(LdapFilter elem) { if (this.ldapFilters == null) { - this.ldapFilters = new ArrayList(); + this.ldapFilters = new java.util.ArrayList(); } this.ldapFilters.add(elem); } - public List getLdapFilters() { + @org.apache.thrift.annotation.Nullable + public java.util.List getLdapFilters() { return this.ldapFilters; } - public LectureWrite setLdapFilters(List ldapFilters) { + public LectureWrite setLdapFilters(@org.apache.thrift.annotation.Nullable java.util.List ldapFilters) { this.ldapFilters = ldapFilters; return this; } @@ -1059,22 +1050,24 @@ public class LectureWrite implements org.apache.thrift.TBase getPresetScriptIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getPresetScriptIdsIterator() { return (this.presetScriptIds == null) ? null : this.presetScriptIds.iterator(); } public void addToPresetScriptIds(int elem) { if (this.presetScriptIds == null) { - this.presetScriptIds = new ArrayList(); + this.presetScriptIds = new java.util.ArrayList(); } this.presetScriptIds.add(elem); } - public List getPresetScriptIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List getPresetScriptIds() { return this.presetScriptIds; } - public LectureWrite setPresetScriptIds(List presetScriptIds) { + public LectureWrite setPresetScriptIds(@org.apache.thrift.annotation.Nullable java.util.List presetScriptIds) { this.presetScriptIds = presetScriptIds; return this; } @@ -1098,22 +1091,24 @@ public class LectureWrite implements org.apache.thrift.TBase getPresetNetworkExceptionIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getPresetNetworkExceptionIdsIterator() { return (this.presetNetworkExceptionIds == null) ? null : this.presetNetworkExceptionIds.iterator(); } public void addToPresetNetworkExceptionIds(int elem) { if (this.presetNetworkExceptionIds == null) { - this.presetNetworkExceptionIds = new ArrayList(); + this.presetNetworkExceptionIds = new java.util.ArrayList(); } this.presetNetworkExceptionIds.add(elem); } - public List getPresetNetworkExceptionIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List getPresetNetworkExceptionIds() { return this.presetNetworkExceptionIds; } - public LectureWrite setPresetNetworkExceptionIds(List presetNetworkExceptionIds) { + public LectureWrite setPresetNetworkExceptionIds(@org.apache.thrift.annotation.Nullable java.util.List presetNetworkExceptionIds) { this.presetNetworkExceptionIds = presetNetworkExceptionIds; return this; } @@ -1133,13 +1128,13 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setNics((java.util.List)value); } break; @@ -1211,7 +1206,7 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setNetworkExceptions((java.util.List)value); } break; @@ -1219,7 +1214,7 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setAddAllowedUsers((java.util.List)value); } break; @@ -1251,7 +1246,7 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setRemAllowedUsers((java.util.List)value); } break; @@ -1259,7 +1254,7 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setLocationIds((java.util.List)value); } break; @@ -1267,7 +1262,7 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setNetworkShares((java.util.List)value); } break; @@ -1299,7 +1294,7 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setLdapFilters((java.util.List)value); } break; @@ -1307,7 +1302,7 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setPresetScriptIds((java.util.List)value); } break; @@ -1315,14 +1310,15 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setPresetNetworkExceptionIds((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case LECTURE_NAME: return getLectureName(); @@ -1394,13 +1390,13 @@ public class LectureWrite implements org.apache.thrift.TBase list = new ArrayList(); - - boolean present_lectureName = true && (isSetLectureName()); - list.add(present_lectureName); - if (present_lectureName) - list.add(lectureName); - - boolean present_description = true && (isSetDescription()); - list.add(present_description); - if (present_description) - list.add(description); - - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); - - boolean present_autoUpdate = true; - list.add(present_autoUpdate); - if (present_autoUpdate) - list.add(autoUpdate); - - boolean present_isEnabled = true; - list.add(present_isEnabled); - if (present_isEnabled) - list.add(isEnabled); - - boolean present_startTime = true; - list.add(present_startTime); - if (present_startTime) - list.add(startTime); - - boolean present_endTime = true; - list.add(present_endTime); - if (present_endTime) - list.add(endTime); - - boolean present_runscript = true && (isSetRunscript()); - list.add(present_runscript); - if (present_runscript) - list.add(runscript); - - boolean present_nics = true && (isSetNics()); - list.add(present_nics); - if (present_nics) - list.add(nics); - - boolean present_networkExceptions = true && (isSetNetworkExceptions()); - list.add(present_networkExceptions); - if (present_networkExceptions) - list.add(networkExceptions); - - boolean present_isExam = true; - list.add(present_isExam); - if (present_isExam) - list.add(isExam); - - boolean present_hasInternetAccess = true; - list.add(present_hasInternetAccess); - if (present_hasInternetAccess) - list.add(hasInternetAccess); - - boolean present_defaultPermissions = true && (isSetDefaultPermissions()); - list.add(present_defaultPermissions); - if (present_defaultPermissions) - list.add(defaultPermissions); - - boolean present_addAllowedUsers = true && (isSetAddAllowedUsers()); - list.add(present_addAllowedUsers); - if (present_addAllowedUsers) - list.add(addAllowedUsers); - - boolean present_remAllowedUsers = true && (isSetRemAllowedUsers()); - list.add(present_remAllowedUsers); - if (present_remAllowedUsers) - list.add(remAllowedUsers); - - boolean present_locationIds = true && (isSetLocationIds()); - list.add(present_locationIds); - if (present_locationIds) - list.add(locationIds); - - boolean present_limitToLocations = true; - list.add(present_limitToLocations); - if (present_limitToLocations) - list.add(limitToLocations); - - boolean present_limitToAllowedUsers = true; - list.add(present_limitToAllowedUsers); - if (present_limitToAllowedUsers) - list.add(limitToAllowedUsers); - - boolean present_hasUsbAccess = true; - list.add(present_hasUsbAccess); - if (present_hasUsbAccess) - list.add(hasUsbAccess); - - boolean present_networkShares = true && (isSetNetworkShares()); - list.add(present_networkShares); - if (present_networkShares) - list.add(networkShares); - - boolean present_ldapFilters = true && (isSetLdapFilters()); - list.add(present_ldapFilters); - if (present_ldapFilters) - list.add(ldapFilters); - - boolean present_presetScriptIds = true && (isSetPresetScriptIds()); - list.add(present_presetScriptIds); - if (present_presetScriptIds) - list.add(presetScriptIds); - - boolean present_presetNetworkExceptionIds = true && (isSetPresetNetworkExceptionIds()); - list.add(present_presetNetworkExceptionIds); - if (present_presetNetworkExceptionIds) - list.add(presetNetworkExceptionIds); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetLectureName()) ? 131071 : 524287); + if (isSetLectureName()) + hashCode = hashCode * 8191 + lectureName.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287); + if (isSetDescription()) + hashCode = hashCode * 8191 + description.hashCode(); + + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); + + hashCode = hashCode * 8191 + ((autoUpdate) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isEnabled) ? 131071 : 524287); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(endTime); + + hashCode = hashCode * 8191 + ((isSetRunscript()) ? 131071 : 524287); + if (isSetRunscript()) + hashCode = hashCode * 8191 + runscript.hashCode(); + + hashCode = hashCode * 8191 + ((isSetNics()) ? 131071 : 524287); + if (isSetNics()) + hashCode = hashCode * 8191 + nics.hashCode(); + + hashCode = hashCode * 8191 + ((isSetNetworkExceptions()) ? 131071 : 524287); + if (isSetNetworkExceptions()) + hashCode = hashCode * 8191 + networkExceptions.hashCode(); + + hashCode = hashCode * 8191 + ((isExam) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((hasInternetAccess) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetDefaultPermissions()) ? 131071 : 524287); + if (isSetDefaultPermissions()) + hashCode = hashCode * 8191 + defaultPermissions.hashCode(); + + hashCode = hashCode * 8191 + ((isSetAddAllowedUsers()) ? 131071 : 524287); + if (isSetAddAllowedUsers()) + hashCode = hashCode * 8191 + addAllowedUsers.hashCode(); + + hashCode = hashCode * 8191 + ((isSetRemAllowedUsers()) ? 131071 : 524287); + if (isSetRemAllowedUsers()) + hashCode = hashCode * 8191 + remAllowedUsers.hashCode(); + + hashCode = hashCode * 8191 + ((isSetLocationIds()) ? 131071 : 524287); + if (isSetLocationIds()) + hashCode = hashCode * 8191 + locationIds.hashCode(); + + hashCode = hashCode * 8191 + ((limitToLocations) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((limitToAllowedUsers) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((hasUsbAccess) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetNetworkShares()) ? 131071 : 524287); + if (isSetNetworkShares()) + hashCode = hashCode * 8191 + networkShares.hashCode(); + + hashCode = hashCode * 8191 + ((isSetLdapFilters()) ? 131071 : 524287); + if (isSetLdapFilters()) + hashCode = hashCode * 8191 + ldapFilters.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPresetScriptIds()) ? 131071 : 524287); + if (isSetPresetScriptIds()) + hashCode = hashCode * 8191 + presetScriptIds.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPresetNetworkExceptionIds()) ? 131071 : 524287); + if (isSetPresetNetworkExceptionIds()) + hashCode = hashCode * 8191 + presetNetworkExceptionIds.hashCode(); + + return hashCode; } @Override @@ -1807,7 +1762,7 @@ public class LectureWrite implements org.apache.thrift.TBase { + private static class LectureWriteStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, LectureWrite struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -2333,13 +2289,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list130.size); - String _elem131; - for (int _i132 = 0; _i132 < _list130.size; ++_i132) + org.apache.thrift.protocol.TList _list138 = iprot.readListBegin(); + struct.nics = new java.util.ArrayList(_list138.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem139; + for (int _i140 = 0; _i140 < _list138.size; ++_i140) { - _elem131 = iprot.readString(); - struct.nics.add(_elem131); + _elem139 = iprot.readString(); + struct.nics.add(_elem139); } iprot.readListEnd(); } @@ -2351,14 +2307,14 @@ public class LectureWrite implements org.apache.thrift.TBase(_list133.size); - NetRule _elem134; - for (int _i135 = 0; _i135 < _list133.size; ++_i135) + org.apache.thrift.protocol.TList _list141 = iprot.readListBegin(); + struct.networkExceptions = new java.util.ArrayList(_list141.size); + @org.apache.thrift.annotation.Nullable NetRule _elem142; + for (int _i143 = 0; _i143 < _list141.size; ++_i143) { - _elem134 = new NetRule(); - _elem134.read(iprot); - struct.networkExceptions.add(_elem134); + _elem142 = new NetRule(); + _elem142.read(iprot); + struct.networkExceptions.add(_elem142); } iprot.readListEnd(); } @@ -2395,13 +2351,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list136.size); - String _elem137; - for (int _i138 = 0; _i138 < _list136.size; ++_i138) + org.apache.thrift.protocol.TList _list144 = iprot.readListBegin(); + struct.addAllowedUsers = new java.util.ArrayList(_list144.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem145; + for (int _i146 = 0; _i146 < _list144.size; ++_i146) { - _elem137 = iprot.readString(); - struct.addAllowedUsers.add(_elem137); + _elem145 = iprot.readString(); + struct.addAllowedUsers.add(_elem145); } iprot.readListEnd(); } @@ -2413,13 +2369,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list139.size); - String _elem140; - for (int _i141 = 0; _i141 < _list139.size; ++_i141) + org.apache.thrift.protocol.TList _list147 = iprot.readListBegin(); + struct.remAllowedUsers = new java.util.ArrayList(_list147.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem148; + for (int _i149 = 0; _i149 < _list147.size; ++_i149) { - _elem140 = iprot.readString(); - struct.remAllowedUsers.add(_elem140); + _elem148 = iprot.readString(); + struct.remAllowedUsers.add(_elem148); } iprot.readListEnd(); } @@ -2431,13 +2387,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list142.size); - int _elem143; - for (int _i144 = 0; _i144 < _list142.size; ++_i144) + org.apache.thrift.protocol.TList _list150 = iprot.readListBegin(); + struct.locationIds = new java.util.ArrayList(_list150.size); + int _elem151; + for (int _i152 = 0; _i152 < _list150.size; ++_i152) { - _elem143 = iprot.readI32(); - struct.locationIds.add(_elem143); + _elem151 = iprot.readI32(); + struct.locationIds.add(_elem151); } iprot.readListEnd(); } @@ -2473,14 +2429,14 @@ public class LectureWrite implements org.apache.thrift.TBase(_list145.size); - NetShare _elem146; - for (int _i147 = 0; _i147 < _list145.size; ++_i147) + org.apache.thrift.protocol.TList _list153 = iprot.readListBegin(); + struct.networkShares = new java.util.ArrayList(_list153.size); + @org.apache.thrift.annotation.Nullable NetShare _elem154; + for (int _i155 = 0; _i155 < _list153.size; ++_i155) { - _elem146 = new NetShare(); - _elem146.read(iprot); - struct.networkShares.add(_elem146); + _elem154 = new NetShare(); + _elem154.read(iprot); + struct.networkShares.add(_elem154); } iprot.readListEnd(); } @@ -2492,14 +2448,14 @@ public class LectureWrite implements org.apache.thrift.TBase(_list148.size); - LdapFilter _elem149; - for (int _i150 = 0; _i150 < _list148.size; ++_i150) + org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(); + struct.ldapFilters = new java.util.ArrayList(_list156.size); + @org.apache.thrift.annotation.Nullable LdapFilter _elem157; + for (int _i158 = 0; _i158 < _list156.size; ++_i158) { - _elem149 = new LdapFilter(); - _elem149.read(iprot); - struct.ldapFilters.add(_elem149); + _elem157 = new LdapFilter(); + _elem157.read(iprot); + struct.ldapFilters.add(_elem157); } iprot.readListEnd(); } @@ -2511,13 +2467,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list151.size); - int _elem152; - for (int _i153 = 0; _i153 < _list151.size; ++_i153) + org.apache.thrift.protocol.TList _list159 = iprot.readListBegin(); + struct.presetScriptIds = new java.util.ArrayList(_list159.size); + int _elem160; + for (int _i161 = 0; _i161 < _list159.size; ++_i161) { - _elem152 = iprot.readI32(); - struct.presetScriptIds.add(_elem152); + _elem160 = iprot.readI32(); + struct.presetScriptIds.add(_elem160); } iprot.readListEnd(); } @@ -2529,13 +2485,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list154.size); - int _elem155; - for (int _i156 = 0; _i156 < _list154.size; ++_i156) + org.apache.thrift.protocol.TList _list162 = iprot.readListBegin(); + struct.presetNetworkExceptionIds = new java.util.ArrayList(_list162.size); + int _elem163; + for (int _i164 = 0; _i164 < _list162.size; ++_i164) { - _elem155 = iprot.readI32(); - struct.presetNetworkExceptionIds.add(_elem155); + _elem163 = iprot.readI32(); + struct.presetNetworkExceptionIds.add(_elem163); } iprot.readListEnd(); } @@ -2595,9 +2551,9 @@ public class LectureWrite implements org.apache.thrift.TBase { + private static class LectureWriteTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, LectureWrite struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetLectureName()) { optionals.set(0); } @@ -2848,18 +2804,18 @@ public class LectureWrite implements org.apache.thrift.TBase(_list175.size); - String _elem176; - for (int _i177 = 0; _i177 < _list175.size; ++_i177) + org.apache.thrift.protocol.TList _list183 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.nics = new java.util.ArrayList(_list183.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem184; + for (int _i185 = 0; _i185 < _list183.size; ++_i185) { - _elem176 = iprot.readString(); - struct.nics.add(_elem176); + _elem184 = iprot.readString(); + struct.nics.add(_elem184); } } struct.setNicsIsSet(true); } if (incoming.get(9)) { { - org.apache.thrift.protocol.TList _list178 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkExceptions = new ArrayList(_list178.size); - NetRule _elem179; - for (int _i180 = 0; _i180 < _list178.size; ++_i180) + org.apache.thrift.protocol.TList _list186 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.networkExceptions = new java.util.ArrayList(_list186.size); + @org.apache.thrift.annotation.Nullable NetRule _elem187; + for (int _i188 = 0; _i188 < _list186.size; ++_i188) { - _elem179 = new NetRule(); - _elem179.read(iprot); - struct.networkExceptions.add(_elem179); + _elem187 = new NetRule(); + _elem187.read(iprot); + struct.networkExceptions.add(_elem187); } } struct.setNetworkExceptionsIsSet(true); @@ -3024,39 +2980,39 @@ public class LectureWrite implements org.apache.thrift.TBase(_list181.size); - String _elem182; - for (int _i183 = 0; _i183 < _list181.size; ++_i183) + org.apache.thrift.protocol.TList _list189 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.addAllowedUsers = new java.util.ArrayList(_list189.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem190; + for (int _i191 = 0; _i191 < _list189.size; ++_i191) { - _elem182 = iprot.readString(); - struct.addAllowedUsers.add(_elem182); + _elem190 = iprot.readString(); + struct.addAllowedUsers.add(_elem190); } } struct.setAddAllowedUsersIsSet(true); } if (incoming.get(14)) { { - org.apache.thrift.protocol.TList _list184 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.remAllowedUsers = new ArrayList(_list184.size); - String _elem185; - for (int _i186 = 0; _i186 < _list184.size; ++_i186) + org.apache.thrift.protocol.TList _list192 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.remAllowedUsers = new java.util.ArrayList(_list192.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem193; + for (int _i194 = 0; _i194 < _list192.size; ++_i194) { - _elem185 = iprot.readString(); - struct.remAllowedUsers.add(_elem185); + _elem193 = iprot.readString(); + struct.remAllowedUsers.add(_elem193); } } struct.setRemAllowedUsersIsSet(true); } if (incoming.get(15)) { { - org.apache.thrift.protocol.TList _list187 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.locationIds = new ArrayList(_list187.size); - int _elem188; - for (int _i189 = 0; _i189 < _list187.size; ++_i189) + org.apache.thrift.protocol.TList _list195 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.locationIds = new java.util.ArrayList(_list195.size); + int _elem196; + for (int _i197 = 0; _i197 < _list195.size; ++_i197) { - _elem188 = iprot.readI32(); - struct.locationIds.add(_elem188); + _elem196 = iprot.readI32(); + struct.locationIds.add(_elem196); } } struct.setLocationIdsIsSet(true); @@ -3075,54 +3031,54 @@ public class LectureWrite implements org.apache.thrift.TBase(_list190.size); - NetShare _elem191; - for (int _i192 = 0; _i192 < _list190.size; ++_i192) + org.apache.thrift.protocol.TList _list198 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.networkShares = new java.util.ArrayList(_list198.size); + @org.apache.thrift.annotation.Nullable NetShare _elem199; + for (int _i200 = 0; _i200 < _list198.size; ++_i200) { - _elem191 = new NetShare(); - _elem191.read(iprot); - struct.networkShares.add(_elem191); + _elem199 = new NetShare(); + _elem199.read(iprot); + struct.networkShares.add(_elem199); } } struct.setNetworkSharesIsSet(true); } if (incoming.get(20)) { { - org.apache.thrift.protocol.TList _list193 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.ldapFilters = new ArrayList(_list193.size); - LdapFilter _elem194; - for (int _i195 = 0; _i195 < _list193.size; ++_i195) + org.apache.thrift.protocol.TList _list201 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.ldapFilters = new java.util.ArrayList(_list201.size); + @org.apache.thrift.annotation.Nullable LdapFilter _elem202; + for (int _i203 = 0; _i203 < _list201.size; ++_i203) { - _elem194 = new LdapFilter(); - _elem194.read(iprot); - struct.ldapFilters.add(_elem194); + _elem202 = new LdapFilter(); + _elem202.read(iprot); + struct.ldapFilters.add(_elem202); } } struct.setLdapFiltersIsSet(true); } if (incoming.get(21)) { { - org.apache.thrift.protocol.TList _list196 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetScriptIds = new ArrayList(_list196.size); - int _elem197; - for (int _i198 = 0; _i198 < _list196.size; ++_i198) + org.apache.thrift.protocol.TList _list204 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetScriptIds = new java.util.ArrayList(_list204.size); + int _elem205; + for (int _i206 = 0; _i206 < _list204.size; ++_i206) { - _elem197 = iprot.readI32(); - struct.presetScriptIds.add(_elem197); + _elem205 = iprot.readI32(); + struct.presetScriptIds.add(_elem205); } } struct.setPresetScriptIdsIsSet(true); } if (incoming.get(22)) { { - org.apache.thrift.protocol.TList _list199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetNetworkExceptionIds = new ArrayList(_list199.size); - int _elem200; - for (int _i201 = 0; _i201 < _list199.size; ++_i201) + org.apache.thrift.protocol.TList _list207 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetNetworkExceptionIds = new java.util.ArrayList(_list207.size); + int _elem208; + for (int _i209 = 0; _i209 < _list207.size; ++_i209) { - _elem200 = iprot.readI32(); - struct.presetNetworkExceptionIds.add(_elem200); + _elem208 = iprot.readI32(); + struct.presetNetworkExceptionIds.add(_elem208); } } struct.setPresetNetworkExceptionIdsIsSet(true); @@ -3130,5 +3086,8 @@ public class LectureWrite implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/Location.java b/src/main/java/org/openslx/bwlp/thrift/iface/Location.java index 005389b..1cf1117 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/Location.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/Location.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-18") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class Location 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("Location"); @@ -42,14 +15,11 @@ public class Location implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new LocationStandardSchemeFactory()); - schemes.put(TupleScheme.class, new LocationTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new LocationStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new LocationTupleSchemeFactory(); public int locationId; // required - public String locationName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String locationName; // required public int parentLocationId; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -58,10 +28,10 @@ public class Location implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class Location implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.LOCATION_ID, new org.apache.thrift.meta_data.FieldMetaData("locationId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.LOCATION_NAME, new org.apache.thrift.meta_data.FieldMetaData("locationName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PARENT_LOCATION_ID, new org.apache.thrift.meta_data.FieldMetaData("parentLocationId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Location.class, metaDataMap); } @@ -138,7 +110,7 @@ public class Location implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_locationId = true; - list.add(present_locationId); - if (present_locationId) - list.add(locationId); + hashCode = hashCode * 8191 + locationId; - boolean present_locationName = true && (isSetLocationName()); - list.add(present_locationName); - if (present_locationName) - list.add(locationName); + hashCode = hashCode * 8191 + ((isSetLocationName()) ? 131071 : 524287); + if (isSetLocationName()) + hashCode = hashCode * 8191 + locationName.hashCode(); - boolean present_parentLocationId = true; - list.add(present_parentLocationId); - if (present_parentLocationId) - list.add(parentLocationId); + hashCode = hashCode * 8191 + parentLocationId; - return list.hashCode(); + return hashCode; } @Override @@ -378,7 +345,7 @@ public class Location implements org.apache.thrift.TBase { + private static class LocationStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, Location struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -544,18 +512,18 @@ public class Location implements org.apache.thrift.TBase { + private static class LocationTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, Location struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetLocationId()) { optionals.set(0); } @@ -579,8 +547,8 @@ public class Location implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 4733419..8d97c8b 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java @@ -1,143 +1,116 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-06") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class MasterServer { public interface Iface { public boolean ping() throws org.apache.thrift.TException; - public SessionData authenticate(String login, String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public SessionData authenticate(java.lang.String login, java.lang.String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public ClientSessionData localAccountLogin(String login, String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public ClientSessionData localAccountLogin(java.lang.String login, java.lang.String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public void setUsedSatellite(String sessionId, String satelliteName) throws org.apache.thrift.TException; + public void setUsedSatellite(java.lang.String sessionId, java.lang.String satelliteName) throws org.apache.thrift.TException; - public List findUser(String sessionId, String organizationId, String searchTerm) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public java.util.List findUser(java.lang.String sessionId, java.lang.String organizationId, java.lang.String searchTerm) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public List getPublicImages(String sessionId, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public java.util.List getPublicImages(java.lang.String sessionId, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public ImageDetailsRead getImageDetails(String sessionId, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public ImageDetailsRead getImageDetails(java.lang.String sessionId, java.lang.String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public UserInfo getUser(String userToken, String userId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public UserInfo getUser(java.lang.String userToken, java.lang.String userId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public void invalidateSession(String sessionId) throws TInvalidTokenException, org.apache.thrift.TException; + public void invalidateSession(java.lang.String sessionId) throws TInvalidTokenException, org.apache.thrift.TException; - public UserInfo getUserFromToken(String token) throws TInvalidTokenException, org.apache.thrift.TException; + public UserInfo getUserFromToken(java.lang.String token) throws TInvalidTokenException, org.apache.thrift.TException; - public boolean isServerAuthenticated(String serverSessionId) throws org.apache.thrift.TException; + public boolean isServerAuthenticated(java.lang.String serverSessionId) throws org.apache.thrift.TException; - public ByteBuffer startServerAuthentication(int satelliteId) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public java.nio.ByteBuffer startServerAuthentication(int satelliteId) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public ServerSessionData serverAuthenticate(int satelliteId, ByteBuffer challengeResponse) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public ServerSessionData serverAuthenticate(int satelliteId, java.nio.ByteBuffer challengeResponse) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public ImagePublishData getImageData(String serverSessionId, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException; + public ImagePublishData getImageData(java.lang.String serverSessionId, java.lang.String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException; - public TransferInformation submitImage(String userToken, ImagePublishData imageDescription, List blockHashes) throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException; + public TransferInformation submitImage(java.lang.String userToken, ImagePublishData imageDescription, java.util.List blockHashes) throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException; - public int registerSatellite(String userToken, String displayName, List addresses, String modulus, String exponent, ByteBuffer certsha256) throws TInvocationException, org.apache.thrift.TException; + public int registerSatellite(java.lang.String userToken, java.lang.String displayName, java.util.List addresses, java.lang.String modulus, java.lang.String exponent, java.nio.ByteBuffer certsha256) throws TInvocationException, org.apache.thrift.TException; - public boolean updateSatellite(String serverSessionId, String displayName, List addresses) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public boolean updateSatellite(java.lang.String serverSessionId, java.lang.String displayName, java.util.List addresses) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public TransferInformation downloadImage(String sessionId, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException; + public TransferInformation downloadImage(java.lang.String sessionId, java.lang.String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException; - public List getOrganizations() throws TInvocationException, org.apache.thrift.TException; + public java.util.List getOrganizations() throws TInvocationException, org.apache.thrift.TException; - public List getOperatingSystems() throws TInvocationException, org.apache.thrift.TException; + public java.util.List getOperatingSystems() throws TInvocationException, org.apache.thrift.TException; - public List getVirtualizers() throws TInvocationException, org.apache.thrift.TException; + public java.util.List getVirtualizers() throws TInvocationException, org.apache.thrift.TException; - public List getTags(long startDate) throws TInvocationException, org.apache.thrift.TException; + public java.util.List getTags(long startDate) throws TInvocationException, org.apache.thrift.TException; - public List getSoftware(long startDate) throws TInvocationException, org.apache.thrift.TException; + public java.util.List getSoftware(long startDate) throws TInvocationException, org.apache.thrift.TException; - public TransferStatus queryUploadStatus(String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException; + public TransferStatus queryUploadStatus(java.lang.String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException; } public interface AsyncIface { - public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void authenticate(String login, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void authenticate(java.lang.String login, java.lang.String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void localAccountLogin(String login, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void localAccountLogin(java.lang.String login, java.lang.String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void setUsedSatellite(String sessionId, String satelliteName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setUsedSatellite(java.lang.String sessionId, java.lang.String satelliteName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void findUser(String sessionId, String organizationId, String searchTerm, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void findUser(java.lang.String sessionId, java.lang.String organizationId, java.lang.String searchTerm, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getPublicImages(String sessionId, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getPublicImages(java.lang.String sessionId, int page, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getImageDetails(String sessionId, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageDetails(java.lang.String sessionId, java.lang.String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getUser(String userToken, String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getUser(java.lang.String userToken, java.lang.String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void invalidateSession(String sessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void invalidateSession(java.lang.String sessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getUserFromToken(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getUserFromToken(java.lang.String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void isServerAuthenticated(String serverSessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void isServerAuthenticated(java.lang.String serverSessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void startServerAuthentication(int satelliteId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void startServerAuthentication(int satelliteId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void serverAuthenticate(int satelliteId, ByteBuffer challengeResponse, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void serverAuthenticate(int satelliteId, java.nio.ByteBuffer challengeResponse, 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 getImageData(java.lang.String serverSessionId, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void submitImage(String userToken, ImagePublishData imageDescription, List blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void submitImage(java.lang.String userToken, ImagePublishData imageDescription, java.util.List blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void registerSatellite(String userToken, String displayName, List addresses, String modulus, String exponent, ByteBuffer certsha256, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void registerSatellite(java.lang.String userToken, java.lang.String displayName, java.util.List addresses, java.lang.String modulus, java.lang.String exponent, java.nio.ByteBuffer certsha256, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void updateSatellite(String serverSessionId, String displayName, List addresses, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void updateSatellite(java.lang.String serverSessionId, java.lang.String displayName, java.util.List addresses, 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 downloadImage(java.lang.String sessionId, java.lang.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 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; + public void getOperatingSystems(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getVirtualizers(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getVirtualizers(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getTags(long startDate, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getTags(long startDate, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getSoftware(long startDate, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getSoftware(long startDate, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void queryUploadStatus(String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void queryUploadStatus(java.lang.String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -183,13 +156,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "ping failed: unknown result"); } - public SessionData authenticate(String login, String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public SessionData authenticate(java.lang.String login, java.lang.String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_authenticate(login, password); return recv_authenticate(); } - public void send_authenticate(String login, String password) throws org.apache.thrift.TException + public void send_authenticate(java.lang.String login, java.lang.String password) throws org.apache.thrift.TException { authenticate_args args = new authenticate_args(); args.setLogin(login); @@ -213,13 +186,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticate failed: unknown result"); } - public ClientSessionData localAccountLogin(String login, String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public ClientSessionData localAccountLogin(java.lang.String login, java.lang.String password) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_localAccountLogin(login, password); return recv_localAccountLogin(); } - public void send_localAccountLogin(String login, String password) throws org.apache.thrift.TException + public void send_localAccountLogin(java.lang.String login, java.lang.String password) throws org.apache.thrift.TException { localAccountLogin_args args = new localAccountLogin_args(); args.setLogin(login); @@ -243,13 +216,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "localAccountLogin failed: unknown result"); } - public void setUsedSatellite(String sessionId, String satelliteName) throws org.apache.thrift.TException + public void setUsedSatellite(java.lang.String sessionId, java.lang.String satelliteName) throws org.apache.thrift.TException { send_setUsedSatellite(sessionId, satelliteName); recv_setUsedSatellite(); } - public void send_setUsedSatellite(String sessionId, String satelliteName) throws org.apache.thrift.TException + public void send_setUsedSatellite(java.lang.String sessionId, java.lang.String satelliteName) throws org.apache.thrift.TException { setUsedSatellite_args args = new setUsedSatellite_args(); args.setSessionId(sessionId); @@ -264,13 +237,13 @@ public class MasterServer { return; } - public List findUser(String sessionId, String organizationId, String searchTerm) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public java.util.List findUser(java.lang.String sessionId, java.lang.String organizationId, java.lang.String searchTerm) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_findUser(sessionId, organizationId, searchTerm); return recv_findUser(); } - public void send_findUser(String sessionId, String organizationId, String searchTerm) throws org.apache.thrift.TException + public void send_findUser(java.lang.String sessionId, java.lang.String organizationId, java.lang.String searchTerm) throws org.apache.thrift.TException { findUser_args args = new findUser_args(); args.setSessionId(sessionId); @@ -279,7 +252,7 @@ public class MasterServer { sendBase("findUser", args); } - public List recv_findUser() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public java.util.List recv_findUser() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { findUser_result result = new findUser_result(); receiveBase(result, "findUser"); @@ -295,13 +268,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "findUser failed: unknown result"); } - public List getPublicImages(String sessionId, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public java.util.List getPublicImages(java.lang.String sessionId, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_getPublicImages(sessionId, page); return recv_getPublicImages(); } - public void send_getPublicImages(String sessionId, int page) throws org.apache.thrift.TException + public void send_getPublicImages(java.lang.String sessionId, int page) throws org.apache.thrift.TException { getPublicImages_args args = new getPublicImages_args(); args.setSessionId(sessionId); @@ -309,7 +282,7 @@ public class MasterServer { sendBase("getPublicImages", args); } - public List recv_getPublicImages() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public java.util.List recv_getPublicImages() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { getPublicImages_result result = new getPublicImages_result(); receiveBase(result, "getPublicImages"); @@ -325,13 +298,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPublicImages failed: unknown result"); } - public ImageDetailsRead getImageDetails(String sessionId, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public ImageDetailsRead getImageDetails(java.lang.String sessionId, java.lang.String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_getImageDetails(sessionId, imageBaseId); return recv_getImageDetails(); } - public void send_getImageDetails(String sessionId, String imageBaseId) throws org.apache.thrift.TException + public void send_getImageDetails(java.lang.String sessionId, java.lang.String imageBaseId) throws org.apache.thrift.TException { getImageDetails_args args = new getImageDetails_args(); args.setSessionId(sessionId); @@ -358,13 +331,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageDetails failed: unknown result"); } - public UserInfo getUser(String userToken, String userId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public UserInfo getUser(java.lang.String userToken, java.lang.String userId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_getUser(userToken, userId); return recv_getUser(); } - public void send_getUser(String userToken, String userId) throws org.apache.thrift.TException + public void send_getUser(java.lang.String userToken, java.lang.String userId) throws org.apache.thrift.TException { getUser_args args = new getUser_args(); args.setUserToken(userToken); @@ -391,13 +364,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUser failed: unknown result"); } - public void invalidateSession(String sessionId) throws TInvalidTokenException, org.apache.thrift.TException + public void invalidateSession(java.lang.String sessionId) throws TInvalidTokenException, org.apache.thrift.TException { send_invalidateSession(sessionId); recv_invalidateSession(); } - public void send_invalidateSession(String sessionId) throws org.apache.thrift.TException + public void send_invalidateSession(java.lang.String sessionId) throws org.apache.thrift.TException { invalidateSession_args args = new invalidateSession_args(); args.setSessionId(sessionId); @@ -414,13 +387,13 @@ public class MasterServer { return; } - public UserInfo getUserFromToken(String token) throws TInvalidTokenException, org.apache.thrift.TException + public UserInfo getUserFromToken(java.lang.String token) throws TInvalidTokenException, org.apache.thrift.TException { send_getUserFromToken(token); return recv_getUserFromToken(); } - public void send_getUserFromToken(String token) throws org.apache.thrift.TException + public void send_getUserFromToken(java.lang.String token) throws org.apache.thrift.TException { getUserFromToken_args args = new getUserFromToken_args(); args.setToken(token); @@ -440,13 +413,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserFromToken failed: unknown result"); } - public boolean isServerAuthenticated(String serverSessionId) throws org.apache.thrift.TException + public boolean isServerAuthenticated(java.lang.String serverSessionId) throws org.apache.thrift.TException { send_isServerAuthenticated(serverSessionId); return recv_isServerAuthenticated(); } - public void send_isServerAuthenticated(String serverSessionId) throws org.apache.thrift.TException + public void send_isServerAuthenticated(java.lang.String serverSessionId) throws org.apache.thrift.TException { isServerAuthenticated_args args = new isServerAuthenticated_args(); args.setServerSessionId(serverSessionId); @@ -463,7 +436,7 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isServerAuthenticated failed: unknown result"); } - public ByteBuffer startServerAuthentication(int satelliteId) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public java.nio.ByteBuffer startServerAuthentication(int satelliteId) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_startServerAuthentication(satelliteId); return recv_startServerAuthentication(); @@ -476,7 +449,7 @@ public class MasterServer { sendBase("startServerAuthentication", args); } - public ByteBuffer recv_startServerAuthentication() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public java.nio.ByteBuffer recv_startServerAuthentication() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { startServerAuthentication_result result = new startServerAuthentication_result(); receiveBase(result, "startServerAuthentication"); @@ -492,13 +465,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startServerAuthentication failed: unknown result"); } - public ServerSessionData serverAuthenticate(int satelliteId, ByteBuffer challengeResponse) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public ServerSessionData serverAuthenticate(int satelliteId, java.nio.ByteBuffer challengeResponse) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_serverAuthenticate(satelliteId, challengeResponse); return recv_serverAuthenticate(); } - public void send_serverAuthenticate(int satelliteId, ByteBuffer challengeResponse) throws org.apache.thrift.TException + public void send_serverAuthenticate(int satelliteId, java.nio.ByteBuffer challengeResponse) throws org.apache.thrift.TException { serverAuthenticate_args args = new serverAuthenticate_args(); args.setSatelliteId(satelliteId); @@ -522,13 +495,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "serverAuthenticate failed: unknown result"); } - public ImagePublishData getImageData(String serverSessionId, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException + public ImagePublishData getImageData(java.lang.String serverSessionId, java.lang.String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException { send_getImageData(serverSessionId, imageVersionId); return recv_getImageData(); } - public void send_getImageData(String serverSessionId, String imageVersionId) throws org.apache.thrift.TException + public void send_getImageData(java.lang.String serverSessionId, java.lang.String imageVersionId) throws org.apache.thrift.TException { getImageData_args args = new getImageData_args(); args.setServerSessionId(serverSessionId); @@ -555,13 +528,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageData failed: unknown result"); } - public TransferInformation submitImage(String userToken, ImagePublishData imageDescription, List blockHashes) throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException + public TransferInformation submitImage(java.lang.String userToken, ImagePublishData imageDescription, java.util.List blockHashes) throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException { send_submitImage(userToken, imageDescription, blockHashes); return recv_submitImage(); } - public void send_submitImage(String userToken, ImagePublishData imageDescription, List blockHashes) throws org.apache.thrift.TException + public void send_submitImage(java.lang.String userToken, ImagePublishData imageDescription, java.util.List blockHashes) throws org.apache.thrift.TException { submitImage_args args = new submitImage_args(); args.setUserToken(userToken); @@ -589,13 +562,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "submitImage failed: unknown result"); } - public int registerSatellite(String userToken, String displayName, List addresses, String modulus, String exponent, ByteBuffer certsha256) throws TInvocationException, org.apache.thrift.TException + public int registerSatellite(java.lang.String userToken, java.lang.String displayName, java.util.List addresses, java.lang.String modulus, java.lang.String exponent, java.nio.ByteBuffer certsha256) throws TInvocationException, org.apache.thrift.TException { send_registerSatellite(userToken, displayName, addresses, modulus, exponent, certsha256); return recv_registerSatellite(); } - public void send_registerSatellite(String userToken, String displayName, List addresses, String modulus, String exponent, ByteBuffer certsha256) throws org.apache.thrift.TException + public void send_registerSatellite(java.lang.String userToken, java.lang.String displayName, java.util.List addresses, java.lang.String modulus, java.lang.String exponent, java.nio.ByteBuffer certsha256) throws org.apache.thrift.TException { registerSatellite_args args = new registerSatellite_args(); args.setUserToken(userToken); @@ -620,13 +593,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "registerSatellite failed: unknown result"); } - public boolean updateSatellite(String serverSessionId, String displayName, List addresses) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public boolean updateSatellite(java.lang.String serverSessionId, java.lang.String displayName, java.util.List addresses) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_updateSatellite(serverSessionId, displayName, addresses); return recv_updateSatellite(); } - public void send_updateSatellite(String serverSessionId, String displayName, List addresses) throws org.apache.thrift.TException + public void send_updateSatellite(java.lang.String serverSessionId, java.lang.String displayName, java.util.List addresses) throws org.apache.thrift.TException { updateSatellite_args args = new updateSatellite_args(); args.setServerSessionId(serverSessionId); @@ -651,13 +624,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateSatellite failed: unknown result"); } - public TransferInformation downloadImage(String sessionId, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException + public TransferInformation downloadImage(java.lang.String sessionId, java.lang.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 + public void send_downloadImage(java.lang.String sessionId, java.lang.String imageVersionId) throws org.apache.thrift.TException { downloadImage_args args = new downloadImage_args(); args.setSessionId(sessionId); @@ -684,7 +657,7 @@ public class MasterServer { 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 + public java.util.List getOrganizations() throws TInvocationException, org.apache.thrift.TException { send_getOrganizations(); return recv_getOrganizations(); @@ -696,7 +669,7 @@ public class MasterServer { sendBase("getOrganizations", args); } - public List recv_getOrganizations() throws TInvocationException, org.apache.thrift.TException + public java.util.List recv_getOrganizations() throws TInvocationException, org.apache.thrift.TException { getOrganizations_result result = new getOrganizations_result(); receiveBase(result, "getOrganizations"); @@ -709,7 +682,7 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrganizations failed: unknown result"); } - public List getOperatingSystems() throws TInvocationException, org.apache.thrift.TException + public java.util.List getOperatingSystems() throws TInvocationException, org.apache.thrift.TException { send_getOperatingSystems(); return recv_getOperatingSystems(); @@ -721,7 +694,7 @@ public class MasterServer { sendBase("getOperatingSystems", args); } - public List recv_getOperatingSystems() throws TInvocationException, org.apache.thrift.TException + public java.util.List recv_getOperatingSystems() throws TInvocationException, org.apache.thrift.TException { getOperatingSystems_result result = new getOperatingSystems_result(); receiveBase(result, "getOperatingSystems"); @@ -734,7 +707,7 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOperatingSystems failed: unknown result"); } - public List getVirtualizers() throws TInvocationException, org.apache.thrift.TException + public java.util.List getVirtualizers() throws TInvocationException, org.apache.thrift.TException { send_getVirtualizers(); return recv_getVirtualizers(); @@ -746,7 +719,7 @@ public class MasterServer { sendBase("getVirtualizers", args); } - public List recv_getVirtualizers() throws TInvocationException, org.apache.thrift.TException + public java.util.List recv_getVirtualizers() throws TInvocationException, org.apache.thrift.TException { getVirtualizers_result result = new getVirtualizers_result(); receiveBase(result, "getVirtualizers"); @@ -759,7 +732,7 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVirtualizers failed: unknown result"); } - public List getTags(long startDate) throws TInvocationException, org.apache.thrift.TException + public java.util.List getTags(long startDate) throws TInvocationException, org.apache.thrift.TException { send_getTags(startDate); return recv_getTags(); @@ -772,7 +745,7 @@ public class MasterServer { sendBase("getTags", args); } - public List recv_getTags() throws TInvocationException, org.apache.thrift.TException + public java.util.List recv_getTags() throws TInvocationException, org.apache.thrift.TException { getTags_result result = new getTags_result(); receiveBase(result, "getTags"); @@ -785,7 +758,7 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTags failed: unknown result"); } - public List getSoftware(long startDate) throws TInvocationException, org.apache.thrift.TException + public java.util.List getSoftware(long startDate) throws TInvocationException, org.apache.thrift.TException { send_getSoftware(startDate); return recv_getSoftware(); @@ -798,7 +771,7 @@ public class MasterServer { sendBase("getSoftware", args); } - public List recv_getSoftware() throws TInvocationException, org.apache.thrift.TException + public java.util.List recv_getSoftware() throws TInvocationException, org.apache.thrift.TException { getSoftware_result result = new getSoftware_result(); receiveBase(result, "getSoftware"); @@ -811,13 +784,13 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSoftware failed: unknown result"); } - public TransferStatus queryUploadStatus(String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException + public TransferStatus queryUploadStatus(java.lang.String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException { send_queryUploadStatus(uploadToken); return recv_queryUploadStatus(); } - public void send_queryUploadStatus(String uploadToken) throws org.apache.thrift.TException + public void send_queryUploadStatus(java.lang.String uploadToken) throws org.apache.thrift.TException { queryUploadStatus_args args = new queryUploadStatus_args(); args.setUploadToken(uploadToken); @@ -855,15 +828,15 @@ public class MasterServer { super(protocolFactory, clientManager, transport); } - public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); ping_call method_call = new ping_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class ping_call extends org.apache.thrift.async.TAsyncMethodCall { - public ping_call(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 { + public static class ping_call extends org.apache.thrift.async.TAsyncMethodCall { + public ping_call(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); } @@ -874,9 +847,9 @@ public class MasterServer { prot.writeMessageEnd(); } - public boolean getResult() throws org.apache.thrift.TException { + public java.lang.Boolean getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -884,17 +857,17 @@ public class MasterServer { } } - public void authenticate(String login, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void authenticate(java.lang.String login, java.lang.String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); authenticate_call method_call = new authenticate_call(login, password, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class authenticate_call extends org.apache.thrift.async.TAsyncMethodCall { - private String login; - private String password; - public authenticate_call(String login, String password, 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 { + public static class authenticate_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String login; + private java.lang.String password; + public authenticate_call(java.lang.String login, java.lang.String password, 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.login = login; this.password = password; @@ -911,7 +884,7 @@ public class MasterServer { public SessionData getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -919,17 +892,17 @@ public class MasterServer { } } - public void localAccountLogin(String login, String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void localAccountLogin(java.lang.String login, java.lang.String password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); localAccountLogin_call method_call = new localAccountLogin_call(login, password, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class localAccountLogin_call extends org.apache.thrift.async.TAsyncMethodCall { - private String login; - private String password; - public localAccountLogin_call(String login, String password, 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 { + public static class localAccountLogin_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String login; + private java.lang.String password; + public localAccountLogin_call(java.lang.String login, java.lang.String password, 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.login = login; this.password = password; @@ -946,7 +919,7 @@ public class MasterServer { public ClientSessionData getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -954,17 +927,17 @@ public class MasterServer { } } - public void setUsedSatellite(String sessionId, String satelliteName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void setUsedSatellite(java.lang.String sessionId, java.lang.String satelliteName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); setUsedSatellite_call method_call = new setUsedSatellite_call(sessionId, satelliteName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class setUsedSatellite_call extends org.apache.thrift.async.TAsyncMethodCall { - private String sessionId; - private String satelliteName; - public setUsedSatellite_call(String sessionId, String satelliteName, 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 { + public static class setUsedSatellite_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String sessionId; + private java.lang.String satelliteName; + public setUsedSatellite_call(java.lang.String sessionId, java.lang.String satelliteName, 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.satelliteName = satelliteName; @@ -979,28 +952,28 @@ public class MasterServer { prot.writeMessageEnd(); } - public void getResult() throws org.apache.thrift.TException { + public Void getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_setUsedSatellite(); + return null; } } - public void findUser(String sessionId, String organizationId, String searchTerm, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void findUser(java.lang.String sessionId, java.lang.String organizationId, java.lang.String searchTerm, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); findUser_call method_call = new findUser_call(sessionId, organizationId, searchTerm, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class findUser_call extends org.apache.thrift.async.TAsyncMethodCall { - private String sessionId; - private String organizationId; - private String searchTerm; - public findUser_call(String sessionId, String organizationId, String searchTerm, 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 { + public static class findUser_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.lang.String sessionId; + private java.lang.String organizationId; + private java.lang.String searchTerm; + public findUser_call(java.lang.String sessionId, java.lang.String organizationId, java.lang.String searchTerm, 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.organizationId = organizationId; @@ -1017,9 +990,9 @@ public class MasterServer { prot.writeMessageEnd(); } - public List getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { + public java.util.List getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1027,17 +1000,17 @@ public class MasterServer { } } - public void getPublicImages(String sessionId, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getPublicImages(java.lang.String sessionId, int page, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getPublicImages_call method_call = new getPublicImages_call(sessionId, page, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getPublicImages_call extends org.apache.thrift.async.TAsyncMethodCall { - private String sessionId; + public static class getPublicImages_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.lang.String sessionId; private int page; - public getPublicImages_call(String sessionId, int page, 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 { + public getPublicImages_call(java.lang.String sessionId, int page, 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.page = page; @@ -1052,9 +1025,9 @@ public class MasterServer { prot.writeMessageEnd(); } - public List getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { + public java.util.List getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1062,17 +1035,17 @@ public class MasterServer { } } - public void getImageDetails(String sessionId, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImageDetails(java.lang.String sessionId, java.lang.String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getImageDetails_call method_call = new getImageDetails_call(sessionId, imageBaseId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getImageDetails_call extends org.apache.thrift.async.TAsyncMethodCall { - private String sessionId; - private String imageBaseId; - public getImageDetails_call(String sessionId, String imageBaseId, 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 { + public static class getImageDetails_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String sessionId; + private java.lang.String imageBaseId; + public getImageDetails_call(java.lang.String sessionId, java.lang.String imageBaseId, 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.imageBaseId = imageBaseId; @@ -1089,7 +1062,7 @@ public class MasterServer { public ImageDetailsRead 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!"); + throw new java.lang.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); @@ -1097,17 +1070,17 @@ public class MasterServer { } } - public void getUser(String userToken, String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getUser(java.lang.String userToken, java.lang.String userId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getUser_call method_call = new getUser_call(userToken, userId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getUser_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String userId; - public getUser_call(String userToken, String userId, 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 { + public static class getUser_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String userId; + public getUser_call(java.lang.String userToken, java.lang.String userId, 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.userId = userId; @@ -1124,7 +1097,7 @@ public class MasterServer { public UserInfo 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!"); + throw new java.lang.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); @@ -1132,16 +1105,16 @@ public class MasterServer { } } - public void invalidateSession(String sessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void invalidateSession(java.lang.String sessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); invalidateSession_call method_call = new invalidateSession_call(sessionId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class invalidateSession_call extends org.apache.thrift.async.TAsyncMethodCall { - private String sessionId; - public invalidateSession_call(String sessionId, 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 { + public static class invalidateSession_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String sessionId; + public invalidateSession_call(java.lang.String sessionId, 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; } @@ -1154,26 +1127,26 @@ public class MasterServer { prot.writeMessageEnd(); } - public void getResult() throws TInvalidTokenException, org.apache.thrift.TException { + public Void getResult() throws TInvalidTokenException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_invalidateSession(); + return null; } } - public void getUserFromToken(String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getUserFromToken(java.lang.String token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getUserFromToken_call method_call = new getUserFromToken_call(token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getUserFromToken_call extends org.apache.thrift.async.TAsyncMethodCall { - private String token; - public getUserFromToken_call(String token, 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 { + public static class getUserFromToken_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String token; + public getUserFromToken_call(java.lang.String token, 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.token = token; } @@ -1188,7 +1161,7 @@ public class MasterServer { public UserInfo getResult() throws TInvalidTokenException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1196,16 +1169,16 @@ public class MasterServer { } } - public void isServerAuthenticated(String serverSessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void isServerAuthenticated(java.lang.String serverSessionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); isServerAuthenticated_call method_call = new isServerAuthenticated_call(serverSessionId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class isServerAuthenticated_call extends org.apache.thrift.async.TAsyncMethodCall { - private String serverSessionId; - public isServerAuthenticated_call(String serverSessionId, 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 { + public static class isServerAuthenticated_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String serverSessionId; + public isServerAuthenticated_call(java.lang.String serverSessionId, 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; } @@ -1218,9 +1191,9 @@ public class MasterServer { prot.writeMessageEnd(); } - public boolean getResult() throws org.apache.thrift.TException { + public java.lang.Boolean getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1228,16 +1201,16 @@ public class MasterServer { } } - public void startServerAuthentication(int satelliteId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void startServerAuthentication(int satelliteId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); startServerAuthentication_call method_call = new startServerAuthentication_call(satelliteId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class startServerAuthentication_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class startServerAuthentication_call extends org.apache.thrift.async.TAsyncMethodCall { private int satelliteId; - public startServerAuthentication_call(int satelliteId, 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 { + public startServerAuthentication_call(int satelliteId, 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.satelliteId = satelliteId; } @@ -1250,9 +1223,9 @@ public class MasterServer { prot.writeMessageEnd(); } - public ByteBuffer getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { + public java.nio.ByteBuffer getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1260,17 +1233,17 @@ public class MasterServer { } } - public void serverAuthenticate(int satelliteId, ByteBuffer challengeResponse, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void serverAuthenticate(int satelliteId, java.nio.ByteBuffer challengeResponse, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); serverAuthenticate_call method_call = new serverAuthenticate_call(satelliteId, challengeResponse, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class serverAuthenticate_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class serverAuthenticate_call extends org.apache.thrift.async.TAsyncMethodCall { private int satelliteId; - private ByteBuffer challengeResponse; - public serverAuthenticate_call(int satelliteId, ByteBuffer challengeResponse, 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 java.nio.ByteBuffer challengeResponse; + public serverAuthenticate_call(int satelliteId, java.nio.ByteBuffer challengeResponse, 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.satelliteId = satelliteId; this.challengeResponse = challengeResponse; @@ -1287,7 +1260,7 @@ public class MasterServer { public ServerSessionData getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1295,17 +1268,17 @@ public class MasterServer { } } - public void getImageData(String serverSessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImageData(java.lang.String serverSessionId, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getImageData_call method_call = new getImageData_call(serverSessionId, imageVersionId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getImageData_call extends org.apache.thrift.async.TAsyncMethodCall { - private String serverSessionId; - 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 { + public static class getImageData_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String serverSessionId; + private java.lang.String imageVersionId; + public getImageData_call(java.lang.String serverSessionId, java.lang.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.imageVersionId = imageVersionId; @@ -1322,7 +1295,7 @@ public class MasterServer { 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!"); + throw new java.lang.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); @@ -1330,18 +1303,18 @@ public class MasterServer { } } - public void submitImage(String userToken, ImagePublishData imageDescription, List blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void submitImage(java.lang.String userToken, ImagePublishData imageDescription, java.util.List blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); submitImage_call method_call = new submitImage_call(userToken, imageDescription, blockHashes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class submitImage_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; + public static class submitImage_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; private ImagePublishData imageDescription; - private List blockHashes; - public submitImage_call(String userToken, 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 java.util.List blockHashes; + public submitImage_call(java.lang.String userToken, ImagePublishData imageDescription, java.util.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.userToken = userToken; this.imageDescription = imageDescription; @@ -1360,7 +1333,7 @@ public class MasterServer { 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!"); + throw new java.lang.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); @@ -1368,21 +1341,21 @@ public class MasterServer { } } - public void registerSatellite(String userToken, String displayName, List addresses, String modulus, String exponent, ByteBuffer certsha256, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void registerSatellite(java.lang.String userToken, java.lang.String displayName, java.util.List addresses, java.lang.String modulus, java.lang.String exponent, java.nio.ByteBuffer certsha256, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); registerSatellite_call method_call = new registerSatellite_call(userToken, displayName, addresses, modulus, exponent, certsha256, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class registerSatellite_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String displayName; - private List addresses; - private String modulus; - private String exponent; - private ByteBuffer certsha256; - public registerSatellite_call(String userToken, String displayName, List addresses, String modulus, String exponent, ByteBuffer certsha256, 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 { + public static class registerSatellite_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String displayName; + private java.util.List addresses; + private java.lang.String modulus; + private java.lang.String exponent; + private java.nio.ByteBuffer certsha256; + public registerSatellite_call(java.lang.String userToken, java.lang.String displayName, java.util.List addresses, java.lang.String modulus, java.lang.String exponent, java.nio.ByteBuffer certsha256, 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.displayName = displayName; @@ -1405,9 +1378,9 @@ public class MasterServer { prot.writeMessageEnd(); } - public int getResult() throws TInvocationException, org.apache.thrift.TException { + public java.lang.Integer getResult() throws TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1415,18 +1388,18 @@ public class MasterServer { } } - public void updateSatellite(String serverSessionId, String displayName, List addresses, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void updateSatellite(java.lang.String serverSessionId, java.lang.String displayName, java.util.List addresses, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); updateSatellite_call method_call = new updateSatellite_call(serverSessionId, displayName, addresses, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class updateSatellite_call extends org.apache.thrift.async.TAsyncMethodCall { - private String serverSessionId; - private String displayName; - private List addresses; - public updateSatellite_call(String serverSessionId, String displayName, List addresses, 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 { + public static class updateSatellite_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String serverSessionId; + private java.lang.String displayName; + private java.util.List addresses; + public updateSatellite_call(java.lang.String serverSessionId, java.lang.String displayName, java.util.List addresses, 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.displayName = displayName; @@ -1443,9 +1416,9 @@ public class MasterServer { prot.writeMessageEnd(); } - public boolean getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { + public java.lang.Boolean getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1453,17 +1426,17 @@ public class MasterServer { } } - public void downloadImage(String sessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void downloadImage(java.lang.String sessionId, java.lang.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 { + public static class downloadImage_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String sessionId; + private java.lang.String imageVersionId; + public downloadImage_call(java.lang.String sessionId, java.lang.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; @@ -1480,7 +1453,7 @@ public class MasterServer { 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!"); + throw new java.lang.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); @@ -1488,15 +1461,15 @@ public class MasterServer { } } - public void getOrganizations(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 { checkReady(); getOrganizations_call method_call = new getOrganizations_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getOrganizations_call extends org.apache.thrift.async.TAsyncMethodCall { - public getOrganizations_call(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 { + public static class getOrganizations_call extends org.apache.thrift.async.TAsyncMethodCall> { + public getOrganizations_call(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); } @@ -1507,9 +1480,9 @@ public class MasterServer { prot.writeMessageEnd(); } - public List getResult() throws TInvocationException, org.apache.thrift.TException { + public java.util.List getResult() throws TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1517,15 +1490,15 @@ public class MasterServer { } } - public void getOperatingSystems(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 { checkReady(); getOperatingSystems_call method_call = new getOperatingSystems_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getOperatingSystems_call extends org.apache.thrift.async.TAsyncMethodCall { - public getOperatingSystems_call(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 { + public static class getOperatingSystems_call extends org.apache.thrift.async.TAsyncMethodCall> { + public getOperatingSystems_call(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); } @@ -1536,9 +1509,9 @@ public class MasterServer { prot.writeMessageEnd(); } - public List getResult() throws TInvocationException, org.apache.thrift.TException { + public java.util.List getResult() throws TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1546,15 +1519,15 @@ public class MasterServer { } } - public void getVirtualizers(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getVirtualizers(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getVirtualizers_call method_call = new getVirtualizers_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getVirtualizers_call extends org.apache.thrift.async.TAsyncMethodCall { - public getVirtualizers_call(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 { + public static class getVirtualizers_call extends org.apache.thrift.async.TAsyncMethodCall> { + public getVirtualizers_call(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); } @@ -1565,9 +1538,9 @@ public class MasterServer { prot.writeMessageEnd(); } - public List getResult() throws TInvocationException, org.apache.thrift.TException { + public java.util.List getResult() throws TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1575,16 +1548,16 @@ public class MasterServer { } } - public void getTags(long startDate, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getTags(long startDate, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getTags_call method_call = new getTags_call(startDate, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getTags_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class getTags_call extends org.apache.thrift.async.TAsyncMethodCall> { private long startDate; - public getTags_call(long startDate, 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 { + public getTags_call(long startDate, 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.startDate = startDate; } @@ -1597,9 +1570,9 @@ public class MasterServer { prot.writeMessageEnd(); } - public List getResult() throws TInvocationException, org.apache.thrift.TException { + public java.util.List getResult() throws TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1607,16 +1580,16 @@ public class MasterServer { } } - public void getSoftware(long startDate, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getSoftware(long startDate, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getSoftware_call method_call = new getSoftware_call(startDate, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getSoftware_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class getSoftware_call extends org.apache.thrift.async.TAsyncMethodCall> { private long startDate; - public getSoftware_call(long startDate, 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 { + public getSoftware_call(long startDate, 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.startDate = startDate; } @@ -1629,9 +1602,9 @@ public class MasterServer { prot.writeMessageEnd(); } - public List getResult() throws TInvocationException, org.apache.thrift.TException { + public java.util.List getResult() throws TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1639,16 +1612,16 @@ public class MasterServer { } } - public void queryUploadStatus(String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void queryUploadStatus(java.lang.String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); queryUploadStatus_call method_call = new queryUploadStatus_call(uploadToken, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class queryUploadStatus_call extends org.apache.thrift.async.TAsyncMethodCall { - private String uploadToken; - public queryUploadStatus_call(String uploadToken, 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 { + public static class queryUploadStatus_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String uploadToken; + public queryUploadStatus_call(java.lang.String uploadToken, 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.uploadToken = uploadToken; } @@ -1663,7 +1636,7 @@ public class MasterServer { public TransferStatus getResult() throws TInvalidTokenException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1674,16 +1647,16 @@ public class MasterServer { } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); + private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static Map> getProcessMap(Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("ping", new ping()); processMap.put("authenticate", new authenticate()); processMap.put("localAccountLogin", new localAccountLogin()); @@ -1724,6 +1697,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public ping_result getResult(I iface, ping_args args) throws org.apache.thrift.TException { ping_result result = new ping_result(); result.success = iface.ping(); @@ -1745,6 +1723,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public authenticate_result getResult(I iface, authenticate_args args) throws org.apache.thrift.TException { authenticate_result result = new authenticate_result(); try { @@ -1771,6 +1754,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public localAccountLogin_result getResult(I iface, localAccountLogin_args args) throws org.apache.thrift.TException { localAccountLogin_result result = new localAccountLogin_result(); try { @@ -1797,6 +1785,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public setUsedSatellite_result getResult(I iface, setUsedSatellite_args args) throws org.apache.thrift.TException { setUsedSatellite_result result = new setUsedSatellite_result(); iface.setUsedSatellite(args.sessionId, args.satelliteName); @@ -1817,6 +1810,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public findUser_result getResult(I iface, findUser_args args) throws org.apache.thrift.TException { findUser_result result = new findUser_result(); try { @@ -1843,6 +1841,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getPublicImages_result getResult(I iface, getPublicImages_args args) throws org.apache.thrift.TException { getPublicImages_result result = new getPublicImages_result(); try { @@ -1869,6 +1872,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getImageDetails_result getResult(I iface, getImageDetails_args args) throws org.apache.thrift.TException { getImageDetails_result result = new getImageDetails_result(); try { @@ -1897,6 +1905,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getUser_result getResult(I iface, getUser_args args) throws org.apache.thrift.TException { getUser_result result = new getUser_result(); try { @@ -1925,6 +1938,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public invalidateSession_result getResult(I iface, invalidateSession_args args) throws org.apache.thrift.TException { invalidateSession_result result = new invalidateSession_result(); try { @@ -1949,6 +1967,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getUserFromToken_result getResult(I iface, getUserFromToken_args args) throws org.apache.thrift.TException { getUserFromToken_result result = new getUserFromToken_result(); try { @@ -1973,6 +1996,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public isServerAuthenticated_result getResult(I iface, isServerAuthenticated_args args) throws org.apache.thrift.TException { isServerAuthenticated_result result = new isServerAuthenticated_result(); result.success = iface.isServerAuthenticated(args.serverSessionId); @@ -1994,6 +2022,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public startServerAuthentication_result getResult(I iface, startServerAuthentication_args args) throws org.apache.thrift.TException { startServerAuthentication_result result = new startServerAuthentication_result(); try { @@ -2020,6 +2053,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public serverAuthenticate_result getResult(I iface, serverAuthenticate_args args) throws org.apache.thrift.TException { serverAuthenticate_result result = new serverAuthenticate_result(); try { @@ -2046,6 +2084,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getImageData_result getResult(I iface, getImageData_args args) throws org.apache.thrift.TException { getImageData_result result = new getImageData_result(); try { @@ -2074,6 +2117,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public submitImage_result getResult(I iface, submitImage_args args) throws org.apache.thrift.TException { submitImage_result result = new submitImage_result(); try { @@ -2102,6 +2150,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public registerSatellite_result getResult(I iface, registerSatellite_args args) throws org.apache.thrift.TException { registerSatellite_result result = new registerSatellite_result(); try { @@ -2127,6 +2180,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public updateSatellite_result getResult(I iface, updateSatellite_args args) throws org.apache.thrift.TException { updateSatellite_result result = new updateSatellite_result(); try { @@ -2154,6 +2212,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public downloadImage_result getResult(I iface, downloadImage_args args) throws org.apache.thrift.TException { downloadImage_result result = new downloadImage_result(); try { @@ -2182,6 +2245,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getOrganizations_result getResult(I iface, getOrganizations_args args) throws org.apache.thrift.TException { getOrganizations_result result = new getOrganizations_result(); try { @@ -2206,6 +2274,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getOperatingSystems_result getResult(I iface, getOperatingSystems_args args) throws org.apache.thrift.TException { getOperatingSystems_result result = new getOperatingSystems_result(); try { @@ -2230,6 +2303,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getVirtualizers_result getResult(I iface, getVirtualizers_args args) throws org.apache.thrift.TException { getVirtualizers_result result = new getVirtualizers_result(); try { @@ -2254,6 +2332,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getTags_result getResult(I iface, getTags_args args) throws org.apache.thrift.TException { getTags_result result = new getTags_result(); try { @@ -2278,6 +2361,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getSoftware_result getResult(I iface, getSoftware_args args) throws org.apache.thrift.TException { getSoftware_result result = new getSoftware_result(); try { @@ -2302,6 +2390,11 @@ public class MasterServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public queryUploadStatus_result getResult(I iface, queryUploadStatus_args args) throws org.apache.thrift.TException { queryUploadStatus_result result = new queryUploadStatus_result(); try { @@ -2316,16 +2409,16 @@ public class MasterServer { } public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); + private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static Map> getProcessMap(Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("ping", new ping()); processMap.put("authenticate", new authenticate()); processMap.put("localAccountLogin", new localAccountLogin()); @@ -2353,7 +2446,7 @@ public class MasterServer { return processMap; } - public static class ping extends org.apache.thrift.AsyncProcessFunction { + public static class ping extends org.apache.thrift.AsyncProcessFunction { public ping() { super("ping"); } @@ -2362,36 +2455,46 @@ public class MasterServer { return new ping_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.Boolean o) { ping_result result = new ping_result(); result.success = o; result.setSuccessIsSet(true); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; ping_result result = new ping_result(); - { + if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2400,7 +2503,7 @@ public class MasterServer { return false; } - public void start(I iface, ping_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, ping_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.ping(resultHandler); } } @@ -2414,46 +2517,53 @@ public class MasterServer { return new authenticate_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(SessionData o) { authenticate_result result = new authenticate_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; authenticate_result result = new authenticate_result(); if (e instanceof TAuthorizationException) { - result.failure = (TAuthorizationException) e; - result.setFailureIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.error = (TInvocationException) e; - result.setErrorIsSet(true); - msg = result; - } - else - { + result.failure = (TAuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.error = (TInvocationException) e; + result.setErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2462,7 +2572,7 @@ public class MasterServer { return false; } - public void start(I iface, authenticate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, authenticate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.authenticate(args.login, args.password,resultHandler); } } @@ -2476,46 +2586,53 @@ public class MasterServer { return new localAccountLogin_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(ClientSessionData o) { localAccountLogin_result result = new localAccountLogin_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; localAccountLogin_result result = new localAccountLogin_result(); if (e instanceof TAuthorizationException) { - result.failure = (TAuthorizationException) e; - result.setFailureIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.error = (TInvocationException) e; - result.setErrorIsSet(true); - msg = result; - } - else - { + result.failure = (TAuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.error = (TInvocationException) e; + result.setErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2524,7 +2641,7 @@ public class MasterServer { return false; } - public void start(I iface, localAccountLogin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, localAccountLogin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.localAccountLogin(args.login, args.password,resultHandler); } } @@ -2538,34 +2655,44 @@ public class MasterServer { return new setUsedSatellite_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { setUsedSatellite_result result = new setUsedSatellite_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; setUsedSatellite_result result = new setUsedSatellite_result(); - { + if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2574,12 +2701,12 @@ public class MasterServer { return false; } - public void start(I iface, setUsedSatellite_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, setUsedSatellite_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.setUsedSatellite(args.sessionId, args.satelliteName,resultHandler); } } - public static class findUser extends org.apache.thrift.AsyncProcessFunction> { + public static class findUser extends org.apache.thrift.AsyncProcessFunction> { public findUser() { super("findUser"); } @@ -2588,46 +2715,53 @@ public class MasterServer { return new findUser_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { findUser_result result = new findUser_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; findUser_result result = new findUser_result(); if (e instanceof TAuthorizationException) { - result.failure = (TAuthorizationException) e; - result.setFailureIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.error = (TInvocationException) e; - result.setErrorIsSet(true); - msg = result; - } - else - { + result.failure = (TAuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.error = (TInvocationException) e; + result.setErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2636,12 +2770,12 @@ public class MasterServer { return false; } - public void start(I iface, findUser_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, findUser_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.findUser(args.sessionId, args.organizationId, args.searchTerm,resultHandler); } } - public static class getPublicImages extends org.apache.thrift.AsyncProcessFunction> { + public static class getPublicImages extends org.apache.thrift.AsyncProcessFunction> { public getPublicImages() { super("getPublicImages"); } @@ -2650,46 +2784,53 @@ public class MasterServer { return new getPublicImages_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getPublicImages_result result = new getPublicImages_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getPublicImages_result result = new getPublicImages_result(); if (e instanceof TAuthorizationException) { - result.failure = (TAuthorizationException) e; - result.setFailureIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.error = (TInvocationException) e; - result.setErrorIsSet(true); - msg = result; - } - else - { + result.failure = (TAuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.error = (TInvocationException) e; + result.setErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2698,7 +2839,7 @@ public class MasterServer { return false; } - public void start(I iface, getPublicImages_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getPublicImages_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getPublicImages(args.sessionId, args.page,resultHandler); } } @@ -2712,51 +2853,57 @@ public class MasterServer { return new getImageDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(ImageDetailsRead o) { getImageDetails_result result = new getImageDetails_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getImageDetails_result result = new getImageDetails_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2765,7 +2912,7 @@ public class MasterServer { return false; } - public void start(I iface, getImageDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getImageDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getImageDetails(args.sessionId, args.imageBaseId,resultHandler); } } @@ -2779,51 +2926,57 @@ public class MasterServer { return new getUser_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(UserInfo o) { getUser_result result = new getUser_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getUser_result result = new getUser_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2832,7 +2985,7 @@ public class MasterServer { return false; } - public void start(I iface, getUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getUser_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getUser(args.userToken, args.userId,resultHandler); } } @@ -2846,40 +2999,48 @@ public class MasterServer { return new invalidateSession_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { invalidateSession_result result = new invalidateSession_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; invalidateSession_result result = new invalidateSession_result(); if (e instanceof TInvalidTokenException) { - result.ex = (TInvalidTokenException) e; - result.setExIsSet(true); - msg = result; - } - else - { + result.ex = (TInvalidTokenException) e; + result.setExIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2888,7 +3049,7 @@ public class MasterServer { return false; } - public void start(I iface, invalidateSession_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, invalidateSession_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.invalidateSession(args.sessionId,resultHandler); } } @@ -2902,41 +3063,49 @@ public class MasterServer { return new getUserFromToken_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(UserInfo o) { getUserFromToken_result result = new getUserFromToken_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getUserFromToken_result result = new getUserFromToken_result(); if (e instanceof TInvalidTokenException) { - result.failure = (TInvalidTokenException) e; - result.setFailureIsSet(true); - msg = result; - } - else - { + result.failure = (TInvalidTokenException) e; + result.setFailureIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2945,12 +3114,12 @@ public class MasterServer { return false; } - public void start(I iface, getUserFromToken_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getUserFromToken_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getUserFromToken(args.token,resultHandler); } } - public static class isServerAuthenticated extends org.apache.thrift.AsyncProcessFunction { + public static class isServerAuthenticated extends org.apache.thrift.AsyncProcessFunction { public isServerAuthenticated() { super("isServerAuthenticated"); } @@ -2959,36 +3128,46 @@ public class MasterServer { return new isServerAuthenticated_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.Boolean o) { isServerAuthenticated_result result = new isServerAuthenticated_result(); result.success = o; result.setSuccessIsSet(true); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; isServerAuthenticated_result result = new isServerAuthenticated_result(); - { + if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -2997,12 +3176,12 @@ public class MasterServer { return false; } - public void start(I iface, isServerAuthenticated_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, isServerAuthenticated_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.isServerAuthenticated(args.serverSessionId,resultHandler); } } - public static class startServerAuthentication extends org.apache.thrift.AsyncProcessFunction { + public static class startServerAuthentication extends org.apache.thrift.AsyncProcessFunction { public startServerAuthentication() { super("startServerAuthentication"); } @@ -3011,46 +3190,53 @@ public class MasterServer { return new startServerAuthentication_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(ByteBuffer o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.nio.ByteBuffer o) { startServerAuthentication_result result = new startServerAuthentication_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; startServerAuthentication_result result = new startServerAuthentication_result(); if (e instanceof TAuthorizationException) { - result.failure = (TAuthorizationException) e; - result.setFailureIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.error = (TInvocationException) e; - result.setErrorIsSet(true); - msg = result; - } - else - { + result.failure = (TAuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.error = (TInvocationException) e; + result.setErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3059,7 +3245,7 @@ public class MasterServer { return false; } - public void start(I iface, startServerAuthentication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, startServerAuthentication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.startServerAuthentication(args.satelliteId,resultHandler); } } @@ -3073,46 +3259,53 @@ public class MasterServer { return new serverAuthenticate_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(ServerSessionData o) { serverAuthenticate_result result = new serverAuthenticate_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; serverAuthenticate_result result = new serverAuthenticate_result(); if (e instanceof TAuthorizationException) { - result.failure = (TAuthorizationException) e; - result.setFailureIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.errr = (TInvocationException) e; - result.setErrrIsSet(true); - msg = result; - } - else - { + result.failure = (TAuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.errr = (TInvocationException) e; + result.setErrrIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3121,7 +3314,7 @@ public class MasterServer { return false; } - public void start(I iface, serverAuthenticate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, serverAuthenticate_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.serverAuthenticate(args.satelliteId, args.challengeResponse,resultHandler); } } @@ -3135,51 +3328,57 @@ public class MasterServer { return new getImageData_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getImageData_result result = new getImageData_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3188,7 +3387,7 @@ public class MasterServer { return false; } - public void start(I iface, getImageData_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getImageData_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getImageData(args.serverSessionId, args.imageVersionId,resultHandler); } } @@ -3202,51 +3401,57 @@ public class MasterServer { return new submitImage_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(TransferInformation o) { submitImage_result result = new submitImage_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; submitImage_result result = new submitImage_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 TTransferRejectedException) { - result.failure3 = (TTransferRejectedException) e; - result.setFailure3IsSet(true); - msg = result; - } - else - { + 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 TTransferRejectedException) { + result.failure3 = (TTransferRejectedException) e; + result.setFailure3IsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3255,12 +3460,12 @@ public class MasterServer { return false; } - public void start(I iface, submitImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, submitImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.submitImage(args.userToken, args.imageDescription, args.blockHashes,resultHandler); } } - public static class registerSatellite extends org.apache.thrift.AsyncProcessFunction { + public static class registerSatellite extends org.apache.thrift.AsyncProcessFunction { public registerSatellite() { super("registerSatellite"); } @@ -3269,42 +3474,50 @@ public class MasterServer { return new registerSatellite_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.Integer o) { registerSatellite_result result = new registerSatellite_result(); result.success = o; result.setSuccessIsSet(true); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; registerSatellite_result result = new registerSatellite_result(); if (e instanceof TInvocationException) { - result.error = (TInvocationException) e; - result.setErrorIsSet(true); - msg = result; - } - else - { + result.error = (TInvocationException) e; + result.setErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3313,12 +3526,12 @@ public class MasterServer { return false; } - public void start(I iface, registerSatellite_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, registerSatellite_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.registerSatellite(args.userToken, args.displayName, args.addresses, args.modulus, args.exponent, args.certsha256,resultHandler); } } - public static class updateSatellite extends org.apache.thrift.AsyncProcessFunction { + public static class updateSatellite extends org.apache.thrift.AsyncProcessFunction { public updateSatellite() { super("updateSatellite"); } @@ -3327,47 +3540,54 @@ public class MasterServer { return new updateSatellite_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.Boolean o) { updateSatellite_result result = new updateSatellite_result(); result.success = o; result.setSuccessIsSet(true); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; updateSatellite_result result = new updateSatellite_result(); if (e instanceof TAuthorizationException) { - result.failure = (TAuthorizationException) e; - result.setFailureIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.error = (TInvocationException) e; - result.setErrorIsSet(true); - msg = result; - } - else - { + result.failure = (TAuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.error = (TInvocationException) e; + result.setErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3376,7 +3596,7 @@ public class MasterServer { return false; } - public void start(I iface, updateSatellite_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, updateSatellite_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.updateSatellite(args.serverSessionId, args.displayName, args.addresses,resultHandler); } } @@ -3390,51 +3610,57 @@ public class MasterServer { return new downloadImage_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable 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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3443,12 +3669,12 @@ public class MasterServer { return false; } - public void start(I iface, downloadImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, downloadImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.downloadImage(args.sessionId, args.imageVersionId,resultHandler); } } - public static class getOrganizations extends org.apache.thrift.AsyncProcessFunction> { + public static class getOrganizations extends org.apache.thrift.AsyncProcessFunction> { public getOrganizations() { super("getOrganizations"); } @@ -3457,41 +3683,49 @@ public class MasterServer { return new getOrganizations_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getOrganizations_result result = new getOrganizations_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getOrganizations_result result = new getOrganizations_result(); if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else - { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3500,12 +3734,12 @@ public class MasterServer { return false; } - public void start(I iface, getOrganizations_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getOrganizations_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getOrganizations(resultHandler); } } - public static class getOperatingSystems extends org.apache.thrift.AsyncProcessFunction> { + public static class getOperatingSystems extends org.apache.thrift.AsyncProcessFunction> { public getOperatingSystems() { super("getOperatingSystems"); } @@ -3514,41 +3748,49 @@ public class MasterServer { return new getOperatingSystems_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getOperatingSystems_result result = new getOperatingSystems_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getOperatingSystems_result result = new getOperatingSystems_result(); if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else - { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3557,12 +3799,12 @@ public class MasterServer { return false; } - public void start(I iface, getOperatingSystems_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getOperatingSystems_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getOperatingSystems(resultHandler); } } - public static class getVirtualizers extends org.apache.thrift.AsyncProcessFunction> { + public static class getVirtualizers extends org.apache.thrift.AsyncProcessFunction> { public getVirtualizers() { super("getVirtualizers"); } @@ -3571,41 +3813,49 @@ public class MasterServer { return new getVirtualizers_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getVirtualizers_result result = new getVirtualizers_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getVirtualizers_result result = new getVirtualizers_result(); if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else - { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3614,12 +3864,12 @@ public class MasterServer { return false; } - public void start(I iface, getVirtualizers_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getVirtualizers_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getVirtualizers(resultHandler); } } - public static class getTags extends org.apache.thrift.AsyncProcessFunction> { + public static class getTags extends org.apache.thrift.AsyncProcessFunction> { public getTags() { super("getTags"); } @@ -3628,41 +3878,49 @@ public class MasterServer { return new getTags_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getTags_result result = new getTags_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getTags_result result = new getTags_result(); if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else - { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3671,12 +3929,12 @@ public class MasterServer { return false; } - public void start(I iface, getTags_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getTags_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getTags(args.startDate,resultHandler); } } - public static class getSoftware extends org.apache.thrift.AsyncProcessFunction> { + public static class getSoftware extends org.apache.thrift.AsyncProcessFunction> { public getSoftware() { super("getSoftware"); } @@ -3685,41 +3943,49 @@ public class MasterServer { return new getSoftware_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getSoftware_result result = new getSoftware_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getSoftware_result result = new getSoftware_result(); if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else - { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3728,7 +3994,7 @@ public class MasterServer { return false; } - public void start(I iface, getSoftware_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getSoftware_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getSoftware(args.startDate,resultHandler); } } @@ -3742,41 +4008,49 @@ public class MasterServer { return new queryUploadStatus_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(TransferStatus o) { queryUploadStatus_result result = new queryUploadStatus_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; queryUploadStatus_result result = new queryUploadStatus_result(); if (e instanceof TInvalidTokenException) { - result.ex1 = (TInvalidTokenException) e; - result.setEx1IsSet(true); - msg = result; - } - else - { + result.ex1 = (TInvalidTokenException) e; + result.setEx1IsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -3785,7 +4059,7 @@ public class MasterServer { return false; } - public void start(I iface, queryUploadStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, queryUploadStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.queryUploadStatus(args.uploadToken,resultHandler); } } @@ -3796,21 +4070,18 @@ public class MasterServer { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ping_args"); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ping_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ping_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ping_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ping_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -3818,6 +4089,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: @@ -3831,21 +4103,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -3854,14 +4127,14 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ping_args.class, metaDataMap); } @@ -3882,32 +4155,31 @@ public class MasterServer { public void clear() { } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof ping_args) return this.equals((ping_args)that); return false; @@ -3916,15 +4188,17 @@ public class MasterServer { public boolean equals(ping_args that) { if (that == null) return false; + if (this == that) + return true; return true; } @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - return list.hashCode(); + return hashCode; } @Override @@ -3938,21 +4212,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("ping_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("ping_args("); boolean first = true; sb.append(")"); @@ -3972,7 +4247,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -3980,13 +4255,13 @@ public class MasterServer { } } - private static class ping_argsStandardSchemeFactory implements SchemeFactory { + private static class ping_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public ping_argsStandardScheme getScheme() { return new ping_argsStandardScheme(); } } - private static class ping_argsStandardScheme extends StandardScheme { + private static class ping_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, ping_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -4019,25 +4294,28 @@ public class MasterServer { } - private static class ping_argsTupleSchemeFactory implements SchemeFactory { + private static class ping_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public ping_argsTupleScheme getScheme() { return new ping_argsTupleScheme(); } } - private static class ping_argsTupleScheme extends TupleScheme { + private static class ping_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, ping_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, ping_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class ping_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -4045,11 +4323,8 @@ public class MasterServer { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ping_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ping_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ping_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ping_resultTupleSchemeFactory(); public boolean success; // required @@ -4057,10 +4332,10 @@ public class MasterServer { public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -4068,6 +4343,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -4083,21 +4359,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -4106,7 +4383,7 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -4114,12 +4391,12 @@ 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; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ping_result.class, metaDataMap); } @@ -4163,57 +4440,56 @@ public class MasterServer { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((java.lang.Boolean)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof ping_result) return this.equals((ping_result)that); return false; @@ -4222,6 +4498,8 @@ public class MasterServer { public boolean equals(ping_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -4237,14 +4515,11 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -4255,7 +4530,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -4268,21 +4543,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("ping_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("ping_result("); boolean first = true; sb.append("success:"); @@ -4305,7 +4581,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -4315,13 +4591,13 @@ public class MasterServer { } } - private static class ping_resultStandardSchemeFactory implements SchemeFactory { + private static class ping_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public ping_resultStandardScheme getScheme() { return new ping_resultStandardScheme(); } } - private static class ping_resultStandardScheme extends StandardScheme { + private static class ping_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, ping_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -4367,18 +4643,18 @@ public class MasterServer { } - private static class ping_resultTupleSchemeFactory implements SchemeFactory { + private static class ping_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public ping_resultTupleScheme getScheme() { return new ping_resultTupleScheme(); } } - private static class ping_resultTupleScheme extends TupleScheme { + private static class ping_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, ping_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -4390,8 +4666,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, ping_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); @@ -4399,6 +4675,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class authenticate_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -4407,24 +4686,21 @@ public class MasterServer { private static final org.apache.thrift.protocol.TField LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("login", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new authenticate_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new authenticate_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new authenticate_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new authenticate_argsTupleSchemeFactory(); - public String login; // required - public String password; // required + public @org.apache.thrift.annotation.Nullable java.lang.String login; // required + public @org.apache.thrift.annotation.Nullable java.lang.String password; // 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 { LOGIN((short)1, "login"), PASSWORD((short)2, "password"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -4432,6 +4708,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // LOGIN @@ -4449,21 +4726,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -4472,20 +4750,20 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.LOGIN, new org.apache.thrift.meta_data.FieldMetaData("login", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticate_args.class, metaDataMap); } @@ -4493,8 +4771,8 @@ public class MasterServer { } public authenticate_args( - String login, - String password) + java.lang.String login, + java.lang.String password) { this(); this.login = login; @@ -4523,11 +4801,12 @@ public class MasterServer { this.password = null; } - public String getLogin() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getLogin() { return this.login; } - public authenticate_args setLogin(String login) { + public authenticate_args setLogin(@org.apache.thrift.annotation.Nullable java.lang.String login) { this.login = login; return this; } @@ -4547,11 +4826,12 @@ public class MasterServer { } } - public String getPassword() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getPassword() { return this.password; } - public authenticate_args setPassword(String password) { + public authenticate_args setPassword(@org.apache.thrift.annotation.Nullable java.lang.String password) { this.password = password; return this; } @@ -4571,13 +4851,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case LOGIN: if (value == null) { unsetLogin(); } else { - setLogin((String)value); + setLogin((java.lang.String)value); } break; @@ -4585,14 +4865,15 @@ public class MasterServer { if (value == null) { unsetPassword(); } else { - setPassword((String)value); + setPassword((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case LOGIN: return getLogin(); @@ -4601,13 +4882,13 @@ public class MasterServer { return getPassword(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -4616,13 +4897,11 @@ public class MasterServer { case PASSWORD: return isSetPassword(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof authenticate_args) return this.equals((authenticate_args)that); return false; @@ -4631,6 +4910,8 @@ public class MasterServer { public boolean equals(authenticate_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_login = true && this.isSetLogin(); boolean that_present_login = true && that.isSetLogin(); @@ -4655,19 +4936,17 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_login = true && (isSetLogin()); - list.add(present_login); - if (present_login) - list.add(login); + hashCode = hashCode * 8191 + ((isSetLogin()) ? 131071 : 524287); + if (isSetLogin()) + hashCode = hashCode * 8191 + login.hashCode(); - boolean present_password = true && (isSetPassword()); - list.add(present_password); - if (present_password) - list.add(password); + hashCode = hashCode * 8191 + ((isSetPassword()) ? 131071 : 524287); + if (isSetPassword()) + hashCode = hashCode * 8191 + password.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -4678,7 +4957,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetLogin()).compareTo(other.isSetLogin()); + lastComparison = java.lang.Boolean.compare(isSetLogin(), other.isSetLogin()); if (lastComparison != 0) { return lastComparison; } @@ -4688,7 +4967,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword()); + lastComparison = java.lang.Boolean.compare(isSetPassword(), other.isSetPassword()); if (lastComparison != 0) { return lastComparison; } @@ -4701,21 +4980,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("authenticate_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("authenticate_args("); boolean first = true; sb.append("login:"); @@ -4750,7 +5030,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -4758,13 +5038,13 @@ public class MasterServer { } } - private static class authenticate_argsStandardSchemeFactory implements SchemeFactory { + private static class authenticate_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public authenticate_argsStandardScheme getScheme() { return new authenticate_argsStandardScheme(); } } - private static class authenticate_argsStandardScheme extends StandardScheme { + private static class authenticate_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, authenticate_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -4823,18 +5103,18 @@ public class MasterServer { } - private static class authenticate_argsTupleSchemeFactory implements SchemeFactory { + private static class authenticate_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public authenticate_argsTupleScheme getScheme() { return new authenticate_argsTupleScheme(); } } - private static class authenticate_argsTupleScheme extends TupleScheme { + private static class authenticate_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, authenticate_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetLogin()) { optionals.set(0); } @@ -4852,8 +5132,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, authenticate_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.login = iprot.readString(); struct.setLoginIsSet(true); @@ -4865,6 +5145,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class authenticate_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -4874,15 +5157,12 @@ public class MasterServer { 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 authenticate_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new authenticate_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new authenticate_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new authenticate_resultTupleSchemeFactory(); - public SessionData success; // required - public TAuthorizationException failure; // required - public TInvocationException error; // required + public @org.apache.thrift.annotation.Nullable SessionData success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -4890,10 +5170,10 @@ public class MasterServer { FAILURE((short)1, "failure"), ERROR((short)2, "error"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -4901,6 +5181,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -4920,21 +5201,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -4943,22 +5225,22 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, SessionData.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticate_result.class, metaDataMap); } @@ -5002,11 +5284,12 @@ public class MasterServer { this.error = null; } + @org.apache.thrift.annotation.Nullable public SessionData getSuccess() { return this.success; } - public authenticate_result setSuccess(SessionData success) { + public authenticate_result setSuccess(@org.apache.thrift.annotation.Nullable SessionData success) { this.success = success; return this; } @@ -5026,11 +5309,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getFailure() { return this.failure; } - public authenticate_result setFailure(TAuthorizationException failure) { + public authenticate_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) { this.failure = failure; return this; } @@ -5050,11 +5334,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getError() { return this.error; } - public authenticate_result setError(TInvocationException error) { + public authenticate_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) { this.error = error; return this; } @@ -5074,7 +5359,7 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -5103,7 +5388,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -5115,13 +5401,13 @@ public class MasterServer { return getError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -5132,13 +5418,11 @@ public class MasterServer { case ERROR: return isSetError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof authenticate_result) return this.equals((authenticate_result)that); return false; @@ -5147,6 +5431,8 @@ public class MasterServer { public boolean equals(authenticate_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -5180,24 +5466,21 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_failure = true && (isSetFailure()); - list.add(present_failure); - if (present_failure) - list.add(failure); + hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287); + if (isSetFailure()) + hashCode = hashCode * 8191 + failure.hashCode(); - boolean present_error = true && (isSetError()); - list.add(present_error); - if (present_error) - list.add(error); + hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287); + if (isSetError()) + hashCode = hashCode * 8191 + error.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -5208,7 +5491,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -5218,7 +5501,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } @@ -5228,7 +5511,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); + lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError()); if (lastComparison != 0) { return lastComparison; } @@ -5241,21 +5524,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("authenticate_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("authenticate_result("); boolean first = true; sb.append("success:"); @@ -5301,7 +5585,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -5309,13 +5593,13 @@ public class MasterServer { } } - private static class authenticate_resultStandardSchemeFactory implements SchemeFactory { + private static class authenticate_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public authenticate_resultStandardScheme getScheme() { return new authenticate_resultStandardScheme(); } } - private static class authenticate_resultStandardScheme extends StandardScheme { + private static class authenticate_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, authenticate_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -5390,18 +5674,18 @@ public class MasterServer { } - private static class authenticate_resultTupleSchemeFactory implements SchemeFactory { + private static class authenticate_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public authenticate_resultTupleScheme getScheme() { return new authenticate_resultTupleScheme(); } } - private static class authenticate_resultTupleScheme extends TupleScheme { + private static class authenticate_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, authenticate_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -5425,8 +5709,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, authenticate_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new SessionData(); struct.success.read(iprot); @@ -5445,6 +5729,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class localAccountLogin_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -5453,24 +5740,21 @@ public class MasterServer { private static final org.apache.thrift.protocol.TField LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("login", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new localAccountLogin_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new localAccountLogin_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new localAccountLogin_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new localAccountLogin_argsTupleSchemeFactory(); - public String login; // required - public String password; // required + public @org.apache.thrift.annotation.Nullable java.lang.String login; // required + public @org.apache.thrift.annotation.Nullable java.lang.String password; // 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 { LOGIN((short)1, "login"), PASSWORD((short)2, "password"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -5478,6 +5762,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // LOGIN @@ -5495,21 +5780,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -5518,20 +5804,20 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.LOGIN, new org.apache.thrift.meta_data.FieldMetaData("login", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(localAccountLogin_args.class, metaDataMap); } @@ -5539,8 +5825,8 @@ public class MasterServer { } public localAccountLogin_args( - String login, - String password) + java.lang.String login, + java.lang.String password) { this(); this.login = login; @@ -5569,11 +5855,12 @@ public class MasterServer { this.password = null; } - public String getLogin() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getLogin() { return this.login; } - public localAccountLogin_args setLogin(String login) { + public localAccountLogin_args setLogin(@org.apache.thrift.annotation.Nullable java.lang.String login) { this.login = login; return this; } @@ -5593,11 +5880,12 @@ public class MasterServer { } } - public String getPassword() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getPassword() { return this.password; } - public localAccountLogin_args setPassword(String password) { + public localAccountLogin_args setPassword(@org.apache.thrift.annotation.Nullable java.lang.String password) { this.password = password; return this; } @@ -5617,13 +5905,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case LOGIN: if (value == null) { unsetLogin(); } else { - setLogin((String)value); + setLogin((java.lang.String)value); } break; @@ -5631,14 +5919,15 @@ public class MasterServer { if (value == null) { unsetPassword(); } else { - setPassword((String)value); + setPassword((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case LOGIN: return getLogin(); @@ -5647,13 +5936,13 @@ public class MasterServer { return getPassword(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -5662,13 +5951,11 @@ public class MasterServer { case PASSWORD: return isSetPassword(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof localAccountLogin_args) return this.equals((localAccountLogin_args)that); return false; @@ -5677,6 +5964,8 @@ public class MasterServer { public boolean equals(localAccountLogin_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_login = true && this.isSetLogin(); boolean that_present_login = true && that.isSetLogin(); @@ -5701,19 +5990,17 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_login = true && (isSetLogin()); - list.add(present_login); - if (present_login) - list.add(login); + hashCode = hashCode * 8191 + ((isSetLogin()) ? 131071 : 524287); + if (isSetLogin()) + hashCode = hashCode * 8191 + login.hashCode(); - boolean present_password = true && (isSetPassword()); - list.add(present_password); - if (present_password) - list.add(password); + hashCode = hashCode * 8191 + ((isSetPassword()) ? 131071 : 524287); + if (isSetPassword()) + hashCode = hashCode * 8191 + password.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -5724,7 +6011,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetLogin()).compareTo(other.isSetLogin()); + lastComparison = java.lang.Boolean.compare(isSetLogin(), other.isSetLogin()); if (lastComparison != 0) { return lastComparison; } @@ -5734,7 +6021,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword()); + lastComparison = java.lang.Boolean.compare(isSetPassword(), other.isSetPassword()); if (lastComparison != 0) { return lastComparison; } @@ -5747,21 +6034,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("localAccountLogin_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("localAccountLogin_args("); boolean first = true; sb.append("login:"); @@ -5796,7 +6084,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -5804,13 +6092,13 @@ public class MasterServer { } } - private static class localAccountLogin_argsStandardSchemeFactory implements SchemeFactory { + private static class localAccountLogin_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public localAccountLogin_argsStandardScheme getScheme() { return new localAccountLogin_argsStandardScheme(); } } - private static class localAccountLogin_argsStandardScheme extends StandardScheme { + private static class localAccountLogin_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, localAccountLogin_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -5869,18 +6157,18 @@ public class MasterServer { } - private static class localAccountLogin_argsTupleSchemeFactory implements SchemeFactory { + private static class localAccountLogin_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public localAccountLogin_argsTupleScheme getScheme() { return new localAccountLogin_argsTupleScheme(); } } - private static class localAccountLogin_argsTupleScheme extends TupleScheme { + private static class localAccountLogin_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, localAccountLogin_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetLogin()) { optionals.set(0); } @@ -5898,8 +6186,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, localAccountLogin_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.login = iprot.readString(); struct.setLoginIsSet(true); @@ -5911,6 +6199,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class localAccountLogin_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -5920,15 +6211,12 @@ public class MasterServer { 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 localAccountLogin_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new localAccountLogin_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new localAccountLogin_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new localAccountLogin_resultTupleSchemeFactory(); - public ClientSessionData success; // required - public TAuthorizationException failure; // required - public TInvocationException error; // required + public @org.apache.thrift.annotation.Nullable ClientSessionData success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -5936,10 +6224,10 @@ public class MasterServer { FAILURE((short)1, "failure"), ERROR((short)2, "error"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -5947,6 +6235,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -5966,21 +6255,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -5989,22 +6279,22 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, ClientSessionData.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(localAccountLogin_result.class, metaDataMap); } @@ -6048,11 +6338,12 @@ public class MasterServer { this.error = null; } + @org.apache.thrift.annotation.Nullable public ClientSessionData getSuccess() { return this.success; } - public localAccountLogin_result setSuccess(ClientSessionData success) { + public localAccountLogin_result setSuccess(@org.apache.thrift.annotation.Nullable ClientSessionData success) { this.success = success; return this; } @@ -6072,11 +6363,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getFailure() { return this.failure; } - public localAccountLogin_result setFailure(TAuthorizationException failure) { + public localAccountLogin_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) { this.failure = failure; return this; } @@ -6096,11 +6388,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getError() { return this.error; } - public localAccountLogin_result setError(TInvocationException error) { + public localAccountLogin_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) { this.error = error; return this; } @@ -6120,7 +6413,7 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -6149,7 +6442,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -6161,13 +6455,13 @@ public class MasterServer { return getError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -6178,13 +6472,11 @@ public class MasterServer { case ERROR: return isSetError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof localAccountLogin_result) return this.equals((localAccountLogin_result)that); return false; @@ -6193,6 +6485,8 @@ public class MasterServer { public boolean equals(localAccountLogin_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -6226,24 +6520,21 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_failure = true && (isSetFailure()); - list.add(present_failure); - if (present_failure) - list.add(failure); + hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287); + if (isSetFailure()) + hashCode = hashCode * 8191 + failure.hashCode(); - boolean present_error = true && (isSetError()); - list.add(present_error); - if (present_error) - list.add(error); + hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287); + if (isSetError()) + hashCode = hashCode * 8191 + error.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -6254,7 +6545,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -6264,7 +6555,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } @@ -6274,7 +6565,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); + lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError()); if (lastComparison != 0) { return lastComparison; } @@ -6287,21 +6578,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("localAccountLogin_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("localAccountLogin_result("); boolean first = true; sb.append("success:"); @@ -6347,7 +6639,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -6355,13 +6647,13 @@ public class MasterServer { } } - private static class localAccountLogin_resultStandardSchemeFactory implements SchemeFactory { + private static class localAccountLogin_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public localAccountLogin_resultStandardScheme getScheme() { return new localAccountLogin_resultStandardScheme(); } } - private static class localAccountLogin_resultStandardScheme extends StandardScheme { + private static class localAccountLogin_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, localAccountLogin_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -6436,18 +6728,18 @@ public class MasterServer { } - private static class localAccountLogin_resultTupleSchemeFactory implements SchemeFactory { + private static class localAccountLogin_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public localAccountLogin_resultTupleScheme getScheme() { return new localAccountLogin_resultTupleScheme(); } } - private static class localAccountLogin_resultTupleScheme extends TupleScheme { + private static class localAccountLogin_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, localAccountLogin_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -6471,8 +6763,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, localAccountLogin_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new ClientSessionData(); struct.success.read(iprot); @@ -6491,6 +6783,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class setUsedSatellite_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -6499,24 +6794,21 @@ public class MasterServer { 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)1); private static final org.apache.thrift.protocol.TField SATELLITE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("satelliteName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new setUsedSatellite_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setUsedSatellite_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setUsedSatellite_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setUsedSatellite_argsTupleSchemeFactory(); - public String sessionId; // required - public String satelliteName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String satelliteName; // 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 { SESSION_ID((short)1, "sessionId"), SATELLITE_NAME((short)2, "satelliteName"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -6524,6 +6816,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SESSION_ID @@ -6541,21 +6834,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -6564,20 +6858,20 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.SATELLITE_NAME, new org.apache.thrift.meta_data.FieldMetaData("satelliteName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUsedSatellite_args.class, metaDataMap); } @@ -6585,8 +6879,8 @@ public class MasterServer { } public setUsedSatellite_args( - String sessionId, - String satelliteName) + java.lang.String sessionId, + java.lang.String satelliteName) { this(); this.sessionId = sessionId; @@ -6615,11 +6909,12 @@ public class MasterServer { this.satelliteName = null; } - public String getSessionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getSessionId() { return this.sessionId; } - public setUsedSatellite_args setSessionId(String sessionId) { + public setUsedSatellite_args setSessionId(@org.apache.thrift.annotation.Nullable java.lang.String sessionId) { this.sessionId = sessionId; return this; } @@ -6639,11 +6934,12 @@ public class MasterServer { } } - public String getSatelliteName() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getSatelliteName() { return this.satelliteName; } - public setUsedSatellite_args setSatelliteName(String satelliteName) { + public setUsedSatellite_args setSatelliteName(@org.apache.thrift.annotation.Nullable java.lang.String satelliteName) { this.satelliteName = satelliteName; return this; } @@ -6663,13 +6959,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SESSION_ID: if (value == null) { unsetSessionId(); } else { - setSessionId((String)value); + setSessionId((java.lang.String)value); } break; @@ -6677,14 +6973,15 @@ public class MasterServer { if (value == null) { unsetSatelliteName(); } else { - setSatelliteName((String)value); + setSatelliteName((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SESSION_ID: return getSessionId(); @@ -6693,13 +6990,13 @@ public class MasterServer { return getSatelliteName(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -6708,13 +7005,11 @@ public class MasterServer { case SATELLITE_NAME: return isSetSatelliteName(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof setUsedSatellite_args) return this.equals((setUsedSatellite_args)that); return false; @@ -6723,6 +7018,8 @@ public class MasterServer { public boolean equals(setUsedSatellite_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_sessionId = true && this.isSetSessionId(); boolean that_present_sessionId = true && that.isSetSessionId(); @@ -6747,19 +7044,17 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_sessionId = true && (isSetSessionId()); - list.add(present_sessionId); - if (present_sessionId) - list.add(sessionId); + hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287); + if (isSetSessionId()) + hashCode = hashCode * 8191 + sessionId.hashCode(); - boolean present_satelliteName = true && (isSetSatelliteName()); - list.add(present_satelliteName); - if (present_satelliteName) - list.add(satelliteName); + hashCode = hashCode * 8191 + ((isSetSatelliteName()) ? 131071 : 524287); + if (isSetSatelliteName()) + hashCode = hashCode * 8191 + satelliteName.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -6770,7 +7065,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId()); + lastComparison = java.lang.Boolean.compare(isSetSessionId(), other.isSetSessionId()); if (lastComparison != 0) { return lastComparison; } @@ -6780,7 +7075,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSatelliteName()).compareTo(other.isSetSatelliteName()); + lastComparison = java.lang.Boolean.compare(isSetSatelliteName(), other.isSetSatelliteName()); if (lastComparison != 0) { return lastComparison; } @@ -6793,21 +7088,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("setUsedSatellite_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("setUsedSatellite_args("); boolean first = true; sb.append("sessionId:"); @@ -6842,7 +7138,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -6850,13 +7146,13 @@ public class MasterServer { } } - private static class setUsedSatellite_argsStandardSchemeFactory implements SchemeFactory { + private static class setUsedSatellite_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setUsedSatellite_argsStandardScheme getScheme() { return new setUsedSatellite_argsStandardScheme(); } } - private static class setUsedSatellite_argsStandardScheme extends StandardScheme { + private static class setUsedSatellite_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setUsedSatellite_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -6915,18 +7211,18 @@ public class MasterServer { } - private static class setUsedSatellite_argsTupleSchemeFactory implements SchemeFactory { + private static class setUsedSatellite_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setUsedSatellite_argsTupleScheme getScheme() { return new setUsedSatellite_argsTupleScheme(); } } - private static class setUsedSatellite_argsTupleScheme extends TupleScheme { + private static class setUsedSatellite_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setUsedSatellite_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSessionId()) { optionals.set(0); } @@ -6944,8 +7240,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, setUsedSatellite_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.sessionId = iprot.readString(); struct.setSessionIdIsSet(true); @@ -6957,27 +7253,27 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class setUsedSatellite_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("setUsedSatellite_result"); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new setUsedSatellite_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setUsedSatellite_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setUsedSatellite_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setUsedSatellite_resultTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -6985,6 +7281,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: @@ -6998,21 +7295,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -7021,14 +7319,14 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUsedSatellite_result.class, metaDataMap); } @@ -7049,32 +7347,31 @@ public class MasterServer { public void clear() { } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof setUsedSatellite_result) return this.equals((setUsedSatellite_result)that); return false; @@ -7083,15 +7380,17 @@ public class MasterServer { public boolean equals(setUsedSatellite_result that) { if (that == null) return false; + if (this == that) + return true; return true; } @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - return list.hashCode(); + return hashCode; } @Override @@ -7105,21 +7404,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("setUsedSatellite_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("setUsedSatellite_result("); boolean first = true; sb.append(")"); @@ -7139,7 +7439,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -7147,13 +7447,13 @@ public class MasterServer { } } - private static class setUsedSatellite_resultStandardSchemeFactory implements SchemeFactory { + private static class setUsedSatellite_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setUsedSatellite_resultStandardScheme getScheme() { return new setUsedSatellite_resultStandardScheme(); } } - private static class setUsedSatellite_resultStandardScheme extends StandardScheme { + private static class setUsedSatellite_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setUsedSatellite_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -7186,25 +7486,28 @@ public class MasterServer { } - private static class setUsedSatellite_resultTupleSchemeFactory implements SchemeFactory { + private static class setUsedSatellite_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setUsedSatellite_resultTupleScheme getScheme() { return new setUsedSatellite_resultTupleScheme(); } } - private static class setUsedSatellite_resultTupleScheme extends TupleScheme { + private static class setUsedSatellite_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setUsedSatellite_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, setUsedSatellite_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class findUser_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -7214,15 +7517,12 @@ public class MasterServer { private static final org.apache.thrift.protocol.TField ORGANIZATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("organizationId", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField SEARCH_TERM_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerm", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new findUser_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new findUser_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new findUser_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new findUser_argsTupleSchemeFactory(); - public String sessionId; // required - public String organizationId; // required - public String searchTerm; // required + public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String organizationId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String searchTerm; // 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 { @@ -7230,10 +7530,10 @@ public class MasterServer { ORGANIZATION_ID((short)2, "organizationId"), SEARCH_TERM((short)3, "searchTerm"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -7241,6 +7541,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SESSION_ID @@ -7260,21 +7561,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -7283,22 +7585,22 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.ORGANIZATION_ID, new org.apache.thrift.meta_data.FieldMetaData("organizationId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findUser_args.class, metaDataMap); } @@ -7306,9 +7608,9 @@ public class MasterServer { } public findUser_args( - String sessionId, - String organizationId, - String searchTerm) + java.lang.String sessionId, + java.lang.String organizationId, + java.lang.String searchTerm) { this(); this.sessionId = sessionId; @@ -7342,11 +7644,12 @@ public class MasterServer { this.searchTerm = null; } - public String getSessionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getSessionId() { return this.sessionId; } - public findUser_args setSessionId(String sessionId) { + public findUser_args setSessionId(@org.apache.thrift.annotation.Nullable java.lang.String sessionId) { this.sessionId = sessionId; return this; } @@ -7366,11 +7669,12 @@ public class MasterServer { } } - public String getOrganizationId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getOrganizationId() { return this.organizationId; } - public findUser_args setOrganizationId(String organizationId) { + public findUser_args setOrganizationId(@org.apache.thrift.annotation.Nullable java.lang.String organizationId) { this.organizationId = organizationId; return this; } @@ -7390,11 +7694,12 @@ public class MasterServer { } } - public String getSearchTerm() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getSearchTerm() { return this.searchTerm; } - public findUser_args setSearchTerm(String searchTerm) { + public findUser_args setSearchTerm(@org.apache.thrift.annotation.Nullable java.lang.String searchTerm) { this.searchTerm = searchTerm; return this; } @@ -7414,13 +7719,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SESSION_ID: if (value == null) { unsetSessionId(); } else { - setSessionId((String)value); + setSessionId((java.lang.String)value); } break; @@ -7428,7 +7733,7 @@ public class MasterServer { if (value == null) { unsetOrganizationId(); } else { - setOrganizationId((String)value); + setOrganizationId((java.lang.String)value); } break; @@ -7436,14 +7741,15 @@ public class MasterServer { if (value == null) { unsetSearchTerm(); } else { - setSearchTerm((String)value); + setSearchTerm((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SESSION_ID: return getSessionId(); @@ -7455,13 +7761,13 @@ public class MasterServer { return getSearchTerm(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -7472,13 +7778,11 @@ public class MasterServer { case SEARCH_TERM: return isSetSearchTerm(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof findUser_args) return this.equals((findUser_args)that); return false; @@ -7487,6 +7791,8 @@ public class MasterServer { public boolean equals(findUser_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_sessionId = true && this.isSetSessionId(); boolean that_present_sessionId = true && that.isSetSessionId(); @@ -7520,24 +7826,21 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_sessionId = true && (isSetSessionId()); - list.add(present_sessionId); - if (present_sessionId) - list.add(sessionId); + hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287); + if (isSetSessionId()) + hashCode = hashCode * 8191 + sessionId.hashCode(); - boolean present_organizationId = true && (isSetOrganizationId()); - list.add(present_organizationId); - if (present_organizationId) - list.add(organizationId); + hashCode = hashCode * 8191 + ((isSetOrganizationId()) ? 131071 : 524287); + if (isSetOrganizationId()) + hashCode = hashCode * 8191 + organizationId.hashCode(); - boolean present_searchTerm = true && (isSetSearchTerm()); - list.add(present_searchTerm); - if (present_searchTerm) - list.add(searchTerm); + hashCode = hashCode * 8191 + ((isSetSearchTerm()) ? 131071 : 524287); + if (isSetSearchTerm()) + hashCode = hashCode * 8191 + searchTerm.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -7548,7 +7851,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId()); + lastComparison = java.lang.Boolean.compare(isSetSessionId(), other.isSetSessionId()); if (lastComparison != 0) { return lastComparison; } @@ -7558,7 +7861,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOrganizationId()).compareTo(other.isSetOrganizationId()); + lastComparison = java.lang.Boolean.compare(isSetOrganizationId(), other.isSetOrganizationId()); if (lastComparison != 0) { return lastComparison; } @@ -7568,7 +7871,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(other.isSetSearchTerm()); + lastComparison = java.lang.Boolean.compare(isSetSearchTerm(), other.isSetSearchTerm()); if (lastComparison != 0) { return lastComparison; } @@ -7581,21 +7884,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("findUser_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("findUser_args("); boolean first = true; sb.append("sessionId:"); @@ -7638,7 +7942,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -7646,13 +7950,13 @@ public class MasterServer { } } - private static class findUser_argsStandardSchemeFactory implements SchemeFactory { + private static class findUser_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public findUser_argsStandardScheme getScheme() { return new findUser_argsStandardScheme(); } } - private static class findUser_argsStandardScheme extends StandardScheme { + private static class findUser_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findUser_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -7724,18 +8028,18 @@ public class MasterServer { } - private static class findUser_argsTupleSchemeFactory implements SchemeFactory { + private static class findUser_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public findUser_argsTupleScheme getScheme() { return new findUser_argsTupleScheme(); } } - private static class findUser_argsTupleScheme extends TupleScheme { + private static class findUser_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findUser_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSessionId()) { optionals.set(0); } @@ -7759,8 +8063,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, findUser_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.sessionId = iprot.readString(); struct.setSessionIdIsSet(true); @@ -7776,6 +8080,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class findUser_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -7785,15 +8092,12 @@ public class MasterServer { 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 findUser_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new findUser_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new findUser_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new findUser_resultTupleSchemeFactory(); - public List success; // required - public TAuthorizationException failure; // required - public TInvocationException error; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -7801,10 +8105,10 @@ public class MasterServer { FAILURE((short)1, "failure"), ERROR((short)2, "error"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -7812,6 +8116,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -7831,21 +8136,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -7854,23 +8160,23 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(findUser_result.class, metaDataMap); } @@ -7878,7 +8184,7 @@ public class MasterServer { } public findUser_result( - List success, + java.util.List success, TAuthorizationException failure, TInvocationException error) { @@ -7893,7 +8199,7 @@ public class MasterServer { */ public findUser_result(findUser_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (UserInfo other_element : other.success) { __this__success.add(new UserInfo(other_element)); } @@ -7922,22 +8228,24 @@ public class MasterServer { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public findUser_result setSuccess(List success) { + public findUser_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -7957,11 +8265,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getFailure() { return this.failure; } - public findUser_result setFailure(TAuthorizationException failure) { + public findUser_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) { this.failure = failure; return this; } @@ -7981,11 +8290,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getError() { return this.error; } - public findUser_result setError(TInvocationException error) { + public findUser_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) { this.error = error; return this; } @@ -8005,13 +8315,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -8034,7 +8344,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -8046,13 +8357,13 @@ public class MasterServer { return getError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -8063,13 +8374,11 @@ public class MasterServer { case ERROR: return isSetError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof findUser_result) return this.equals((findUser_result)that); return false; @@ -8078,6 +8387,8 @@ public class MasterServer { public boolean equals(findUser_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -8111,24 +8422,21 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_failure = true && (isSetFailure()); - list.add(present_failure); - if (present_failure) - list.add(failure); + hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287); + if (isSetFailure()) + hashCode = hashCode * 8191 + failure.hashCode(); - boolean present_error = true && (isSetError()); - list.add(present_error); - if (present_error) - list.add(error); + hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287); + if (isSetError()) + hashCode = hashCode * 8191 + error.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -8139,7 +8447,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -8149,7 +8457,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } @@ -8159,7 +8467,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); + lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError()); if (lastComparison != 0) { return lastComparison; } @@ -8172,21 +8480,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("findUser_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("findUser_result("); boolean first = true; sb.append("success:"); @@ -8229,7 +8538,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -8237,13 +8546,13 @@ public class MasterServer { } } - private static class findUser_resultStandardSchemeFactory implements SchemeFactory { + private static class findUser_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public findUser_resultStandardScheme getScheme() { return new findUser_resultStandardScheme(); } } - private static class findUser_resultStandardScheme extends StandardScheme { + private static class findUser_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, findUser_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -8258,14 +8567,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); - UserInfo _elem307; - for (int _i308 = 0; _i308 < _list306.size; ++_i308) + org.apache.thrift.protocol.TList _list418 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list418.size); + @org.apache.thrift.annotation.Nullable UserInfo _elem419; + for (int _i420 = 0; _i420 < _list418.size; ++_i420) { - _elem307 = new UserInfo(); - _elem307.read(iprot); - struct.success.add(_elem307); + _elem419 = new UserInfo(); + _elem419.read(iprot); + struct.success.add(_elem419); } iprot.readListEnd(); } @@ -8311,9 +8620,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 _iter309 : struct.success) + for (UserInfo _iter421 : struct.success) { - _iter309.write(oprot); + _iter421.write(oprot); } oprot.writeListEnd(); } @@ -8335,18 +8644,18 @@ public class MasterServer { } - private static class findUser_resultTupleSchemeFactory implements SchemeFactory { + private static class findUser_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public findUser_resultTupleScheme getScheme() { return new findUser_resultTupleScheme(); } } - private static class findUser_resultTupleScheme extends TupleScheme { + private static class findUser_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, findUser_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -8360,9 +8669,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (UserInfo _iter310 : struct.success) + for (UserInfo _iter422 : struct.success) { - _iter310.write(oprot); + _iter422.write(oprot); } } } @@ -8376,18 +8685,18 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, findUser_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); 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); - UserInfo _elem312; - for (int _i313 = 0; _i313 < _list311.size; ++_i313) + org.apache.thrift.protocol.TList _list423 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list423.size); + @org.apache.thrift.annotation.Nullable UserInfo _elem424; + for (int _i425 = 0; _i425 < _list423.size; ++_i425) { - _elem312 = new UserInfo(); - _elem312.read(iprot); - struct.success.add(_elem312); + _elem424 = new UserInfo(); + _elem424.read(iprot); + struct.success.add(_elem424); } } struct.setSuccessIsSet(true); @@ -8405,6 +8714,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getPublicImages_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -8413,13 +8725,10 @@ public class MasterServer { 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)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 getPublicImages_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPublicImages_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getPublicImages_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getPublicImages_argsTupleSchemeFactory(); - public String sessionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // required public int page; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -8427,10 +8736,10 @@ public class MasterServer { SESSION_ID((short)1, "sessionId"), PAGE((short)2, "page"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -8438,6 +8747,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SESSION_ID @@ -8455,21 +8765,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -8478,7 +8789,7 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -8486,14 +8797,14 @@ public class MasterServer { // 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; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPublicImages_args.class, metaDataMap); } @@ -8501,7 +8812,7 @@ public class MasterServer { } public getPublicImages_args( - String sessionId, + java.lang.String sessionId, int page) { this(); @@ -8532,11 +8843,12 @@ public class MasterServer { this.page = 0; } - public String getSessionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getSessionId() { return this.sessionId; } - public getPublicImages_args setSessionId(String sessionId) { + public getPublicImages_args setSessionId(@org.apache.thrift.annotation.Nullable java.lang.String sessionId) { this.sessionId = sessionId; return this; } @@ -8567,25 +8879,25 @@ public class MasterServer { } public void unsetPage() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID); } public void setPageIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SESSION_ID: if (value == null) { unsetSessionId(); } else { - setSessionId((String)value); + setSessionId((java.lang.String)value); } break; @@ -8593,14 +8905,15 @@ public class MasterServer { if (value == null) { unsetPage(); } else { - setPage((Integer)value); + setPage((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SESSION_ID: return getSessionId(); @@ -8609,13 +8922,13 @@ public class MasterServer { return getPage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -8624,13 +8937,11 @@ public class MasterServer { case PAGE: return isSetPage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getPublicImages_args) return this.equals((getPublicImages_args)that); return false; @@ -8639,6 +8950,8 @@ public class MasterServer { public boolean equals(getPublicImages_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_sessionId = true && this.isSetSessionId(); boolean that_present_sessionId = true && that.isSetSessionId(); @@ -8663,19 +8976,15 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_sessionId = true && (isSetSessionId()); - list.add(present_sessionId); - if (present_sessionId) - list.add(sessionId); + hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287); + if (isSetSessionId()) + hashCode = hashCode * 8191 + sessionId.hashCode(); - boolean present_page = true; - list.add(present_page); - if (present_page) - list.add(page); + hashCode = hashCode * 8191 + page; - return list.hashCode(); + return hashCode; } @Override @@ -8686,7 +8995,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId()); + lastComparison = java.lang.Boolean.compare(isSetSessionId(), other.isSetSessionId()); if (lastComparison != 0) { return lastComparison; } @@ -8696,7 +9005,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage()); + lastComparison = java.lang.Boolean.compare(isSetPage(), other.isSetPage()); if (lastComparison != 0) { return lastComparison; } @@ -8709,21 +9018,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getPublicImages_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getPublicImages_args("); boolean first = true; sb.append("sessionId:"); @@ -8754,7 +9064,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -8764,13 +9074,13 @@ public class MasterServer { } } - private static class getPublicImages_argsStandardSchemeFactory implements SchemeFactory { + private static class getPublicImages_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getPublicImages_argsStandardScheme getScheme() { return new getPublicImages_argsStandardScheme(); } } - private static class getPublicImages_argsStandardScheme extends StandardScheme { + private static class getPublicImages_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getPublicImages_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -8827,18 +9137,18 @@ public class MasterServer { } - private static class getPublicImages_argsTupleSchemeFactory implements SchemeFactory { + private static class getPublicImages_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getPublicImages_argsTupleScheme getScheme() { return new getPublicImages_argsTupleScheme(); } } - private static class getPublicImages_argsTupleScheme extends TupleScheme { + private static class getPublicImages_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getPublicImages_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSessionId()) { optionals.set(0); } @@ -8856,8 +9166,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getPublicImages_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.sessionId = iprot.readString(); struct.setSessionIdIsSet(true); @@ -8869,6 +9179,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getPublicImages_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -8878,15 +9191,12 @@ public class MasterServer { 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 getPublicImages_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPublicImages_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getPublicImages_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getPublicImages_resultTupleSchemeFactory(); - public List success; // required - public TAuthorizationException failure; // required - public TInvocationException error; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -8894,10 +9204,10 @@ public class MasterServer { FAILURE((short)1, "failure"), ERROR((short)2, "error"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -8905,6 +9215,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -8924,21 +9235,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -8947,23 +9259,23 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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)))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPublicImages_result.class, metaDataMap); } @@ -8971,7 +9283,7 @@ public class MasterServer { } public getPublicImages_result( - List success, + java.util.List success, TAuthorizationException failure, TInvocationException error) { @@ -8986,7 +9298,7 @@ public class MasterServer { */ public getPublicImages_result(getPublicImages_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (ImageSummaryRead other_element : other.success) { __this__success.add(new ImageSummaryRead(other_element)); } @@ -9015,22 +9327,24 @@ public class MasterServer { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getPublicImages_result setSuccess(List success) { + public getPublicImages_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -9050,11 +9364,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getFailure() { return this.failure; } - public getPublicImages_result setFailure(TAuthorizationException failure) { + public getPublicImages_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) { this.failure = failure; return this; } @@ -9074,11 +9389,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getError() { return this.error; } - public getPublicImages_result setError(TInvocationException error) { + public getPublicImages_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) { this.error = error; return this; } @@ -9098,13 +9414,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -9127,7 +9443,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -9139,13 +9456,13 @@ public class MasterServer { return getError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -9156,13 +9473,11 @@ public class MasterServer { case ERROR: return isSetError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getPublicImages_result) return this.equals((getPublicImages_result)that); return false; @@ -9171,6 +9486,8 @@ public class MasterServer { public boolean equals(getPublicImages_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -9204,24 +9521,21 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_failure = true && (isSetFailure()); - list.add(present_failure); - if (present_failure) - list.add(failure); + hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287); + if (isSetFailure()) + hashCode = hashCode * 8191 + failure.hashCode(); - boolean present_error = true && (isSetError()); - list.add(present_error); - if (present_error) - list.add(error); + hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287); + if (isSetError()) + hashCode = hashCode * 8191 + error.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -9232,7 +9546,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -9242,7 +9556,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } @@ -9252,7 +9566,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); + lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError()); if (lastComparison != 0) { return lastComparison; } @@ -9265,21 +9579,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getPublicImages_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getPublicImages_result("); boolean first = true; sb.append("success:"); @@ -9322,7 +9637,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -9330,13 +9645,13 @@ public class MasterServer { } } - private static class getPublicImages_resultStandardSchemeFactory implements SchemeFactory { + private static class getPublicImages_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getPublicImages_resultStandardScheme getScheme() { return new getPublicImages_resultStandardScheme(); } } - private static class getPublicImages_resultStandardScheme extends StandardScheme { + private static class getPublicImages_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getPublicImages_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -9351,14 +9666,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list314 = iprot.readListBegin(); - struct.success = new ArrayList(_list314.size); - ImageSummaryRead _elem315; - for (int _i316 = 0; _i316 < _list314.size; ++_i316) + org.apache.thrift.protocol.TList _list426 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list426.size); + @org.apache.thrift.annotation.Nullable ImageSummaryRead _elem427; + for (int _i428 = 0; _i428 < _list426.size; ++_i428) { - _elem315 = new ImageSummaryRead(); - _elem315.read(iprot); - struct.success.add(_elem315); + _elem427 = new ImageSummaryRead(); + _elem427.read(iprot); + struct.success.add(_elem427); } iprot.readListEnd(); } @@ -9404,9 +9719,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 (ImageSummaryRead _iter317 : struct.success) + for (ImageSummaryRead _iter429 : struct.success) { - _iter317.write(oprot); + _iter429.write(oprot); } oprot.writeListEnd(); } @@ -9428,18 +9743,18 @@ public class MasterServer { } - private static class getPublicImages_resultTupleSchemeFactory implements SchemeFactory { + private static class getPublicImages_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getPublicImages_resultTupleScheme getScheme() { return new getPublicImages_resultTupleScheme(); } } - private static class getPublicImages_resultTupleScheme extends TupleScheme { + private static class getPublicImages_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getPublicImages_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -9453,9 +9768,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (ImageSummaryRead _iter318 : struct.success) + for (ImageSummaryRead _iter430 : struct.success) { - _iter318.write(oprot); + _iter430.write(oprot); } } } @@ -9469,18 +9784,18 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getPublicImages_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - 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); - ImageSummaryRead _elem320; - for (int _i321 = 0; _i321 < _list319.size; ++_i321) + org.apache.thrift.protocol.TList _list431 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list431.size); + @org.apache.thrift.annotation.Nullable ImageSummaryRead _elem432; + for (int _i433 = 0; _i433 < _list431.size; ++_i433) { - _elem320 = new ImageSummaryRead(); - _elem320.read(iprot); - struct.success.add(_elem320); + _elem432 = new ImageSummaryRead(); + _elem432.read(iprot); + struct.success.add(_elem432); } } struct.setSuccessIsSet(true); @@ -9498,6 +9813,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getImageDetails_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -9506,24 +9824,21 @@ public class MasterServer { 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)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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getImageDetails_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageDetails_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImageDetails_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImageDetails_argsTupleSchemeFactory(); - public String sessionId; // required - public String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.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 { SESSION_ID((short)1, "sessionId"), IMAGE_BASE_ID((short)2, "imageBaseId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -9531,6 +9846,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SESSION_ID @@ -9548,21 +9864,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -9571,20 +9888,20 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_args.class, metaDataMap); } @@ -9592,8 +9909,8 @@ public class MasterServer { } public getImageDetails_args( - String sessionId, - String imageBaseId) + java.lang.String sessionId, + java.lang.String imageBaseId) { this(); this.sessionId = sessionId; @@ -9622,11 +9939,12 @@ public class MasterServer { this.imageBaseId = null; } - public String getSessionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getSessionId() { return this.sessionId; } - public getImageDetails_args setSessionId(String sessionId) { + public getImageDetails_args setSessionId(@org.apache.thrift.annotation.Nullable java.lang.String sessionId) { this.sessionId = sessionId; return this; } @@ -9646,11 +9964,12 @@ public class MasterServer { } } - public String getImageBaseId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageBaseId() { return this.imageBaseId; } - public getImageDetails_args setImageBaseId(String imageBaseId) { + public getImageDetails_args setImageBaseId(@org.apache.thrift.annotation.Nullable java.lang.String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -9670,13 +9989,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SESSION_ID: if (value == null) { unsetSessionId(); } else { - setSessionId((String)value); + setSessionId((java.lang.String)value); } break; @@ -9684,14 +10003,15 @@ public class MasterServer { if (value == null) { unsetImageBaseId(); } else { - setImageBaseId((String)value); + setImageBaseId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SESSION_ID: return getSessionId(); @@ -9700,13 +10020,13 @@ public class MasterServer { return getImageBaseId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -9715,13 +10035,11 @@ public class MasterServer { case IMAGE_BASE_ID: return isSetImageBaseId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getImageDetails_args) return this.equals((getImageDetails_args)that); return false; @@ -9730,6 +10048,8 @@ public class MasterServer { public boolean equals(getImageDetails_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_sessionId = true && this.isSetSessionId(); boolean that_present_sessionId = true && that.isSetSessionId(); @@ -9754,19 +10074,17 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_sessionId = true && (isSetSessionId()); - list.add(present_sessionId); - if (present_sessionId) - list.add(sessionId); + hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287); + if (isSetSessionId()) + hashCode = hashCode * 8191 + sessionId.hashCode(); - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -9777,7 +10095,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId()); + lastComparison = java.lang.Boolean.compare(isSetSessionId(), other.isSetSessionId()); if (lastComparison != 0) { return lastComparison; } @@ -9787,7 +10105,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = java.lang.Boolean.compare(isSetImageBaseId(), other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } @@ -9800,21 +10118,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getImageDetails_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getImageDetails_args("); boolean first = true; sb.append("sessionId:"); @@ -9849,7 +10168,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -9857,13 +10176,13 @@ public class MasterServer { } } - private static class getImageDetails_argsStandardSchemeFactory implements SchemeFactory { + private static class getImageDetails_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageDetails_argsStandardScheme getScheme() { return new getImageDetails_argsStandardScheme(); } } - private static class getImageDetails_argsStandardScheme extends StandardScheme { + private static class getImageDetails_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -9922,18 +10241,18 @@ public class MasterServer { } - private static class getImageDetails_argsTupleSchemeFactory implements SchemeFactory { + private static class getImageDetails_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageDetails_argsTupleScheme getScheme() { return new getImageDetails_argsTupleScheme(); } } - private static class getImageDetails_argsTupleScheme extends TupleScheme { + private static class getImageDetails_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSessionId()) { optionals.set(0); } @@ -9951,8 +10270,8 @@ public class MasterServer { @Override 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(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.sessionId = iprot.readString(); struct.setSessionIdIsSet(true); @@ -9964,6 +10283,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getImageDetails_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -9974,16 +10296,13 @@ public class MasterServer { 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 getImageDetails_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageDetails_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImageDetails_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImageDetails_resultTupleSchemeFactory(); - public ImageDetailsRead success; // required - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable ImageDetailsRead success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -9992,10 +10311,10 @@ public class MasterServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -10003,6 +10322,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -10024,21 +10344,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -10047,24 +10368,24 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_result.class, metaDataMap); } @@ -10114,11 +10435,12 @@ public class MasterServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public ImageDetailsRead getSuccess() { return this.success; } - public getImageDetails_result setSuccess(ImageDetailsRead success) { + public getImageDetails_result setSuccess(@org.apache.thrift.annotation.Nullable ImageDetailsRead success) { this.success = success; return this; } @@ -10138,11 +10460,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public getImageDetails_result setAuthError(TAuthorizationException authError) { + public getImageDetails_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -10162,11 +10485,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public getImageDetails_result setNotFound(TNotFoundException notFound) { + public getImageDetails_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -10186,11 +10510,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getImageDetails_result setServerError(TInvocationException serverError) { + public getImageDetails_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -10210,7 +10535,7 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -10247,7 +10572,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -10262,13 +10588,13 @@ public class MasterServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -10281,13 +10607,11 @@ public class MasterServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getImageDetails_result) return this.equals((getImageDetails_result)that); return false; @@ -10296,6 +10620,8 @@ public class MasterServer { public boolean equals(getImageDetails_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -10338,29 +10664,25 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -10371,7 +10693,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -10381,7 +10703,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -10391,7 +10713,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -10401,7 +10723,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -10414,21 +10736,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getImageDetails_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getImageDetails_result("); boolean first = true; sb.append("success:"); @@ -10482,7 +10805,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -10490,13 +10813,13 @@ public class MasterServer { } } - private static class getImageDetails_resultStandardSchemeFactory implements SchemeFactory { + private static class getImageDetails_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageDetails_resultStandardScheme getScheme() { return new getImageDetails_resultStandardScheme(); } } - private static class getImageDetails_resultStandardScheme extends StandardScheme { + private static class getImageDetails_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -10585,18 +10908,18 @@ public class MasterServer { } - private static class getImageDetails_resultTupleSchemeFactory implements SchemeFactory { + private static class getImageDetails_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageDetails_resultTupleScheme getScheme() { return new getImageDetails_resultTupleScheme(); } } - private static class getImageDetails_resultTupleScheme extends TupleScheme { + private static class getImageDetails_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -10626,8 +10949,8 @@ public class MasterServer { @Override 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(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new ImageDetailsRead(); struct.success.read(iprot); @@ -10651,6 +10974,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getUser_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -10659,24 +10985,21 @@ public class MasterServer { 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 USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getUser_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUser_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getUser_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getUser_argsTupleSchemeFactory(); - public String userToken; // required - public String userId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userId; // 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_ID((short)2, "userId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -10684,6 +11007,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -10701,21 +11025,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -10724,20 +11049,20 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.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"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUser_args.class, metaDataMap); } @@ -10745,8 +11070,8 @@ public class MasterServer { } public getUser_args( - String userToken, - String userId) + java.lang.String userToken, + java.lang.String userId) { this(); this.userToken = userToken; @@ -10775,11 +11100,12 @@ public class MasterServer { this.userId = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public getUser_args setUserToken(String userToken) { + public getUser_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -10799,11 +11125,12 @@ public class MasterServer { } } - public String getUserId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserId() { return this.userId; } - public getUser_args setUserId(String userId) { + public getUser_args setUserId(@org.apache.thrift.annotation.Nullable java.lang.String userId) { this.userId = userId; return this; } @@ -10823,13 +11150,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -10837,14 +11164,15 @@ public class MasterServer { if (value == null) { unsetUserId(); } else { - setUserId((String)value); + setUserId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -10853,13 +11181,13 @@ public class MasterServer { return getUserId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -10868,13 +11196,11 @@ public class MasterServer { case USER_ID: return isSetUserId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getUser_args) return this.equals((getUser_args)that); return false; @@ -10883,6 +11209,8 @@ public class MasterServer { public boolean equals(getUser_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -10907,19 +11235,17 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_userId = true && (isSetUserId()); - list.add(present_userId); - if (present_userId) - list.add(userId); + hashCode = hashCode * 8191 + ((isSetUserId()) ? 131071 : 524287); + if (isSetUserId()) + hashCode = hashCode * 8191 + userId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -10930,7 +11256,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -10940,7 +11266,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUserId()).compareTo(other.isSetUserId()); + lastComparison = java.lang.Boolean.compare(isSetUserId(), other.isSetUserId()); if (lastComparison != 0) { return lastComparison; } @@ -10953,21 +11279,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getUser_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getUser_args("); boolean first = true; sb.append("userToken:"); @@ -11002,7 +11329,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -11010,13 +11337,13 @@ public class MasterServer { } } - private static class getUser_argsStandardSchemeFactory implements SchemeFactory { + private static class getUser_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUser_argsStandardScheme getScheme() { return new getUser_argsStandardScheme(); } } - private static class getUser_argsStandardScheme extends StandardScheme { + private static class getUser_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getUser_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -11075,18 +11402,18 @@ public class MasterServer { } - private static class getUser_argsTupleSchemeFactory implements SchemeFactory { + private static class getUser_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUser_argsTupleScheme getScheme() { return new getUser_argsTupleScheme(); } } - private static class getUser_argsTupleScheme extends TupleScheme { + private static class getUser_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getUser_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -11104,8 +11431,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getUser_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -11117,6 +11444,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getUser_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -11127,16 +11457,13 @@ public class MasterServer { 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 getUser_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUser_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getUser_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getUser_resultTupleSchemeFactory(); - public UserInfo success; // required - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable UserInfo success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -11145,10 +11472,10 @@ public class MasterServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -11156,6 +11483,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -11177,21 +11505,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -11200,24 +11529,24 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, UserInfo.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUser_result.class, metaDataMap); } @@ -11267,11 +11596,12 @@ public class MasterServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public UserInfo getSuccess() { return this.success; } - public getUser_result setSuccess(UserInfo success) { + public getUser_result setSuccess(@org.apache.thrift.annotation.Nullable UserInfo success) { this.success = success; return this; } @@ -11291,11 +11621,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public getUser_result setAuthError(TAuthorizationException authError) { + public getUser_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -11315,11 +11646,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public getUser_result setNotFound(TNotFoundException notFound) { + public getUser_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -11339,11 +11671,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getUser_result setServerError(TInvocationException serverError) { + public getUser_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -11363,7 +11696,7 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -11400,7 +11733,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -11415,13 +11749,13 @@ public class MasterServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -11434,13 +11768,11 @@ public class MasterServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getUser_result) return this.equals((getUser_result)that); return false; @@ -11449,6 +11781,8 @@ public class MasterServer { public boolean equals(getUser_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -11491,29 +11825,25 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -11524,7 +11854,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -11534,7 +11864,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -11544,7 +11874,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -11554,7 +11884,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -11567,21 +11897,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getUser_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getUser_result("); boolean first = true; sb.append("success:"); @@ -11635,7 +11966,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -11643,13 +11974,13 @@ public class MasterServer { } } - private static class getUser_resultStandardSchemeFactory implements SchemeFactory { + private static class getUser_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUser_resultStandardScheme getScheme() { return new getUser_resultStandardScheme(); } } - private static class getUser_resultStandardScheme extends StandardScheme { + private static class getUser_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getUser_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -11738,18 +12069,18 @@ public class MasterServer { } - private static class getUser_resultTupleSchemeFactory implements SchemeFactory { + private static class getUser_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUser_resultTupleScheme getScheme() { return new getUser_resultTupleScheme(); } } - private static class getUser_resultTupleScheme extends TupleScheme { + private static class getUser_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getUser_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -11779,8 +12110,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getUser_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new UserInfo(); struct.success.read(iprot); @@ -11804,6 +12135,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class invalidateSession_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -11811,22 +12145,19 @@ public class MasterServer { 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)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new invalidateSession_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new invalidateSession_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new invalidateSession_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new invalidateSession_argsTupleSchemeFactory(); - public String sessionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // 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 { SESSION_ID((short)1, "sessionId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -11834,6 +12165,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SESSION_ID @@ -11849,21 +12181,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -11872,18 +12205,18 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_args.class, metaDataMap); } @@ -11891,7 +12224,7 @@ public class MasterServer { } public invalidateSession_args( - String sessionId) + java.lang.String sessionId) { this(); this.sessionId = sessionId; @@ -11915,11 +12248,12 @@ public class MasterServer { this.sessionId = null; } - public String getSessionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getSessionId() { return this.sessionId; } - public invalidateSession_args setSessionId(String sessionId) { + public invalidateSession_args setSessionId(@org.apache.thrift.annotation.Nullable java.lang.String sessionId) { this.sessionId = sessionId; return this; } @@ -11939,45 +12273,44 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SESSION_ID: if (value == null) { unsetSessionId(); } else { - setSessionId((String)value); + setSessionId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SESSION_ID: return getSessionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SESSION_ID: return isSetSessionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof invalidateSession_args) return this.equals((invalidateSession_args)that); return false; @@ -11986,6 +12319,8 @@ public class MasterServer { public boolean equals(invalidateSession_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_sessionId = true && this.isSetSessionId(); boolean that_present_sessionId = true && that.isSetSessionId(); @@ -12001,14 +12336,13 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_sessionId = true && (isSetSessionId()); - list.add(present_sessionId); - if (present_sessionId) - list.add(sessionId); + hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287); + if (isSetSessionId()) + hashCode = hashCode * 8191 + sessionId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -12019,7 +12353,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId()); + lastComparison = java.lang.Boolean.compare(isSetSessionId(), other.isSetSessionId()); if (lastComparison != 0) { return lastComparison; } @@ -12032,21 +12366,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("invalidateSession_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("invalidateSession_args("); boolean first = true; sb.append("sessionId:"); @@ -12073,7 +12408,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -12081,13 +12416,13 @@ public class MasterServer { } } - private static class invalidateSession_argsStandardSchemeFactory implements SchemeFactory { + private static class invalidateSession_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public invalidateSession_argsStandardScheme getScheme() { return new invalidateSession_argsStandardScheme(); } } - private static class invalidateSession_argsStandardScheme extends StandardScheme { + private static class invalidateSession_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -12133,18 +12468,18 @@ public class MasterServer { } - private static class invalidateSession_argsTupleSchemeFactory implements SchemeFactory { + private static class invalidateSession_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public invalidateSession_argsTupleScheme getScheme() { return new invalidateSession_argsTupleScheme(); } } - private static class invalidateSession_argsTupleScheme extends TupleScheme { + private static class invalidateSession_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSessionId()) { optionals.set(0); } @@ -12156,8 +12491,8 @@ public class MasterServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.sessionId = iprot.readString(); struct.setSessionIdIsSet(true); @@ -12165,6 +12500,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class invalidateSession_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -12172,22 +12510,19 @@ public class MasterServer { 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 invalidateSession_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new invalidateSession_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new invalidateSession_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new invalidateSession_resultTupleSchemeFactory(); - public TInvalidTokenException ex; // required + public @org.apache.thrift.annotation.Nullable 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 { EX((short)1, "ex"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -12195,6 +12530,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX @@ -12210,21 +12546,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -12233,18 +12570,18 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidTokenException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_result.class, metaDataMap); } @@ -12276,11 +12613,12 @@ public class MasterServer { this.ex = null; } + @org.apache.thrift.annotation.Nullable public TInvalidTokenException getEx() { return this.ex; } - public invalidateSession_result setEx(TInvalidTokenException ex) { + public invalidateSession_result setEx(@org.apache.thrift.annotation.Nullable TInvalidTokenException ex) { this.ex = ex; return this; } @@ -12300,7 +12638,7 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case EX: if (value == null) { @@ -12313,32 +12651,31 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof invalidateSession_result) return this.equals((invalidateSession_result)that); return false; @@ -12347,6 +12684,8 @@ public class MasterServer { public boolean equals(invalidateSession_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); @@ -12362,14 +12701,13 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_ex = true && (isSetEx()); - list.add(present_ex); - if (present_ex) - list.add(ex); + hashCode = hashCode * 8191 + ((isSetEx()) ? 131071 : 524287); + if (isSetEx()) + hashCode = hashCode * 8191 + ex.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -12380,7 +12718,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = java.lang.Boolean.compare(isSetEx(), other.isSetEx()); if (lastComparison != 0) { return lastComparison; } @@ -12393,21 +12731,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("invalidateSession_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("invalidateSession_result("); boolean first = true; sb.append("ex:"); @@ -12434,7 +12773,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -12442,13 +12781,13 @@ public class MasterServer { } } - private static class invalidateSession_resultStandardSchemeFactory implements SchemeFactory { + private static class invalidateSession_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public invalidateSession_resultStandardScheme getScheme() { return new invalidateSession_resultStandardScheme(); } } - private static class invalidateSession_resultStandardScheme extends StandardScheme { + private static class invalidateSession_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -12495,18 +12834,18 @@ public class MasterServer { } - private static class invalidateSession_resultTupleSchemeFactory implements SchemeFactory { + private static class invalidateSession_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public invalidateSession_resultTupleScheme getScheme() { return new invalidateSession_resultTupleScheme(); } } - private static class invalidateSession_resultTupleScheme extends TupleScheme { + private static class invalidateSession_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetEx()) { optionals.set(0); } @@ -12518,8 +12857,8 @@ public class MasterServer { @Override 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(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.ex = new TInvalidTokenException(); struct.ex.read(iprot); @@ -12528,6 +12867,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getUserFromToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -12535,22 +12877,19 @@ public class MasterServer { private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getUserFromToken_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserFromToken_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getUserFromToken_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getUserFromToken_argsTupleSchemeFactory(); - public String token; // required + public @org.apache.thrift.annotation.Nullable java.lang.String token; // 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 { TOKEN((short)1, "token"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -12558,6 +12897,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TOKEN @@ -12573,21 +12913,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -12596,18 +12937,18 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserFromToken_args.class, metaDataMap); } @@ -12615,7 +12956,7 @@ public class MasterServer { } public getUserFromToken_args( - String token) + java.lang.String token) { this(); this.token = token; @@ -12639,11 +12980,12 @@ public class MasterServer { this.token = null; } - public String getToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getToken() { return this.token; } - public getUserFromToken_args setToken(String token) { + public getUserFromToken_args setToken(@org.apache.thrift.annotation.Nullable java.lang.String token) { this.token = token; return this; } @@ -12663,45 +13005,44 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case TOKEN: if (value == null) { unsetToken(); } else { - setToken((String)value); + setToken((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case TOKEN: return getToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case TOKEN: return isSetToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getUserFromToken_args) return this.equals((getUserFromToken_args)that); return false; @@ -12710,6 +13051,8 @@ public class MasterServer { public boolean equals(getUserFromToken_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_token = true && this.isSetToken(); boolean that_present_token = true && that.isSetToken(); @@ -12725,14 +13068,13 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_token = true && (isSetToken()); - list.add(present_token); - if (present_token) - list.add(token); + hashCode = hashCode * 8191 + ((isSetToken()) ? 131071 : 524287); + if (isSetToken()) + hashCode = hashCode * 8191 + token.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -12743,7 +13085,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); + lastComparison = java.lang.Boolean.compare(isSetToken(), other.isSetToken()); if (lastComparison != 0) { return lastComparison; } @@ -12756,21 +13098,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getUserFromToken_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getUserFromToken_args("); boolean first = true; sb.append("token:"); @@ -12797,7 +13140,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -12805,13 +13148,13 @@ public class MasterServer { } } - private static class getUserFromToken_argsStandardSchemeFactory implements SchemeFactory { + private static class getUserFromToken_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUserFromToken_argsStandardScheme getScheme() { return new getUserFromToken_argsStandardScheme(); } } - private static class getUserFromToken_argsStandardScheme extends StandardScheme { + private static class getUserFromToken_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getUserFromToken_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -12857,18 +13200,18 @@ public class MasterServer { } - private static class getUserFromToken_argsTupleSchemeFactory implements SchemeFactory { + private static class getUserFromToken_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUserFromToken_argsTupleScheme getScheme() { return new getUserFromToken_argsTupleScheme(); } } - private static class getUserFromToken_argsTupleScheme extends TupleScheme { + private static class getUserFromToken_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetToken()) { optionals.set(0); } @@ -12880,8 +13223,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.token = iprot.readString(); struct.setTokenIsSet(true); @@ -12889,6 +13232,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getUserFromToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -12897,24 +13243,21 @@ public class MasterServer { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getUserFromToken_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserFromToken_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getUserFromToken_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getUserFromToken_resultTupleSchemeFactory(); - public UserInfo success; // required - public TInvalidTokenException failure; // required + public @org.apache.thrift.annotation.Nullable UserInfo success; // required + public @org.apache.thrift.annotation.Nullable TInvalidTokenException failure; // 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"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -12922,6 +13265,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -12939,21 +13283,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -12962,20 +13307,20 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, 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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidTokenException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserFromToken_result.class, metaDataMap); } @@ -13013,11 +13358,12 @@ public class MasterServer { this.failure = null; } + @org.apache.thrift.annotation.Nullable public UserInfo getSuccess() { return this.success; } - public getUserFromToken_result setSuccess(UserInfo success) { + public getUserFromToken_result setSuccess(@org.apache.thrift.annotation.Nullable UserInfo success) { this.success = success; return this; } @@ -13037,11 +13383,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvalidTokenException getFailure() { return this.failure; } - public getUserFromToken_result setFailure(TInvalidTokenException failure) { + public getUserFromToken_result setFailure(@org.apache.thrift.annotation.Nullable TInvalidTokenException failure) { this.failure = failure; return this; } @@ -13061,7 +13408,7 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -13082,7 +13429,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -13091,13 +13439,13 @@ public class MasterServer { return getFailure(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -13106,13 +13454,11 @@ public class MasterServer { case FAILURE: return isSetFailure(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getUserFromToken_result) return this.equals((getUserFromToken_result)that); return false; @@ -13121,6 +13467,8 @@ public class MasterServer { public boolean equals(getUserFromToken_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -13145,19 +13493,17 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_failure = true && (isSetFailure()); - list.add(present_failure); - if (present_failure) - list.add(failure); + hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287); + if (isSetFailure()) + hashCode = hashCode * 8191 + failure.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -13168,7 +13514,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -13178,7 +13524,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } @@ -13191,21 +13537,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getUserFromToken_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getUserFromToken_result("); boolean first = true; sb.append("success:"); @@ -13243,7 +13590,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -13251,13 +13598,13 @@ public class MasterServer { } } - private static class getUserFromToken_resultStandardSchemeFactory implements SchemeFactory { + private static class getUserFromToken_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUserFromToken_resultStandardScheme getScheme() { return new getUserFromToken_resultStandardScheme(); } } - private static class getUserFromToken_resultStandardScheme extends StandardScheme { + private static class getUserFromToken_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getUserFromToken_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -13318,18 +13665,18 @@ public class MasterServer { } - private static class getUserFromToken_resultTupleSchemeFactory implements SchemeFactory { + private static class getUserFromToken_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUserFromToken_resultTupleScheme getScheme() { return new getUserFromToken_resultTupleScheme(); } } - private static class getUserFromToken_resultTupleScheme extends TupleScheme { + private static class getUserFromToken_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -13347,8 +13694,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getUserFromToken_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new UserInfo(); struct.success.read(iprot); @@ -13362,6 +13709,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class isServerAuthenticated_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -13369,22 +13719,19 @@ public class MasterServer { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new isServerAuthenticated_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isServerAuthenticated_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isServerAuthenticated_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isServerAuthenticated_argsTupleSchemeFactory(); - public String serverSessionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String serverSessionId; // 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"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -13392,6 +13739,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SERVER_SESSION_ID @@ -13407,21 +13755,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -13430,18 +13779,18 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isServerAuthenticated_args.class, metaDataMap); } @@ -13449,7 +13798,7 @@ public class MasterServer { } public isServerAuthenticated_args( - String serverSessionId) + java.lang.String serverSessionId) { this(); this.serverSessionId = serverSessionId; @@ -13473,11 +13822,12 @@ public class MasterServer { this.serverSessionId = null; } - public String getServerSessionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getServerSessionId() { return this.serverSessionId; } - public isServerAuthenticated_args setServerSessionId(String serverSessionId) { + public isServerAuthenticated_args setServerSessionId(@org.apache.thrift.annotation.Nullable java.lang.String serverSessionId) { this.serverSessionId = serverSessionId; return this; } @@ -13497,45 +13847,44 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SERVER_SESSION_ID: if (value == null) { unsetServerSessionId(); } else { - setServerSessionId((String)value); + setServerSessionId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SERVER_SESSION_ID: return getServerSessionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SERVER_SESSION_ID: return isSetServerSessionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof isServerAuthenticated_args) return this.equals((isServerAuthenticated_args)that); return false; @@ -13544,6 +13893,8 @@ public class MasterServer { public boolean equals(isServerAuthenticated_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_serverSessionId = true && this.isSetServerSessionId(); boolean that_present_serverSessionId = true && that.isSetServerSessionId(); @@ -13559,14 +13910,13 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_serverSessionId = true && (isSetServerSessionId()); - list.add(present_serverSessionId); - if (present_serverSessionId) - list.add(serverSessionId); + hashCode = hashCode * 8191 + ((isSetServerSessionId()) ? 131071 : 524287); + if (isSetServerSessionId()) + hashCode = hashCode * 8191 + serverSessionId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -13577,7 +13927,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(other.isSetServerSessionId()); + lastComparison = java.lang.Boolean.compare(isSetServerSessionId(), other.isSetServerSessionId()); if (lastComparison != 0) { return lastComparison; } @@ -13590,21 +13940,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("isServerAuthenticated_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("isServerAuthenticated_args("); boolean first = true; sb.append("serverSessionId:"); @@ -13631,7 +13982,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -13639,13 +13990,13 @@ public class MasterServer { } } - private static class isServerAuthenticated_argsStandardSchemeFactory implements SchemeFactory { + private static class isServerAuthenticated_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isServerAuthenticated_argsStandardScheme getScheme() { return new isServerAuthenticated_argsStandardScheme(); } } - private static class isServerAuthenticated_argsStandardScheme extends StandardScheme { + private static class isServerAuthenticated_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, isServerAuthenticated_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -13691,18 +14042,18 @@ public class MasterServer { } - private static class isServerAuthenticated_argsTupleSchemeFactory implements SchemeFactory { + private static class isServerAuthenticated_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isServerAuthenticated_argsTupleScheme getScheme() { return new isServerAuthenticated_argsTupleScheme(); } } - private static class isServerAuthenticated_argsTupleScheme extends TupleScheme { + private static class isServerAuthenticated_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetServerSessionId()) { optionals.set(0); } @@ -13714,8 +14065,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.serverSessionId = iprot.readString(); struct.setServerSessionIdIsSet(true); @@ -13723,6 +14074,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class isServerAuthenticated_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -13730,11 +14084,8 @@ public class MasterServer { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new isServerAuthenticated_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isServerAuthenticated_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isServerAuthenticated_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isServerAuthenticated_resultTupleSchemeFactory(); public boolean success; // required @@ -13742,10 +14093,10 @@ public class MasterServer { public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -13753,6 +14104,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -13768,21 +14120,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -13791,7 +14144,7 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -13799,12 +14152,12 @@ 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; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isServerAuthenticated_result.class, metaDataMap); } @@ -13848,57 +14201,56 @@ public class MasterServer { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((java.lang.Boolean)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof isServerAuthenticated_result) return this.equals((isServerAuthenticated_result)that); return false; @@ -13907,6 +14259,8 @@ public class MasterServer { public boolean equals(isServerAuthenticated_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -13922,14 +14276,11 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -13940,7 +14291,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -13953,21 +14304,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("isServerAuthenticated_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("isServerAuthenticated_result("); boolean first = true; sb.append("success:"); @@ -13990,7 +14342,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -14000,13 +14352,13 @@ public class MasterServer { } } - private static class isServerAuthenticated_resultStandardSchemeFactory implements SchemeFactory { + private static class isServerAuthenticated_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isServerAuthenticated_resultStandardScheme getScheme() { return new isServerAuthenticated_resultStandardScheme(); } } - private static class isServerAuthenticated_resultStandardScheme extends StandardScheme { + private static class isServerAuthenticated_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, isServerAuthenticated_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -14052,18 +14404,18 @@ public class MasterServer { } - private static class isServerAuthenticated_resultTupleSchemeFactory implements SchemeFactory { + private static class isServerAuthenticated_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isServerAuthenticated_resultTupleScheme getScheme() { return new isServerAuthenticated_resultTupleScheme(); } } - private static class isServerAuthenticated_resultTupleScheme extends TupleScheme { + private static class isServerAuthenticated_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -14075,8 +14427,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, isServerAuthenticated_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); @@ -14084,6 +14436,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class startServerAuthentication_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -14091,11 +14446,8 @@ public class MasterServer { private static final org.apache.thrift.protocol.TField SATELLITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("satelliteId", org.apache.thrift.protocol.TType.I32, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new startServerAuthentication_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new startServerAuthentication_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new startServerAuthentication_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new startServerAuthentication_argsTupleSchemeFactory(); public int satelliteId; // required @@ -14103,10 +14455,10 @@ public class MasterServer { public enum _Fields implements org.apache.thrift.TFieldIdEnum { SATELLITE_ID((short)1, "satelliteId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -14114,6 +14466,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SATELLITE_ID @@ -14129,21 +14482,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -14152,7 +14506,7 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -14160,12 +14514,12 @@ public class MasterServer { // isset id assignments private static final int __SATELLITEID_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SATELLITE_ID, new org.apache.thrift.meta_data.FieldMetaData("satelliteId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startServerAuthentication_args.class, metaDataMap); } @@ -14209,57 +14563,56 @@ public class MasterServer { } public void unsetSatelliteId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SATELLITEID_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SATELLITEID_ISSET_ID); } /** Returns true if field satelliteId is set (has been assigned a value) and false otherwise */ public boolean isSetSatelliteId() { - return EncodingUtils.testBit(__isset_bitfield, __SATELLITEID_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SATELLITEID_ISSET_ID); } public void setSatelliteIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SATELLITEID_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SATELLITEID_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SATELLITE_ID: if (value == null) { unsetSatelliteId(); } else { - setSatelliteId((Integer)value); + setSatelliteId((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SATELLITE_ID: return getSatelliteId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SATELLITE_ID: return isSetSatelliteId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof startServerAuthentication_args) return this.equals((startServerAuthentication_args)that); return false; @@ -14268,6 +14621,8 @@ public class MasterServer { public boolean equals(startServerAuthentication_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_satelliteId = true; boolean that_present_satelliteId = true; @@ -14283,14 +14638,11 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_satelliteId = true; - list.add(present_satelliteId); - if (present_satelliteId) - list.add(satelliteId); + hashCode = hashCode * 8191 + satelliteId; - return list.hashCode(); + return hashCode; } @Override @@ -14301,7 +14653,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSatelliteId()).compareTo(other.isSetSatelliteId()); + lastComparison = java.lang.Boolean.compare(isSetSatelliteId(), other.isSetSatelliteId()); if (lastComparison != 0) { return lastComparison; } @@ -14314,21 +14666,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("startServerAuthentication_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("startServerAuthentication_args("); boolean first = true; sb.append("satelliteId:"); @@ -14351,7 +14704,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -14361,13 +14714,13 @@ public class MasterServer { } } - private static class startServerAuthentication_argsStandardSchemeFactory implements SchemeFactory { + private static class startServerAuthentication_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public startServerAuthentication_argsStandardScheme getScheme() { return new startServerAuthentication_argsStandardScheme(); } } - private static class startServerAuthentication_argsStandardScheme extends StandardScheme { + private static class startServerAuthentication_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, startServerAuthentication_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -14411,18 +14764,18 @@ public class MasterServer { } - private static class startServerAuthentication_argsTupleSchemeFactory implements SchemeFactory { + private static class startServerAuthentication_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public startServerAuthentication_argsTupleScheme getScheme() { return new startServerAuthentication_argsTupleScheme(); } } - private static class startServerAuthentication_argsTupleScheme extends TupleScheme { + private static class startServerAuthentication_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSatelliteId()) { optionals.set(0); } @@ -14434,8 +14787,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.satelliteId = iprot.readI32(); struct.setSatelliteIdIsSet(true); @@ -14443,6 +14796,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class startServerAuthentication_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -14452,15 +14808,12 @@ public class MasterServer { 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 startServerAuthentication_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new startServerAuthentication_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new startServerAuthentication_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new startServerAuthentication_resultTupleSchemeFactory(); - public ByteBuffer success; // required - public TAuthorizationException failure; // required - public TInvocationException error; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -14468,10 +14821,10 @@ public class MasterServer { FAILURE((short)1, "failure"), ERROR((short)2, "error"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -14479,6 +14832,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -14498,21 +14852,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -14521,22 +14876,22 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startServerAuthentication_result.class, metaDataMap); } @@ -14544,7 +14899,7 @@ public class MasterServer { } public startServerAuthentication_result( - ByteBuffer success, + java.nio.ByteBuffer success, TAuthorizationException failure, TInvocationException error) { @@ -14585,16 +14940,16 @@ public class MasterServer { return success == null ? null : success.array(); } - public ByteBuffer bufferForSuccess() { + public java.nio.ByteBuffer bufferForSuccess() { return org.apache.thrift.TBaseHelper.copyBinary(success); } public startServerAuthentication_result setSuccess(byte[] success) { - this.success = success == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(success, success.length)); + this.success = success == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(success.clone()); return this; } - public startServerAuthentication_result setSuccess(ByteBuffer success) { + public startServerAuthentication_result setSuccess(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer success) { this.success = org.apache.thrift.TBaseHelper.copyBinary(success); return this; } @@ -14614,11 +14969,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getFailure() { return this.failure; } - public startServerAuthentication_result setFailure(TAuthorizationException failure) { + public startServerAuthentication_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) { this.failure = failure; return this; } @@ -14638,11 +14994,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getError() { return this.error; } - public startServerAuthentication_result setError(TInvocationException error) { + public startServerAuthentication_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) { this.error = error; return this; } @@ -14662,13 +15019,17 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((ByteBuffer)value); + if (value instanceof byte[]) { + setSuccess((byte[])value); + } else { + setSuccess((java.nio.ByteBuffer)value); + } } break; @@ -14691,7 +15052,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -14703,13 +15065,13 @@ public class MasterServer { return getError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -14720,13 +15082,11 @@ public class MasterServer { case ERROR: return isSetError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof startServerAuthentication_result) return this.equals((startServerAuthentication_result)that); return false; @@ -14735,6 +15095,8 @@ public class MasterServer { public boolean equals(startServerAuthentication_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -14768,24 +15130,21 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_failure = true && (isSetFailure()); - list.add(present_failure); - if (present_failure) - list.add(failure); + hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287); + if (isSetFailure()) + hashCode = hashCode * 8191 + failure.hashCode(); - boolean present_error = true && (isSetError()); - list.add(present_error); - if (present_error) - list.add(error); + hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287); + if (isSetError()) + hashCode = hashCode * 8191 + error.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -14796,7 +15155,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -14806,7 +15165,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } @@ -14816,7 +15175,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); + lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError()); if (lastComparison != 0) { return lastComparison; } @@ -14829,21 +15188,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("startServerAuthentication_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("startServerAuthentication_result("); boolean first = true; sb.append("success:"); @@ -14886,7 +15246,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -14894,13 +15254,13 @@ public class MasterServer { } } - private static class startServerAuthentication_resultStandardSchemeFactory implements SchemeFactory { + private static class startServerAuthentication_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public startServerAuthentication_resultStandardScheme getScheme() { return new startServerAuthentication_resultStandardScheme(); } } - private static class startServerAuthentication_resultStandardScheme extends StandardScheme { + private static class startServerAuthentication_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, startServerAuthentication_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -14974,18 +15334,18 @@ public class MasterServer { } - private static class startServerAuthentication_resultTupleSchemeFactory implements SchemeFactory { + private static class startServerAuthentication_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public startServerAuthentication_resultTupleScheme getScheme() { return new startServerAuthentication_resultTupleScheme(); } } - private static class startServerAuthentication_resultTupleScheme extends TupleScheme { + private static class startServerAuthentication_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -15009,8 +15369,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, startServerAuthentication_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readBinary(); struct.setSuccessIsSet(true); @@ -15028,6 +15388,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class serverAuthenticate_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -15036,24 +15399,21 @@ public class MasterServer { private static final org.apache.thrift.protocol.TField SATELLITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("satelliteId", org.apache.thrift.protocol.TType.I32, (short)1); private static final org.apache.thrift.protocol.TField CHALLENGE_RESPONSE_FIELD_DESC = new org.apache.thrift.protocol.TField("challengeResponse", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new serverAuthenticate_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new serverAuthenticate_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new serverAuthenticate_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new serverAuthenticate_argsTupleSchemeFactory(); public int satelliteId; // required - public ByteBuffer challengeResponse; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer challengeResponse; // 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 { SATELLITE_ID((short)1, "satelliteId"), CHALLENGE_RESPONSE((short)2, "challengeResponse"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -15061,6 +15421,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SATELLITE_ID @@ -15078,21 +15439,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -15101,7 +15463,7 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -15109,14 +15471,14 @@ public class MasterServer { // isset id assignments private static final int __SATELLITEID_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SATELLITE_ID, new org.apache.thrift.meta_data.FieldMetaData("satelliteId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.CHALLENGE_RESPONSE, new org.apache.thrift.meta_data.FieldMetaData("challengeResponse", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(serverAuthenticate_args.class, metaDataMap); } @@ -15125,7 +15487,7 @@ public class MasterServer { public serverAuthenticate_args( int satelliteId, - ByteBuffer challengeResponse) + java.nio.ByteBuffer challengeResponse) { this(); this.satelliteId = satelliteId; @@ -15166,16 +15528,16 @@ public class MasterServer { } public void unsetSatelliteId() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SATELLITEID_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SATELLITEID_ISSET_ID); } /** Returns true if field satelliteId is set (has been assigned a value) and false otherwise */ public boolean isSetSatelliteId() { - return EncodingUtils.testBit(__isset_bitfield, __SATELLITEID_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SATELLITEID_ISSET_ID); } public void setSatelliteIdIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SATELLITEID_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SATELLITEID_ISSET_ID, value); } public byte[] getChallengeResponse() { @@ -15183,16 +15545,16 @@ public class MasterServer { return challengeResponse == null ? null : challengeResponse.array(); } - public ByteBuffer bufferForChallengeResponse() { + public java.nio.ByteBuffer bufferForChallengeResponse() { return org.apache.thrift.TBaseHelper.copyBinary(challengeResponse); } public serverAuthenticate_args setChallengeResponse(byte[] challengeResponse) { - this.challengeResponse = challengeResponse == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(challengeResponse, challengeResponse.length)); + this.challengeResponse = challengeResponse == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(challengeResponse.clone()); return this; } - public serverAuthenticate_args setChallengeResponse(ByteBuffer challengeResponse) { + public serverAuthenticate_args setChallengeResponse(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer challengeResponse) { this.challengeResponse = org.apache.thrift.TBaseHelper.copyBinary(challengeResponse); return this; } @@ -15212,13 +15574,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SATELLITE_ID: if (value == null) { unsetSatelliteId(); } else { - setSatelliteId((Integer)value); + setSatelliteId((java.lang.Integer)value); } break; @@ -15226,14 +15588,19 @@ public class MasterServer { if (value == null) { unsetChallengeResponse(); } else { - setChallengeResponse((ByteBuffer)value); + if (value instanceof byte[]) { + setChallengeResponse((byte[])value); + } else { + setChallengeResponse((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SATELLITE_ID: return getSatelliteId(); @@ -15242,13 +15609,13 @@ public class MasterServer { return getChallengeResponse(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -15257,13 +15624,11 @@ public class MasterServer { case CHALLENGE_RESPONSE: return isSetChallengeResponse(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof serverAuthenticate_args) return this.equals((serverAuthenticate_args)that); return false; @@ -15272,6 +15637,8 @@ public class MasterServer { public boolean equals(serverAuthenticate_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_satelliteId = true; boolean that_present_satelliteId = true; @@ -15296,19 +15663,15 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_satelliteId = true; - list.add(present_satelliteId); - if (present_satelliteId) - list.add(satelliteId); + hashCode = hashCode * 8191 + satelliteId; - boolean present_challengeResponse = true && (isSetChallengeResponse()); - list.add(present_challengeResponse); - if (present_challengeResponse) - list.add(challengeResponse); + hashCode = hashCode * 8191 + ((isSetChallengeResponse()) ? 131071 : 524287); + if (isSetChallengeResponse()) + hashCode = hashCode * 8191 + challengeResponse.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -15319,7 +15682,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSatelliteId()).compareTo(other.isSetSatelliteId()); + lastComparison = java.lang.Boolean.compare(isSetSatelliteId(), other.isSetSatelliteId()); if (lastComparison != 0) { return lastComparison; } @@ -15329,7 +15692,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetChallengeResponse()).compareTo(other.isSetChallengeResponse()); + lastComparison = java.lang.Boolean.compare(isSetChallengeResponse(), other.isSetChallengeResponse()); if (lastComparison != 0) { return lastComparison; } @@ -15342,21 +15705,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("serverAuthenticate_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("serverAuthenticate_args("); boolean first = true; sb.append("satelliteId:"); @@ -15387,7 +15751,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -15397,13 +15761,13 @@ public class MasterServer { } } - private static class serverAuthenticate_argsStandardSchemeFactory implements SchemeFactory { + private static class serverAuthenticate_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public serverAuthenticate_argsStandardScheme getScheme() { return new serverAuthenticate_argsStandardScheme(); } } - private static class serverAuthenticate_argsStandardScheme extends StandardScheme { + private static class serverAuthenticate_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, serverAuthenticate_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -15460,18 +15824,18 @@ public class MasterServer { } - private static class serverAuthenticate_argsTupleSchemeFactory implements SchemeFactory { + private static class serverAuthenticate_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public serverAuthenticate_argsTupleScheme getScheme() { return new serverAuthenticate_argsTupleScheme(); } } - private static class serverAuthenticate_argsTupleScheme extends TupleScheme { + private static class serverAuthenticate_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSatelliteId()) { optionals.set(0); } @@ -15489,8 +15853,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.satelliteId = iprot.readI32(); struct.setSatelliteIdIsSet(true); @@ -15502,6 +15866,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class serverAuthenticate_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -15511,15 +15878,12 @@ public class MasterServer { 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 ERRR_FIELD_DESC = new org.apache.thrift.protocol.TField("errr", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new serverAuthenticate_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new serverAuthenticate_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new serverAuthenticate_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new serverAuthenticate_resultTupleSchemeFactory(); - public ServerSessionData success; // required - public TAuthorizationException failure; // required - public TInvocationException errr; // required + public @org.apache.thrift.annotation.Nullable ServerSessionData success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required + public @org.apache.thrift.annotation.Nullable TInvocationException errr; // 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 { @@ -15527,10 +15891,10 @@ public class MasterServer { FAILURE((short)1, "failure"), ERRR((short)2, "errr"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -15538,6 +15902,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -15557,21 +15922,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -15580,22 +15946,22 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, ServerSessionData.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); tmpMap.put(_Fields.ERRR, new org.apache.thrift.meta_data.FieldMetaData("errr", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(serverAuthenticate_result.class, metaDataMap); } @@ -15639,11 +16005,12 @@ public class MasterServer { this.errr = null; } + @org.apache.thrift.annotation.Nullable public ServerSessionData getSuccess() { return this.success; } - public serverAuthenticate_result setSuccess(ServerSessionData success) { + public serverAuthenticate_result setSuccess(@org.apache.thrift.annotation.Nullable ServerSessionData success) { this.success = success; return this; } @@ -15663,11 +16030,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getFailure() { return this.failure; } - public serverAuthenticate_result setFailure(TAuthorizationException failure) { + public serverAuthenticate_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) { this.failure = failure; return this; } @@ -15687,11 +16055,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getErrr() { return this.errr; } - public serverAuthenticate_result setErrr(TInvocationException errr) { + public serverAuthenticate_result setErrr(@org.apache.thrift.annotation.Nullable TInvocationException errr) { this.errr = errr; return this; } @@ -15711,7 +16080,7 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -15740,7 +16109,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -15752,13 +16122,13 @@ public class MasterServer { return getErrr(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -15769,13 +16139,11 @@ public class MasterServer { case ERRR: return isSetErrr(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof serverAuthenticate_result) return this.equals((serverAuthenticate_result)that); return false; @@ -15784,6 +16152,8 @@ public class MasterServer { public boolean equals(serverAuthenticate_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -15817,24 +16187,21 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_failure = true && (isSetFailure()); - list.add(present_failure); - if (present_failure) - list.add(failure); + hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287); + if (isSetFailure()) + hashCode = hashCode * 8191 + failure.hashCode(); - boolean present_errr = true && (isSetErrr()); - list.add(present_errr); - if (present_errr) - list.add(errr); + hashCode = hashCode * 8191 + ((isSetErrr()) ? 131071 : 524287); + if (isSetErrr()) + hashCode = hashCode * 8191 + errr.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -15845,7 +16212,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -15855,7 +16222,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } @@ -15865,7 +16232,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetErrr()).compareTo(other.isSetErrr()); + lastComparison = java.lang.Boolean.compare(isSetErrr(), other.isSetErrr()); if (lastComparison != 0) { return lastComparison; } @@ -15878,21 +16245,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("serverAuthenticate_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("serverAuthenticate_result("); boolean first = true; sb.append("success:"); @@ -15938,7 +16306,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -15946,13 +16314,13 @@ public class MasterServer { } } - private static class serverAuthenticate_resultStandardSchemeFactory implements SchemeFactory { + private static class serverAuthenticate_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public serverAuthenticate_resultStandardScheme getScheme() { return new serverAuthenticate_resultStandardScheme(); } } - private static class serverAuthenticate_resultStandardScheme extends StandardScheme { + private static class serverAuthenticate_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, serverAuthenticate_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -16027,18 +16395,18 @@ public class MasterServer { } - private static class serverAuthenticate_resultTupleSchemeFactory implements SchemeFactory { + private static class serverAuthenticate_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public serverAuthenticate_resultTupleScheme getScheme() { return new serverAuthenticate_resultTupleScheme(); } } - private static class serverAuthenticate_resultTupleScheme extends TupleScheme { + private static class serverAuthenticate_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -16062,8 +16430,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, serverAuthenticate_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new ServerSessionData(); struct.success.read(iprot); @@ -16082,6 +16450,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getImageData_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -16090,24 +16461,21 @@ public class MasterServer { 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_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 getImageData_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageData_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImageData_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImageData_argsTupleSchemeFactory(); - public String serverSessionId; // required - public String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String serverSessionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.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_VERSION_ID((short)2, "imageVersionId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -16115,6 +16483,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SERVER_SESSION_ID @@ -16132,21 +16501,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -16155,20 +16525,20 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageData_args.class, metaDataMap); } @@ -16176,8 +16546,8 @@ public class MasterServer { } public getImageData_args( - String serverSessionId, - String imageVersionId) + java.lang.String serverSessionId, + java.lang.String imageVersionId) { this(); this.serverSessionId = serverSessionId; @@ -16206,11 +16576,12 @@ public class MasterServer { this.imageVersionId = null; } - public String getServerSessionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getServerSessionId() { return this.serverSessionId; } - public getImageData_args setServerSessionId(String serverSessionId) { + public getImageData_args setServerSessionId(@org.apache.thrift.annotation.Nullable java.lang.String serverSessionId) { this.serverSessionId = serverSessionId; return this; } @@ -16230,11 +16601,12 @@ public class MasterServer { } } - public String getImageVersionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageVersionId() { return this.imageVersionId; } - public getImageData_args setImageVersionId(String imageVersionId) { + public getImageData_args setImageVersionId(@org.apache.thrift.annotation.Nullable java.lang.String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -16254,13 +16626,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SERVER_SESSION_ID: if (value == null) { unsetServerSessionId(); } else { - setServerSessionId((String)value); + setServerSessionId((java.lang.String)value); } break; @@ -16268,14 +16640,15 @@ public class MasterServer { if (value == null) { unsetImageVersionId(); } else { - setImageVersionId((String)value); + setImageVersionId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SERVER_SESSION_ID: return getServerSessionId(); @@ -16284,13 +16657,13 @@ public class MasterServer { return getImageVersionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -16299,13 +16672,11 @@ public class MasterServer { case IMAGE_VERSION_ID: return isSetImageVersionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getImageData_args) return this.equals((getImageData_args)that); return false; @@ -16314,6 +16685,8 @@ public class MasterServer { public boolean equals(getImageData_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_serverSessionId = true && this.isSetServerSessionId(); boolean that_present_serverSessionId = true && that.isSetServerSessionId(); @@ -16338,19 +16711,17 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_serverSessionId = true && (isSetServerSessionId()); - list.add(present_serverSessionId); - if (present_serverSessionId) - list.add(serverSessionId); + hashCode = hashCode * 8191 + ((isSetServerSessionId()) ? 131071 : 524287); + if (isSetServerSessionId()) + hashCode = hashCode * 8191 + serverSessionId.hashCode(); - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -16361,7 +16732,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(other.isSetServerSessionId()); + lastComparison = java.lang.Boolean.compare(isSetServerSessionId(), other.isSetServerSessionId()); if (lastComparison != 0) { return lastComparison; } @@ -16371,7 +16742,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = java.lang.Boolean.compare(isSetImageVersionId(), other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } @@ -16384,21 +16755,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getImageData_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getImageData_args("); boolean first = true; sb.append("serverSessionId:"); @@ -16433,7 +16805,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -16441,13 +16813,13 @@ public class MasterServer { } } - private static class getImageData_argsStandardSchemeFactory implements SchemeFactory { + private static class getImageData_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageData_argsStandardScheme getScheme() { return new getImageData_argsStandardScheme(); } } - private static class getImageData_argsStandardScheme extends StandardScheme { + private static class getImageData_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getImageData_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -16506,18 +16878,18 @@ public class MasterServer { } - private static class getImageData_argsTupleSchemeFactory implements SchemeFactory { + private static class getImageData_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageData_argsTupleScheme getScheme() { return new getImageData_argsTupleScheme(); } } - private static class getImageData_argsTupleScheme extends TupleScheme { + private static class getImageData_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetServerSessionId()) { optionals.set(0); } @@ -16535,8 +16907,8 @@ public class MasterServer { @Override 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(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.serverSessionId = iprot.readString(); struct.setServerSessionIdIsSet(true); @@ -16548,6 +16920,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getImageData_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -16558,16 +16933,13 @@ public class MasterServer { 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 getImageData_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageData_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImageData_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImageData_resultTupleSchemeFactory(); - public ImagePublishData success; // required - public TAuthorizationException failure; // required - public TInvocationException failure2; // required - public TNotFoundException f3; // required + public @org.apache.thrift.annotation.Nullable ImagePublishData success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required + public @org.apache.thrift.annotation.Nullable TInvocationException failure2; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -16576,10 +16948,10 @@ public class MasterServer { FAILURE2((short)2, "failure2"), F3((short)3, "f3"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -16587,6 +16959,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -16608,21 +16981,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -16631,24 +17005,24 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageData_result.class, metaDataMap); } @@ -16698,11 +17072,12 @@ public class MasterServer { this.f3 = null; } + @org.apache.thrift.annotation.Nullable public ImagePublishData getSuccess() { return this.success; } - public getImageData_result setSuccess(ImagePublishData success) { + public getImageData_result setSuccess(@org.apache.thrift.annotation.Nullable ImagePublishData success) { this.success = success; return this; } @@ -16722,11 +17097,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getFailure() { return this.failure; } - public getImageData_result setFailure(TAuthorizationException failure) { + public getImageData_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) { this.failure = failure; return this; } @@ -16746,11 +17122,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getFailure2() { return this.failure2; } - public getImageData_result setFailure2(TInvocationException failure2) { + public getImageData_result setFailure2(@org.apache.thrift.annotation.Nullable TInvocationException failure2) { this.failure2 = failure2; return this; } @@ -16770,11 +17147,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getF3() { return this.f3; } - public getImageData_result setF3(TNotFoundException f3) { + public getImageData_result setF3(@org.apache.thrift.annotation.Nullable TNotFoundException f3) { this.f3 = f3; return this; } @@ -16794,7 +17172,7 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -16831,7 +17209,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -16846,13 +17225,13 @@ public class MasterServer { return getF3(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -16865,13 +17244,11 @@ public class MasterServer { case F3: return isSetF3(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getImageData_result) return this.equals((getImageData_result)that); return false; @@ -16880,6 +17257,8 @@ public class MasterServer { public boolean equals(getImageData_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -16922,29 +17301,25 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_failure = true && (isSetFailure()); - list.add(present_failure); - if (present_failure) - list.add(failure); + hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287); + if (isSetFailure()) + hashCode = hashCode * 8191 + failure.hashCode(); - boolean present_failure2 = true && (isSetFailure2()); - list.add(present_failure2); - if (present_failure2) - list.add(failure2); + hashCode = hashCode * 8191 + ((isSetFailure2()) ? 131071 : 524287); + if (isSetFailure2()) + hashCode = hashCode * 8191 + failure2.hashCode(); - boolean present_f3 = true && (isSetF3()); - list.add(present_f3); - if (present_f3) - list.add(f3); + hashCode = hashCode * 8191 + ((isSetF3()) ? 131071 : 524287); + if (isSetF3()) + hashCode = hashCode * 8191 + f3.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -16955,7 +17330,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -16965,7 +17340,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } @@ -16975,7 +17350,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure2()).compareTo(other.isSetFailure2()); + lastComparison = java.lang.Boolean.compare(isSetFailure2(), other.isSetFailure2()); if (lastComparison != 0) { return lastComparison; } @@ -16985,7 +17360,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetF3()).compareTo(other.isSetF3()); + lastComparison = java.lang.Boolean.compare(isSetF3(), other.isSetF3()); if (lastComparison != 0) { return lastComparison; } @@ -16998,21 +17373,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getImageData_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getImageData_result("); boolean first = true; sb.append("success:"); @@ -17066,7 +17442,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -17074,13 +17450,13 @@ public class MasterServer { } } - private static class getImageData_resultStandardSchemeFactory implements SchemeFactory { + private static class getImageData_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageData_resultStandardScheme getScheme() { return new getImageData_resultStandardScheme(); } } - private static class getImageData_resultStandardScheme extends StandardScheme { + private static class getImageData_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getImageData_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -17169,18 +17545,18 @@ public class MasterServer { } - private static class getImageData_resultTupleSchemeFactory implements SchemeFactory { + private static class getImageData_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageData_resultTupleScheme getScheme() { return new getImageData_resultTupleScheme(); } } - private static class getImageData_resultTupleScheme extends TupleScheme { + private static class getImageData_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -17210,8 +17586,8 @@ public class MasterServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new ImagePublishData(); struct.success.read(iprot); @@ -17235,6 +17611,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class submitImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -17244,15 +17623,12 @@ public class MasterServer { 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 submitImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new submitImage_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new submitImage_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new submitImage_argsTupleSchemeFactory(); - public String userToken; // required - public ImagePublishData imageDescription; // required - public List blockHashes; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable ImagePublishData imageDescription; // required + public @org.apache.thrift.annotation.Nullable java.util.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 { @@ -17260,10 +17636,10 @@ public class MasterServer { IMAGE_DESCRIPTION((short)2, "imageDescription"), BLOCK_HASHES((short)3, "blockHashes"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -17271,6 +17647,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -17290,21 +17667,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -17313,15 +17691,15 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("imageDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -17329,7 +17707,7 @@ public class MasterServer { 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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submitImage_args.class, metaDataMap); } @@ -17337,9 +17715,9 @@ public class MasterServer { } public submitImage_args( - String userToken, + java.lang.String userToken, ImagePublishData imageDescription, - List blockHashes) + java.util.List blockHashes) { this(); this.userToken = userToken; @@ -17358,7 +17736,7 @@ public class MasterServer { this.imageDescription = new ImagePublishData(other.imageDescription); } if (other.isSetBlockHashes()) { - List __this__blockHashes = new ArrayList(other.blockHashes); + java.util.List __this__blockHashes = new java.util.ArrayList(other.blockHashes); this.blockHashes = __this__blockHashes; } } @@ -17374,11 +17752,12 @@ public class MasterServer { this.blockHashes = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public submitImage_args setUserToken(String userToken) { + public submitImage_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -17398,11 +17777,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public ImagePublishData getImageDescription() { return this.imageDescription; } - public submitImage_args setImageDescription(ImagePublishData imageDescription) { + public submitImage_args setImageDescription(@org.apache.thrift.annotation.Nullable ImagePublishData imageDescription) { this.imageDescription = imageDescription; return this; } @@ -17426,22 +17806,24 @@ public class MasterServer { return (this.blockHashes == null) ? 0 : this.blockHashes.size(); } - public java.util.Iterator getBlockHashesIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getBlockHashesIterator() { return (this.blockHashes == null) ? null : this.blockHashes.iterator(); } - public void addToBlockHashes(ByteBuffer elem) { + public void addToBlockHashes(java.nio.ByteBuffer elem) { if (this.blockHashes == null) { - this.blockHashes = new ArrayList(); + this.blockHashes = new java.util.ArrayList(); } this.blockHashes.add(elem); } - public List getBlockHashes() { + @org.apache.thrift.annotation.Nullable + public java.util.List getBlockHashes() { return this.blockHashes; } - public submitImage_args setBlockHashes(List blockHashes) { + public submitImage_args setBlockHashes(@org.apache.thrift.annotation.Nullable java.util.List blockHashes) { this.blockHashes = blockHashes; return this; } @@ -17461,13 +17843,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -17483,14 +17865,15 @@ public class MasterServer { if (value == null) { unsetBlockHashes(); } else { - setBlockHashes((List)value); + setBlockHashes((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -17502,13 +17885,13 @@ public class MasterServer { return getBlockHashes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -17519,13 +17902,11 @@ public class MasterServer { case BLOCK_HASHES: return isSetBlockHashes(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof submitImage_args) return this.equals((submitImage_args)that); return false; @@ -17534,6 +17915,8 @@ public class MasterServer { public boolean equals(submitImage_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -17567,24 +17950,21 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageDescription = true && (isSetImageDescription()); - list.add(present_imageDescription); - if (present_imageDescription) - list.add(imageDescription); + hashCode = hashCode * 8191 + ((isSetImageDescription()) ? 131071 : 524287); + if (isSetImageDescription()) + hashCode = hashCode * 8191 + imageDescription.hashCode(); - boolean present_blockHashes = true && (isSetBlockHashes()); - list.add(present_blockHashes); - if (present_blockHashes) - list.add(blockHashes); + hashCode = hashCode * 8191 + ((isSetBlockHashes()) ? 131071 : 524287); + if (isSetBlockHashes()) + hashCode = hashCode * 8191 + blockHashes.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -17595,7 +17975,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -17605,7 +17985,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageDescription()).compareTo(other.isSetImageDescription()); + lastComparison = java.lang.Boolean.compare(isSetImageDescription(), other.isSetImageDescription()); if (lastComparison != 0) { return lastComparison; } @@ -17615,7 +17995,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBlockHashes()).compareTo(other.isSetBlockHashes()); + lastComparison = java.lang.Boolean.compare(isSetBlockHashes(), other.isSetBlockHashes()); if (lastComparison != 0) { return lastComparison; } @@ -17628,21 +18008,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("submitImage_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("submitImage_args("); boolean first = true; sb.append("userToken:"); @@ -17688,7 +18069,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -17696,13 +18077,13 @@ public class MasterServer { } } - private static class submitImage_argsStandardSchemeFactory implements SchemeFactory { + private static class submitImage_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public submitImage_argsStandardScheme getScheme() { return new submitImage_argsStandardScheme(); } } - private static class submitImage_argsStandardScheme extends StandardScheme { + private static class submitImage_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, submitImage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -17734,13 +18115,13 @@ public class MasterServer { case 3: // BLOCK_HASHES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list322 = iprot.readListBegin(); - struct.blockHashes = new ArrayList(_list322.size); - ByteBuffer _elem323; - for (int _i324 = 0; _i324 < _list322.size; ++_i324) + org.apache.thrift.protocol.TList _list434 = iprot.readListBegin(); + struct.blockHashes = new java.util.ArrayList(_list434.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem435; + for (int _i436 = 0; _i436 < _list434.size; ++_i436) { - _elem323 = iprot.readBinary(); - struct.blockHashes.add(_elem323); + _elem435 = iprot.readBinary(); + struct.blockHashes.add(_elem435); } iprot.readListEnd(); } @@ -17778,9 +18159,9 @@ public class MasterServer { 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 _iter325 : struct.blockHashes) + for (java.nio.ByteBuffer _iter437 : struct.blockHashes) { - oprot.writeBinary(_iter325); + oprot.writeBinary(_iter437); } oprot.writeListEnd(); } @@ -17792,18 +18173,18 @@ public class MasterServer { } - private static class submitImage_argsTupleSchemeFactory implements SchemeFactory { + private static class submitImage_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public submitImage_argsTupleScheme getScheme() { return new submitImage_argsTupleScheme(); } } - private static class submitImage_argsTupleScheme extends TupleScheme { + private static class submitImage_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -17823,9 +18204,9 @@ public class MasterServer { if (struct.isSetBlockHashes()) { { oprot.writeI32(struct.blockHashes.size()); - for (ByteBuffer _iter326 : struct.blockHashes) + for (java.nio.ByteBuffer _iter438 : struct.blockHashes) { - oprot.writeBinary(_iter326); + oprot.writeBinary(_iter438); } } } @@ -17833,8 +18214,8 @@ public class MasterServer { @Override 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(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -17846,13 +18227,13 @@ public class MasterServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.blockHashes = new ArrayList(_list327.size); - ByteBuffer _elem328; - for (int _i329 = 0; _i329 < _list327.size; ++_i329) + org.apache.thrift.protocol.TList _list439 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.blockHashes = new java.util.ArrayList(_list439.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem440; + for (int _i441 = 0; _i441 < _list439.size; ++_i441) { - _elem328 = iprot.readBinary(); - struct.blockHashes.add(_elem328); + _elem440 = iprot.readBinary(); + struct.blockHashes.add(_elem440); } } struct.setBlockHashesIsSet(true); @@ -17860,6 +18241,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class submitImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -17870,16 +18254,13 @@ public class MasterServer { 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 submitImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new submitImage_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new submitImage_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new submitImage_resultTupleSchemeFactory(); - public TransferInformation success; // required - public TAuthorizationException failure; // required - public TInvocationException failure2; // required - public TTransferRejectedException failure3; // required + public @org.apache.thrift.annotation.Nullable TransferInformation success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required + public @org.apache.thrift.annotation.Nullable TInvocationException failure2; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -17888,10 +18269,10 @@ public class MasterServer { FAILURE2((short)2, "failure2"), FAILURE3((short)3, "failure3"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -17899,6 +18280,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -17920,21 +18302,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -17943,24 +18326,24 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTransferRejectedException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submitImage_result.class, metaDataMap); } @@ -18010,11 +18393,12 @@ public class MasterServer { this.failure3 = null; } + @org.apache.thrift.annotation.Nullable public TransferInformation getSuccess() { return this.success; } - public submitImage_result setSuccess(TransferInformation success) { + public submitImage_result setSuccess(@org.apache.thrift.annotation.Nullable TransferInformation success) { this.success = success; return this; } @@ -18034,11 +18418,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getFailure() { return this.failure; } - public submitImage_result setFailure(TAuthorizationException failure) { + public submitImage_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) { this.failure = failure; return this; } @@ -18058,11 +18443,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getFailure2() { return this.failure2; } - public submitImage_result setFailure2(TInvocationException failure2) { + public submitImage_result setFailure2(@org.apache.thrift.annotation.Nullable TInvocationException failure2) { this.failure2 = failure2; return this; } @@ -18082,11 +18468,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TTransferRejectedException getFailure3() { return this.failure3; } - public submitImage_result setFailure3(TTransferRejectedException failure3) { + public submitImage_result setFailure3(@org.apache.thrift.annotation.Nullable TTransferRejectedException failure3) { this.failure3 = failure3; return this; } @@ -18106,7 +18493,7 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -18143,7 +18530,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -18158,13 +18546,13 @@ public class MasterServer { return getFailure3(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -18177,13 +18565,11 @@ public class MasterServer { case FAILURE3: return isSetFailure3(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof submitImage_result) return this.equals((submitImage_result)that); return false; @@ -18192,6 +18578,8 @@ public class MasterServer { public boolean equals(submitImage_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -18234,29 +18622,25 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_failure = true && (isSetFailure()); - list.add(present_failure); - if (present_failure) - list.add(failure); + hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287); + if (isSetFailure()) + hashCode = hashCode * 8191 + failure.hashCode(); - boolean present_failure2 = true && (isSetFailure2()); - list.add(present_failure2); - if (present_failure2) - list.add(failure2); + hashCode = hashCode * 8191 + ((isSetFailure2()) ? 131071 : 524287); + if (isSetFailure2()) + hashCode = hashCode * 8191 + failure2.hashCode(); - boolean present_failure3 = true && (isSetFailure3()); - list.add(present_failure3); - if (present_failure3) - list.add(failure3); + hashCode = hashCode * 8191 + ((isSetFailure3()) ? 131071 : 524287); + if (isSetFailure3()) + hashCode = hashCode * 8191 + failure3.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -18267,7 +18651,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -18277,7 +18661,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } @@ -18287,7 +18671,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure2()).compareTo(other.isSetFailure2()); + lastComparison = java.lang.Boolean.compare(isSetFailure2(), other.isSetFailure2()); if (lastComparison != 0) { return lastComparison; } @@ -18297,7 +18681,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure3()).compareTo(other.isSetFailure3()); + lastComparison = java.lang.Boolean.compare(isSetFailure3(), other.isSetFailure3()); if (lastComparison != 0) { return lastComparison; } @@ -18310,21 +18694,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("submitImage_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("submitImage_result("); boolean first = true; sb.append("success:"); @@ -18378,7 +18763,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -18386,13 +18771,13 @@ public class MasterServer { } } - private static class submitImage_resultStandardSchemeFactory implements SchemeFactory { + private static class submitImage_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public submitImage_resultStandardScheme getScheme() { return new submitImage_resultStandardScheme(); } } - private static class submitImage_resultStandardScheme extends StandardScheme { + private static class submitImage_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, submitImage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -18481,18 +18866,18 @@ public class MasterServer { } - private static class submitImage_resultTupleSchemeFactory implements SchemeFactory { + private static class submitImage_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public submitImage_resultTupleScheme getScheme() { return new submitImage_resultTupleScheme(); } } - private static class submitImage_resultTupleScheme extends TupleScheme { + private static class submitImage_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -18522,8 +18907,8 @@ public class MasterServer { @Override 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(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new TransferInformation(); struct.success.read(iprot); @@ -18547,6 +18932,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class registerSatellite_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -18559,18 +18947,15 @@ public class MasterServer { private static final org.apache.thrift.protocol.TField EXPONENT_FIELD_DESC = new org.apache.thrift.protocol.TField("exponent", org.apache.thrift.protocol.TType.STRING, (short)4); private static final org.apache.thrift.protocol.TField CERTSHA256_FIELD_DESC = new org.apache.thrift.protocol.TField("certsha256", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new registerSatellite_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new registerSatellite_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new registerSatellite_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new registerSatellite_argsTupleSchemeFactory(); - public String userToken; // required - public String displayName; // required - public List addresses; // required - public String modulus; // required - public String exponent; // required - public ByteBuffer certsha256; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String displayName; // required + public @org.apache.thrift.annotation.Nullable java.util.List addresses; // required + public @org.apache.thrift.annotation.Nullable java.lang.String modulus; // required + public @org.apache.thrift.annotation.Nullable java.lang.String exponent; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer certsha256; // 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 { @@ -18581,10 +18966,10 @@ public class MasterServer { EXPONENT((short)4, "exponent"), CERTSHA256((short)1, "certsha256"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -18592,6 +18977,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 6: // USER_TOKEN @@ -18617,21 +19003,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -18640,15 +19027,15 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -18662,7 +19049,7 @@ public class MasterServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CERTSHA256, new org.apache.thrift.meta_data.FieldMetaData("certsha256", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(registerSatellite_args.class, metaDataMap); } @@ -18670,12 +19057,12 @@ public class MasterServer { } public registerSatellite_args( - String userToken, - String displayName, - List addresses, - String modulus, - String exponent, - ByteBuffer certsha256) + java.lang.String userToken, + java.lang.String displayName, + java.util.List addresses, + java.lang.String modulus, + java.lang.String exponent, + java.nio.ByteBuffer certsha256) { this(); this.userToken = userToken; @@ -18697,7 +19084,7 @@ public class MasterServer { this.displayName = other.displayName; } if (other.isSetAddresses()) { - List __this__addresses = new ArrayList(other.addresses); + java.util.List __this__addresses = new java.util.ArrayList(other.addresses); this.addresses = __this__addresses; } if (other.isSetModulus()) { @@ -18725,11 +19112,12 @@ public class MasterServer { this.certsha256 = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public registerSatellite_args setUserToken(String userToken) { + public registerSatellite_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -18749,11 +19137,12 @@ public class MasterServer { } } - public String getDisplayName() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getDisplayName() { return this.displayName; } - public registerSatellite_args setDisplayName(String displayName) { + public registerSatellite_args setDisplayName(@org.apache.thrift.annotation.Nullable java.lang.String displayName) { this.displayName = displayName; return this; } @@ -18777,22 +19166,24 @@ public class MasterServer { return (this.addresses == null) ? 0 : this.addresses.size(); } - public java.util.Iterator getAddressesIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getAddressesIterator() { return (this.addresses == null) ? null : this.addresses.iterator(); } - public void addToAddresses(String elem) { + public void addToAddresses(java.lang.String elem) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new java.util.ArrayList(); } this.addresses.add(elem); } - public List getAddresses() { + @org.apache.thrift.annotation.Nullable + public java.util.List getAddresses() { return this.addresses; } - public registerSatellite_args setAddresses(List addresses) { + public registerSatellite_args setAddresses(@org.apache.thrift.annotation.Nullable java.util.List addresses) { this.addresses = addresses; return this; } @@ -18812,11 +19203,12 @@ public class MasterServer { } } - public String getModulus() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getModulus() { return this.modulus; } - public registerSatellite_args setModulus(String modulus) { + public registerSatellite_args setModulus(@org.apache.thrift.annotation.Nullable java.lang.String modulus) { this.modulus = modulus; return this; } @@ -18836,11 +19228,12 @@ public class MasterServer { } } - public String getExponent() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getExponent() { return this.exponent; } - public registerSatellite_args setExponent(String exponent) { + public registerSatellite_args setExponent(@org.apache.thrift.annotation.Nullable java.lang.String exponent) { this.exponent = exponent; return this; } @@ -18865,16 +19258,16 @@ public class MasterServer { return certsha256 == null ? null : certsha256.array(); } - public ByteBuffer bufferForCertsha256() { + public java.nio.ByteBuffer bufferForCertsha256() { return org.apache.thrift.TBaseHelper.copyBinary(certsha256); } public registerSatellite_args setCertsha256(byte[] certsha256) { - this.certsha256 = certsha256 == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(certsha256, certsha256.length)); + this.certsha256 = certsha256 == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(certsha256.clone()); return this; } - public registerSatellite_args setCertsha256(ByteBuffer certsha256) { + public registerSatellite_args setCertsha256(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer certsha256) { this.certsha256 = org.apache.thrift.TBaseHelper.copyBinary(certsha256); return this; } @@ -18894,13 +19287,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -18908,7 +19301,7 @@ public class MasterServer { if (value == null) { unsetDisplayName(); } else { - setDisplayName((String)value); + setDisplayName((java.lang.String)value); } break; @@ -18916,7 +19309,7 @@ public class MasterServer { if (value == null) { unsetAddresses(); } else { - setAddresses((List)value); + setAddresses((java.util.List)value); } break; @@ -18924,7 +19317,7 @@ public class MasterServer { if (value == null) { unsetModulus(); } else { - setModulus((String)value); + setModulus((java.lang.String)value); } break; @@ -18932,7 +19325,7 @@ public class MasterServer { if (value == null) { unsetExponent(); } else { - setExponent((String)value); + setExponent((java.lang.String)value); } break; @@ -18940,14 +19333,19 @@ public class MasterServer { if (value == null) { unsetCertsha256(); } else { - setCertsha256((ByteBuffer)value); + if (value instanceof byte[]) { + setCertsha256((byte[])value); + } else { + setCertsha256((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -18968,13 +19366,13 @@ public class MasterServer { return getCertsha256(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -18991,13 +19389,11 @@ public class MasterServer { case CERTSHA256: return isSetCertsha256(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof registerSatellite_args) return this.equals((registerSatellite_args)that); return false; @@ -19006,6 +19402,8 @@ public class MasterServer { public boolean equals(registerSatellite_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -19066,39 +19464,33 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_displayName = true && (isSetDisplayName()); - list.add(present_displayName); - if (present_displayName) - list.add(displayName); + hashCode = hashCode * 8191 + ((isSetDisplayName()) ? 131071 : 524287); + if (isSetDisplayName()) + hashCode = hashCode * 8191 + displayName.hashCode(); - boolean present_addresses = true && (isSetAddresses()); - list.add(present_addresses); - if (present_addresses) - list.add(addresses); + hashCode = hashCode * 8191 + ((isSetAddresses()) ? 131071 : 524287); + if (isSetAddresses()) + hashCode = hashCode * 8191 + addresses.hashCode(); - boolean present_modulus = true && (isSetModulus()); - list.add(present_modulus); - if (present_modulus) - list.add(modulus); + hashCode = hashCode * 8191 + ((isSetModulus()) ? 131071 : 524287); + if (isSetModulus()) + hashCode = hashCode * 8191 + modulus.hashCode(); - boolean present_exponent = true && (isSetExponent()); - list.add(present_exponent); - if (present_exponent) - list.add(exponent); + hashCode = hashCode * 8191 + ((isSetExponent()) ? 131071 : 524287); + if (isSetExponent()) + hashCode = hashCode * 8191 + exponent.hashCode(); - boolean present_certsha256 = true && (isSetCertsha256()); - list.add(present_certsha256); - if (present_certsha256) - list.add(certsha256); + hashCode = hashCode * 8191 + ((isSetCertsha256()) ? 131071 : 524287); + if (isSetCertsha256()) + hashCode = hashCode * 8191 + certsha256.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -19109,7 +19501,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -19119,7 +19511,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(other.isSetDisplayName()); + lastComparison = java.lang.Boolean.compare(isSetDisplayName(), other.isSetDisplayName()); if (lastComparison != 0) { return lastComparison; } @@ -19129,7 +19521,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAddresses()).compareTo(other.isSetAddresses()); + lastComparison = java.lang.Boolean.compare(isSetAddresses(), other.isSetAddresses()); if (lastComparison != 0) { return lastComparison; } @@ -19139,7 +19531,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetModulus()).compareTo(other.isSetModulus()); + lastComparison = java.lang.Boolean.compare(isSetModulus(), other.isSetModulus()); if (lastComparison != 0) { return lastComparison; } @@ -19149,7 +19541,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExponent()).compareTo(other.isSetExponent()); + lastComparison = java.lang.Boolean.compare(isSetExponent(), other.isSetExponent()); if (lastComparison != 0) { return lastComparison; } @@ -19159,7 +19551,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCertsha256()).compareTo(other.isSetCertsha256()); + lastComparison = java.lang.Boolean.compare(isSetCertsha256(), other.isSetCertsha256()); if (lastComparison != 0) { return lastComparison; } @@ -19172,21 +19564,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("registerSatellite_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("registerSatellite_args("); boolean first = true; sb.append("userToken:"); @@ -19253,7 +19646,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -19261,13 +19654,13 @@ public class MasterServer { } } - private static class registerSatellite_argsStandardSchemeFactory implements SchemeFactory { + private static class registerSatellite_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public registerSatellite_argsStandardScheme getScheme() { return new registerSatellite_argsStandardScheme(); } } - private static class registerSatellite_argsStandardScheme extends StandardScheme { + private static class registerSatellite_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, registerSatellite_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -19298,13 +19691,13 @@ public class MasterServer { case 2: // ADDRESSES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list330 = iprot.readListBegin(); - struct.addresses = new ArrayList(_list330.size); - String _elem331; - for (int _i332 = 0; _i332 < _list330.size; ++_i332) + org.apache.thrift.protocol.TList _list442 = iprot.readListBegin(); + struct.addresses = new java.util.ArrayList(_list442.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem443; + for (int _i444 = 0; _i444 < _list442.size; ++_i444) { - _elem331 = iprot.readString(); - struct.addresses.add(_elem331); + _elem443 = iprot.readString(); + struct.addresses.add(_elem443); } iprot.readListEnd(); } @@ -19361,9 +19754,9 @@ public class MasterServer { oprot.writeFieldBegin(ADDRESSES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.addresses.size())); - for (String _iter333 : struct.addresses) + for (java.lang.String _iter445 : struct.addresses) { - oprot.writeString(_iter333); + oprot.writeString(_iter445); } oprot.writeListEnd(); } @@ -19395,18 +19788,18 @@ public class MasterServer { } - private static class registerSatellite_argsTupleSchemeFactory implements SchemeFactory { + private static class registerSatellite_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public registerSatellite_argsTupleScheme getScheme() { return new registerSatellite_argsTupleScheme(); } } - private static class registerSatellite_argsTupleScheme extends TupleScheme { + private static class registerSatellite_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, registerSatellite_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -19435,9 +19828,9 @@ public class MasterServer { if (struct.isSetAddresses()) { { oprot.writeI32(struct.addresses.size()); - for (String _iter334 : struct.addresses) + for (java.lang.String _iter446 : struct.addresses) { - oprot.writeString(_iter334); + oprot.writeString(_iter446); } } } @@ -19454,8 +19847,8 @@ public class MasterServer { @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(6); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -19466,13 +19859,13 @@ public class MasterServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.addresses = new ArrayList(_list335.size); - String _elem336; - for (int _i337 = 0; _i337 < _list335.size; ++_i337) + org.apache.thrift.protocol.TList _list447 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.addresses = new java.util.ArrayList(_list447.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem448; + for (int _i449 = 0; _i449 < _list447.size; ++_i449) { - _elem336 = iprot.readString(); - struct.addresses.add(_elem336); + _elem448 = iprot.readString(); + struct.addresses.add(_elem448); } } struct.setAddressesIsSet(true); @@ -19492,6 +19885,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class registerSatellite_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -19500,24 +19896,21 @@ public class MasterServer { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new registerSatellite_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new registerSatellite_resultTupleSchemeFactory(); public int success; // required - public TInvocationException error; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -19525,6 +19918,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -19542,21 +19936,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -19565,7 +19960,7 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -19573,14 +19968,14 @@ 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; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.I32))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(registerSatellite_result.class, metaDataMap); } @@ -19630,23 +20025,24 @@ public class MasterServer { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TInvocationException getError() { return this.error; } - public registerSatellite_result setError(TInvocationException error) { + public registerSatellite_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) { this.error = error; return this; } @@ -19666,13 +20062,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((java.lang.Integer)value); } break; @@ -19687,7 +20083,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -19696,13 +20093,13 @@ public class MasterServer { return getError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -19711,13 +20108,11 @@ public class MasterServer { case ERROR: return isSetError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof registerSatellite_result) return this.equals((registerSatellite_result)that); return false; @@ -19726,6 +20121,8 @@ public class MasterServer { public boolean equals(registerSatellite_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -19750,19 +20147,15 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + success; - boolean present_error = true && (isSetError()); - list.add(present_error); - if (present_error) - list.add(error); + hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287); + if (isSetError()) + hashCode = hashCode * 8191 + error.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -19773,7 +20166,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -19783,7 +20176,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); + lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError()); if (lastComparison != 0) { return lastComparison; } @@ -19796,21 +20189,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("registerSatellite_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("registerSatellite_result("); boolean first = true; sb.append("success:"); @@ -19841,7 +20235,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -19851,13 +20245,13 @@ public class MasterServer { } } - private static class registerSatellite_resultStandardSchemeFactory implements SchemeFactory { + private static class registerSatellite_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public registerSatellite_resultStandardScheme getScheme() { return new registerSatellite_resultStandardScheme(); } } - private static class registerSatellite_resultStandardScheme extends StandardScheme { + private static class registerSatellite_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, registerSatellite_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -19917,18 +20311,18 @@ public class MasterServer { } - private static class registerSatellite_resultTupleSchemeFactory implements SchemeFactory { + private static class registerSatellite_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public registerSatellite_resultTupleScheme getScheme() { return new registerSatellite_resultTupleScheme(); } } - private static class registerSatellite_resultTupleScheme extends TupleScheme { + private static class registerSatellite_resultTupleScheme extends org.apache.thrift.scheme.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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -19946,8 +20340,8 @@ public class MasterServer { @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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readI32(); struct.setSuccessIsSet(true); @@ -19960,6 +20354,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class updateSatellite_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -19969,15 +20366,12 @@ public class MasterServer { private static final org.apache.thrift.protocol.TField DISPLAY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("displayName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField ADDRESSES_FIELD_DESC = new org.apache.thrift.protocol.TField("addresses", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new updateSatellite_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateSatellite_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateSatellite_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateSatellite_argsTupleSchemeFactory(); - public String serverSessionId; // required - public String displayName; // required - public List addresses; // required + public @org.apache.thrift.annotation.Nullable java.lang.String serverSessionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String displayName; // required + public @org.apache.thrift.annotation.Nullable java.util.List addresses; // 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 { @@ -19985,10 +20379,10 @@ public class MasterServer { DISPLAY_NAME((short)2, "displayName"), ADDRESSES((short)3, "addresses"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -19996,6 +20390,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // SERVER_SESSION_ID @@ -20015,21 +20410,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -20038,15 +20434,15 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -20054,7 +20450,7 @@ public class MasterServer { tmpMap.put(_Fields.ADDRESSES, new org.apache.thrift.meta_data.FieldMetaData("addresses", 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)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSatellite_args.class, metaDataMap); } @@ -20062,9 +20458,9 @@ public class MasterServer { } public updateSatellite_args( - String serverSessionId, - String displayName, - List addresses) + java.lang.String serverSessionId, + java.lang.String displayName, + java.util.List addresses) { this(); this.serverSessionId = serverSessionId; @@ -20083,7 +20479,7 @@ public class MasterServer { this.displayName = other.displayName; } if (other.isSetAddresses()) { - List __this__addresses = new ArrayList(other.addresses); + java.util.List __this__addresses = new java.util.ArrayList(other.addresses); this.addresses = __this__addresses; } } @@ -20099,11 +20495,12 @@ public class MasterServer { this.addresses = null; } - public String getServerSessionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getServerSessionId() { return this.serverSessionId; } - public updateSatellite_args setServerSessionId(String serverSessionId) { + public updateSatellite_args setServerSessionId(@org.apache.thrift.annotation.Nullable java.lang.String serverSessionId) { this.serverSessionId = serverSessionId; return this; } @@ -20123,11 +20520,12 @@ public class MasterServer { } } - public String getDisplayName() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getDisplayName() { return this.displayName; } - public updateSatellite_args setDisplayName(String displayName) { + public updateSatellite_args setDisplayName(@org.apache.thrift.annotation.Nullable java.lang.String displayName) { this.displayName = displayName; return this; } @@ -20151,22 +20549,24 @@ public class MasterServer { return (this.addresses == null) ? 0 : this.addresses.size(); } - public java.util.Iterator getAddressesIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getAddressesIterator() { return (this.addresses == null) ? null : this.addresses.iterator(); } - public void addToAddresses(String elem) { + public void addToAddresses(java.lang.String elem) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new java.util.ArrayList(); } this.addresses.add(elem); } - public List getAddresses() { + @org.apache.thrift.annotation.Nullable + public java.util.List getAddresses() { return this.addresses; } - public updateSatellite_args setAddresses(List addresses) { + public updateSatellite_args setAddresses(@org.apache.thrift.annotation.Nullable java.util.List addresses) { this.addresses = addresses; return this; } @@ -20186,13 +20586,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SERVER_SESSION_ID: if (value == null) { unsetServerSessionId(); } else { - setServerSessionId((String)value); + setServerSessionId((java.lang.String)value); } break; @@ -20200,7 +20600,7 @@ public class MasterServer { if (value == null) { unsetDisplayName(); } else { - setDisplayName((String)value); + setDisplayName((java.lang.String)value); } break; @@ -20208,14 +20608,15 @@ public class MasterServer { if (value == null) { unsetAddresses(); } else { - setAddresses((List)value); + setAddresses((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SERVER_SESSION_ID: return getServerSessionId(); @@ -20227,13 +20628,13 @@ public class MasterServer { return getAddresses(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -20244,13 +20645,11 @@ public class MasterServer { case ADDRESSES: return isSetAddresses(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof updateSatellite_args) return this.equals((updateSatellite_args)that); return false; @@ -20259,6 +20658,8 @@ public class MasterServer { public boolean equals(updateSatellite_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_serverSessionId = true && this.isSetServerSessionId(); boolean that_present_serverSessionId = true && that.isSetServerSessionId(); @@ -20292,24 +20693,21 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_serverSessionId = true && (isSetServerSessionId()); - list.add(present_serverSessionId); - if (present_serverSessionId) - list.add(serverSessionId); + hashCode = hashCode * 8191 + ((isSetServerSessionId()) ? 131071 : 524287); + if (isSetServerSessionId()) + hashCode = hashCode * 8191 + serverSessionId.hashCode(); - boolean present_displayName = true && (isSetDisplayName()); - list.add(present_displayName); - if (present_displayName) - list.add(displayName); + hashCode = hashCode * 8191 + ((isSetDisplayName()) ? 131071 : 524287); + if (isSetDisplayName()) + hashCode = hashCode * 8191 + displayName.hashCode(); - boolean present_addresses = true && (isSetAddresses()); - list.add(present_addresses); - if (present_addresses) - list.add(addresses); + hashCode = hashCode * 8191 + ((isSetAddresses()) ? 131071 : 524287); + if (isSetAddresses()) + hashCode = hashCode * 8191 + addresses.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -20320,7 +20718,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(other.isSetServerSessionId()); + lastComparison = java.lang.Boolean.compare(isSetServerSessionId(), other.isSetServerSessionId()); if (lastComparison != 0) { return lastComparison; } @@ -20330,7 +20728,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(other.isSetDisplayName()); + lastComparison = java.lang.Boolean.compare(isSetDisplayName(), other.isSetDisplayName()); if (lastComparison != 0) { return lastComparison; } @@ -20340,7 +20738,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAddresses()).compareTo(other.isSetAddresses()); + lastComparison = java.lang.Boolean.compare(isSetAddresses(), other.isSetAddresses()); if (lastComparison != 0) { return lastComparison; } @@ -20353,21 +20751,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("updateSatellite_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("updateSatellite_args("); boolean first = true; sb.append("serverSessionId:"); @@ -20410,7 +20809,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -20418,13 +20817,13 @@ public class MasterServer { } } - private static class updateSatellite_argsStandardSchemeFactory implements SchemeFactory { + private static class updateSatellite_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateSatellite_argsStandardScheme getScheme() { return new updateSatellite_argsStandardScheme(); } } - private static class updateSatellite_argsStandardScheme extends StandardScheme { + private static class updateSatellite_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, updateSatellite_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -20455,13 +20854,13 @@ public class MasterServer { case 3: // ADDRESSES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list338 = iprot.readListBegin(); - struct.addresses = new ArrayList(_list338.size); - String _elem339; - for (int _i340 = 0; _i340 < _list338.size; ++_i340) + org.apache.thrift.protocol.TList _list450 = iprot.readListBegin(); + struct.addresses = new java.util.ArrayList(_list450.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem451; + for (int _i452 = 0; _i452 < _list450.size; ++_i452) { - _elem339 = iprot.readString(); - struct.addresses.add(_elem339); + _elem451 = iprot.readString(); + struct.addresses.add(_elem451); } iprot.readListEnd(); } @@ -20499,9 +20898,9 @@ public class MasterServer { oprot.writeFieldBegin(ADDRESSES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.addresses.size())); - for (String _iter341 : struct.addresses) + for (java.lang.String _iter453 : struct.addresses) { - oprot.writeString(_iter341); + oprot.writeString(_iter453); } oprot.writeListEnd(); } @@ -20513,18 +20912,18 @@ public class MasterServer { } - private static class updateSatellite_argsTupleSchemeFactory implements SchemeFactory { + private static class updateSatellite_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateSatellite_argsTupleScheme getScheme() { return new updateSatellite_argsTupleScheme(); } } - private static class updateSatellite_argsTupleScheme extends TupleScheme { + private static class updateSatellite_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, updateSatellite_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetServerSessionId()) { optionals.set(0); } @@ -20544,9 +20943,9 @@ public class MasterServer { if (struct.isSetAddresses()) { { oprot.writeI32(struct.addresses.size()); - for (String _iter342 : struct.addresses) + for (java.lang.String _iter454 : struct.addresses) { - oprot.writeString(_iter342); + oprot.writeString(_iter454); } } } @@ -20554,8 +20953,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, updateSatellite_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.serverSessionId = iprot.readString(); struct.setServerSessionIdIsSet(true); @@ -20566,13 +20965,13 @@ public class MasterServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.addresses = new ArrayList(_list343.size); - String _elem344; - for (int _i345 = 0; _i345 < _list343.size; ++_i345) + org.apache.thrift.protocol.TList _list455 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.addresses = new java.util.ArrayList(_list455.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem456; + for (int _i457 = 0; _i457 < _list455.size; ++_i457) { - _elem344 = iprot.readString(); - struct.addresses.add(_elem344); + _elem456 = iprot.readString(); + struct.addresses.add(_elem456); } } struct.setAddressesIsSet(true); @@ -20580,6 +20979,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class updateSatellite_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -20589,15 +20991,12 @@ public class MasterServer { 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 updateSatellite_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateSatellite_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateSatellite_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateSatellite_resultTupleSchemeFactory(); public boolean success; // required - public TAuthorizationException failure; // required - public TInvocationException error; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -20605,10 +21004,10 @@ public class MasterServer { FAILURE((short)1, "failure"), ERROR((short)2, "error"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -20616,6 +21015,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -20635,21 +21035,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -20658,7 +21059,7 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -20666,16 +21067,16 @@ 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; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSatellite_result.class, metaDataMap); } @@ -20731,23 +21132,24 @@ public class MasterServer { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getFailure() { return this.failure; } - public updateSatellite_result setFailure(TAuthorizationException failure) { + public updateSatellite_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) { this.failure = failure; return this; } @@ -20767,11 +21169,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getError() { return this.error; } - public updateSatellite_result setError(TInvocationException error) { + public updateSatellite_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) { this.error = error; return this; } @@ -20791,13 +21194,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((java.lang.Boolean)value); } break; @@ -20820,7 +21223,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); @@ -20832,13 +21236,13 @@ public class MasterServer { return getError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -20849,13 +21253,11 @@ public class MasterServer { case ERROR: return isSetError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof updateSatellite_result) return this.equals((updateSatellite_result)that); return false; @@ -20864,6 +21266,8 @@ public class MasterServer { public boolean equals(updateSatellite_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -20897,24 +21301,19 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((success) ? 131071 : 524287); - boolean present_failure = true && (isSetFailure()); - list.add(present_failure); - if (present_failure) - list.add(failure); + hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287); + if (isSetFailure()) + hashCode = hashCode * 8191 + failure.hashCode(); - boolean present_error = true && (isSetError()); - list.add(present_error); - if (present_error) - list.add(error); + hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287); + if (isSetError()) + hashCode = hashCode * 8191 + error.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -20925,7 +21324,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -20935,7 +21334,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } @@ -20945,7 +21344,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); + lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError()); if (lastComparison != 0) { return lastComparison; } @@ -20958,21 +21357,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("updateSatellite_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("updateSatellite_result("); boolean first = true; sb.append("success:"); @@ -21011,7 +21411,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -21021,13 +21421,13 @@ public class MasterServer { } } - private static class updateSatellite_resultStandardSchemeFactory implements SchemeFactory { + private static class updateSatellite_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateSatellite_resultStandardScheme getScheme() { return new updateSatellite_resultStandardScheme(); } } - private static class updateSatellite_resultStandardScheme extends StandardScheme { + private static class updateSatellite_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, updateSatellite_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -21101,18 +21501,18 @@ public class MasterServer { } - private static class updateSatellite_resultTupleSchemeFactory implements SchemeFactory { + private static class updateSatellite_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateSatellite_resultTupleScheme getScheme() { return new updateSatellite_resultTupleScheme(); } } - private static class updateSatellite_resultTupleScheme extends TupleScheme { + private static class updateSatellite_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, updateSatellite_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -21136,8 +21536,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, updateSatellite_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); @@ -21155,6 +21555,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class downloadImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -21163,24 +21566,21 @@ public class MasterServer { 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 downloadImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new downloadImage_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new downloadImage_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new downloadImage_argsTupleSchemeFactory(); - public String sessionId; // required - public String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.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 { SESSION_ID((short)2, "sessionId"), IMAGE_VERSION_ID((short)1, "imageVersionId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -21188,6 +21588,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 2: // SESSION_ID @@ -21205,21 +21606,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -21228,20 +21630,20 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(downloadImage_args.class, metaDataMap); } @@ -21249,8 +21651,8 @@ public class MasterServer { } public downloadImage_args( - String sessionId, - String imageVersionId) + java.lang.String sessionId, + java.lang.String imageVersionId) { this(); this.sessionId = sessionId; @@ -21279,11 +21681,12 @@ public class MasterServer { this.imageVersionId = null; } - public String getSessionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getSessionId() { return this.sessionId; } - public downloadImage_args setSessionId(String sessionId) { + public downloadImage_args setSessionId(@org.apache.thrift.annotation.Nullable java.lang.String sessionId) { this.sessionId = sessionId; return this; } @@ -21303,11 +21706,12 @@ public class MasterServer { } } - public String getImageVersionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageVersionId() { return this.imageVersionId; } - public downloadImage_args setImageVersionId(String imageVersionId) { + public downloadImage_args setImageVersionId(@org.apache.thrift.annotation.Nullable java.lang.String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -21327,13 +21731,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SESSION_ID: if (value == null) { unsetSessionId(); } else { - setSessionId((String)value); + setSessionId((java.lang.String)value); } break; @@ -21341,14 +21745,15 @@ public class MasterServer { if (value == null) { unsetImageVersionId(); } else { - setImageVersionId((String)value); + setImageVersionId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SESSION_ID: return getSessionId(); @@ -21357,13 +21762,13 @@ public class MasterServer { return getImageVersionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -21372,13 +21777,11 @@ public class MasterServer { case IMAGE_VERSION_ID: return isSetImageVersionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof downloadImage_args) return this.equals((downloadImage_args)that); return false; @@ -21387,6 +21790,8 @@ public class MasterServer { public boolean equals(downloadImage_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_sessionId = true && this.isSetSessionId(); boolean that_present_sessionId = true && that.isSetSessionId(); @@ -21411,19 +21816,17 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_sessionId = true && (isSetSessionId()); - list.add(present_sessionId); - if (present_sessionId) - list.add(sessionId); + hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287); + if (isSetSessionId()) + hashCode = hashCode * 8191 + sessionId.hashCode(); - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -21434,7 +21837,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId()); + lastComparison = java.lang.Boolean.compare(isSetSessionId(), other.isSetSessionId()); if (lastComparison != 0) { return lastComparison; } @@ -21444,7 +21847,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = java.lang.Boolean.compare(isSetImageVersionId(), other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } @@ -21457,21 +21860,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("downloadImage_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("downloadImage_args("); boolean first = true; sb.append("sessionId:"); @@ -21506,7 +21910,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -21514,13 +21918,13 @@ public class MasterServer { } } - private static class downloadImage_argsStandardSchemeFactory implements SchemeFactory { + private static class downloadImage_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public downloadImage_argsStandardScheme getScheme() { return new downloadImage_argsStandardScheme(); } } - private static class downloadImage_argsStandardScheme extends StandardScheme { + private static class downloadImage_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, downloadImage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -21579,18 +21983,18 @@ public class MasterServer { } - private static class downloadImage_argsTupleSchemeFactory implements SchemeFactory { + private static class downloadImage_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public downloadImage_argsTupleScheme getScheme() { return new downloadImage_argsTupleScheme(); } } - private static class downloadImage_argsTupleScheme extends TupleScheme { + private static class downloadImage_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSessionId()) { optionals.set(0); } @@ -21608,8 +22012,8 @@ public class MasterServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.sessionId = iprot.readString(); struct.setSessionIdIsSet(true); @@ -21621,6 +22025,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class downloadImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -21631,16 +22038,13 @@ public class MasterServer { 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 downloadImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new downloadImage_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new downloadImage_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new downloadImage_resultTupleSchemeFactory(); - public TransferInformation success; // required - public TAuthorizationException failure; // required - public TInvocationException failure2; // required - public TNotFoundException f3; // required + public @org.apache.thrift.annotation.Nullable TransferInformation success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required + public @org.apache.thrift.annotation.Nullable TInvocationException failure2; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -21649,10 +22053,10 @@ public class MasterServer { FAILURE2((short)2, "failure2"), F3((short)3, "f3"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -21660,6 +22064,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -21681,21 +22086,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -21704,24 +22110,24 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(downloadImage_result.class, metaDataMap); } @@ -21771,11 +22177,12 @@ public class MasterServer { this.f3 = null; } + @org.apache.thrift.annotation.Nullable public TransferInformation getSuccess() { return this.success; } - public downloadImage_result setSuccess(TransferInformation success) { + public downloadImage_result setSuccess(@org.apache.thrift.annotation.Nullable TransferInformation success) { this.success = success; return this; } @@ -21795,11 +22202,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getFailure() { return this.failure; } - public downloadImage_result setFailure(TAuthorizationException failure) { + public downloadImage_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) { this.failure = failure; return this; } @@ -21819,11 +22227,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getFailure2() { return this.failure2; } - public downloadImage_result setFailure2(TInvocationException failure2) { + public downloadImage_result setFailure2(@org.apache.thrift.annotation.Nullable TInvocationException failure2) { this.failure2 = failure2; return this; } @@ -21843,11 +22252,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getF3() { return this.f3; } - public downloadImage_result setF3(TNotFoundException f3) { + public downloadImage_result setF3(@org.apache.thrift.annotation.Nullable TNotFoundException f3) { this.f3 = f3; return this; } @@ -21867,7 +22277,7 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -21904,7 +22314,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -21919,13 +22330,13 @@ public class MasterServer { return getF3(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -21938,13 +22349,11 @@ public class MasterServer { case F3: return isSetF3(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof downloadImage_result) return this.equals((downloadImage_result)that); return false; @@ -21953,6 +22362,8 @@ public class MasterServer { public boolean equals(downloadImage_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -21995,29 +22406,25 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_failure = true && (isSetFailure()); - list.add(present_failure); - if (present_failure) - list.add(failure); + hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287); + if (isSetFailure()) + hashCode = hashCode * 8191 + failure.hashCode(); - boolean present_failure2 = true && (isSetFailure2()); - list.add(present_failure2); - if (present_failure2) - list.add(failure2); + hashCode = hashCode * 8191 + ((isSetFailure2()) ? 131071 : 524287); + if (isSetFailure2()) + hashCode = hashCode * 8191 + failure2.hashCode(); - boolean present_f3 = true && (isSetF3()); - list.add(present_f3); - if (present_f3) - list.add(f3); + hashCode = hashCode * 8191 + ((isSetF3()) ? 131071 : 524287); + if (isSetF3()) + hashCode = hashCode * 8191 + f3.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -22028,7 +22435,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -22038,7 +22445,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } @@ -22048,7 +22455,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure2()).compareTo(other.isSetFailure2()); + lastComparison = java.lang.Boolean.compare(isSetFailure2(), other.isSetFailure2()); if (lastComparison != 0) { return lastComparison; } @@ -22058,7 +22465,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetF3()).compareTo(other.isSetF3()); + lastComparison = java.lang.Boolean.compare(isSetF3(), other.isSetF3()); if (lastComparison != 0) { return lastComparison; } @@ -22071,21 +22478,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("downloadImage_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("downloadImage_result("); boolean first = true; sb.append("success:"); @@ -22139,7 +22547,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -22147,13 +22555,13 @@ public class MasterServer { } } - private static class downloadImage_resultStandardSchemeFactory implements SchemeFactory { + private static class downloadImage_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public downloadImage_resultStandardScheme getScheme() { return new downloadImage_resultStandardScheme(); } } - private static class downloadImage_resultStandardScheme extends StandardScheme { + private static class downloadImage_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, downloadImage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -22242,18 +22650,18 @@ public class MasterServer { } - private static class downloadImage_resultTupleSchemeFactory implements SchemeFactory { + private static class downloadImage_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public downloadImage_resultTupleScheme getScheme() { return new downloadImage_resultTupleScheme(); } } - private static class downloadImage_resultTupleScheme extends TupleScheme { + private static class downloadImage_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -22283,8 +22691,8 @@ public class MasterServer { @Override 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(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new TransferInformation(); struct.success.read(iprot); @@ -22308,27 +22716,27 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getOrganizations_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("getOrganizations_args"); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getOrganizations_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOrganizations_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getOrganizations_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getOrganizations_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -22336,6 +22744,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: @@ -22349,21 +22758,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -22372,14 +22782,14 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrganizations_args.class, metaDataMap); } @@ -22400,32 +22810,31 @@ public class MasterServer { public void clear() { } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getOrganizations_args) return this.equals((getOrganizations_args)that); return false; @@ -22434,15 +22843,17 @@ public class MasterServer { public boolean equals(getOrganizations_args that) { if (that == null) return false; + if (this == that) + return true; return true; } @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - return list.hashCode(); + return hashCode; } @Override @@ -22456,21 +22867,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getOrganizations_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getOrganizations_args("); boolean first = true; sb.append(")"); @@ -22490,7 +22902,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -22498,13 +22910,13 @@ public class MasterServer { } } - private static class getOrganizations_argsStandardSchemeFactory implements SchemeFactory { + private static class getOrganizations_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getOrganizations_argsStandardScheme getScheme() { return new getOrganizations_argsStandardScheme(); } } - private static class getOrganizations_argsStandardScheme extends StandardScheme { + private static class getOrganizations_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getOrganizations_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -22537,25 +22949,28 @@ public class MasterServer { } - private static class getOrganizations_argsTupleSchemeFactory implements SchemeFactory { + private static class getOrganizations_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getOrganizations_argsTupleScheme getScheme() { return new getOrganizations_argsTupleScheme(); } } - private static class getOrganizations_argsTupleScheme extends TupleScheme { + private static class getOrganizations_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getOrganizations_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getOrganizations_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getOrganizations_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -22564,24 +22979,21 @@ public class MasterServer { 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 SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getOrganizations_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOrganizations_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getOrganizations_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getOrganizations_resultTupleSchemeFactory(); - public List success; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable 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"), SERVER_ERROR((short)1, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -22589,6 +23001,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -22606,21 +23019,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -22629,21 +23043,21 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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)))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrganizations_result.class, metaDataMap); } @@ -22651,7 +23065,7 @@ public class MasterServer { } public getOrganizations_result( - List success, + java.util.List success, TInvocationException serverError) { this(); @@ -22664,7 +23078,7 @@ public class MasterServer { */ public getOrganizations_result(getOrganizations_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (Organization other_element : other.success) { __this__success.add(new Organization(other_element)); } @@ -22689,22 +23103,24 @@ public class MasterServer { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getOrganizations_result setSuccess(List success) { + public getOrganizations_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -22724,11 +23140,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getOrganizations_result setServerError(TInvocationException serverError) { + public getOrganizations_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -22748,13 +23165,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -22769,7 +23186,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -22778,13 +23196,13 @@ public class MasterServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -22793,13 +23211,11 @@ public class MasterServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getOrganizations_result) return this.equals((getOrganizations_result)that); return false; @@ -22808,6 +23224,8 @@ public class MasterServer { public boolean equals(getOrganizations_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -22832,19 +23250,17 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -22855,7 +23271,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -22865,7 +23281,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -22878,21 +23294,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getOrganizations_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getOrganizations_result("); boolean first = true; sb.append("success:"); @@ -22927,7 +23344,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -22935,13 +23352,13 @@ public class MasterServer { } } - private static class getOrganizations_resultStandardSchemeFactory implements SchemeFactory { + private static class getOrganizations_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getOrganizations_resultStandardScheme getScheme() { return new getOrganizations_resultStandardScheme(); } } - private static class getOrganizations_resultStandardScheme extends StandardScheme { + private static class getOrganizations_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getOrganizations_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -22956,14 +23373,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list346 = iprot.readListBegin(); - struct.success = new ArrayList(_list346.size); - Organization _elem347; - for (int _i348 = 0; _i348 < _list346.size; ++_i348) + org.apache.thrift.protocol.TList _list458 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list458.size); + @org.apache.thrift.annotation.Nullable Organization _elem459; + for (int _i460 = 0; _i460 < _list458.size; ++_i460) { - _elem347 = new Organization(); - _elem347.read(iprot); - struct.success.add(_elem347); + _elem459 = new Organization(); + _elem459.read(iprot); + struct.success.add(_elem459); } iprot.readListEnd(); } @@ -23000,9 +23417,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 _iter349 : struct.success) + for (Organization _iter461 : struct.success) { - _iter349.write(oprot); + _iter461.write(oprot); } oprot.writeListEnd(); } @@ -23019,18 +23436,18 @@ public class MasterServer { } - private static class getOrganizations_resultTupleSchemeFactory implements SchemeFactory { + private static class getOrganizations_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getOrganizations_resultTupleScheme getScheme() { return new getOrganizations_resultTupleScheme(); } } - private static class getOrganizations_resultTupleScheme extends TupleScheme { + private static class getOrganizations_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getOrganizations_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -23041,9 +23458,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Organization _iter350 : struct.success) + for (Organization _iter462 : struct.success) { - _iter350.write(oprot); + _iter462.write(oprot); } } } @@ -23054,18 +23471,18 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getOrganizations_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list351.size); - Organization _elem352; - for (int _i353 = 0; _i353 < _list351.size; ++_i353) + org.apache.thrift.protocol.TList _list463 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list463.size); + @org.apache.thrift.annotation.Nullable Organization _elem464; + for (int _i465 = 0; _i465 < _list463.size; ++_i465) { - _elem352 = new Organization(); - _elem352.read(iprot); - struct.success.add(_elem352); + _elem464 = new Organization(); + _elem464.read(iprot); + struct.success.add(_elem464); } } struct.setSuccessIsSet(true); @@ -23078,27 +23495,27 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getOperatingSystems_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOperatingSystems_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getOperatingSystems_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getOperatingSystems_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -23106,6 +23523,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: @@ -23119,21 +23537,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -23142,14 +23561,14 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_args.class, metaDataMap); } @@ -23170,32 +23589,31 @@ public class MasterServer { public void clear() { } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getOperatingSystems_args) return this.equals((getOperatingSystems_args)that); return false; @@ -23204,15 +23622,17 @@ public class MasterServer { public boolean equals(getOperatingSystems_args that) { if (that == null) return false; + if (this == that) + return true; return true; } @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - return list.hashCode(); + return hashCode; } @Override @@ -23226,21 +23646,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getOperatingSystems_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getOperatingSystems_args("); boolean first = true; sb.append(")"); @@ -23260,7 +23681,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -23268,13 +23689,13 @@ public class MasterServer { } } - private static class getOperatingSystems_argsStandardSchemeFactory implements SchemeFactory { + private static class getOperatingSystems_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getOperatingSystems_argsStandardScheme getScheme() { return new getOperatingSystems_argsStandardScheme(); } } - private static class getOperatingSystems_argsStandardScheme extends StandardScheme { + private static class getOperatingSystems_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -23307,25 +23728,28 @@ public class MasterServer { } - private static class getOperatingSystems_argsTupleSchemeFactory implements SchemeFactory { + private static class getOperatingSystems_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getOperatingSystems_argsTupleScheme getScheme() { return new getOperatingSystems_argsTupleScheme(); } } - private static class getOperatingSystems_argsTupleScheme extends TupleScheme { + private static class getOperatingSystems_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getOperatingSystems_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -23334,24 +23758,21 @@ public class MasterServer { 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 SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getOperatingSystems_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOperatingSystems_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getOperatingSystems_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getOperatingSystems_resultTupleSchemeFactory(); - public List success; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable 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"), SERVER_ERROR((short)1, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -23359,6 +23780,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -23376,21 +23798,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -23399,21 +23822,21 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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)))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_result.class, metaDataMap); } @@ -23421,7 +23844,7 @@ public class MasterServer { } public getOperatingSystems_result( - List success, + java.util.List success, TInvocationException serverError) { this(); @@ -23434,7 +23857,7 @@ public class MasterServer { */ public getOperatingSystems_result(getOperatingSystems_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (OperatingSystem other_element : other.success) { __this__success.add(new OperatingSystem(other_element)); } @@ -23459,22 +23882,24 @@ public class MasterServer { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(OperatingSystem elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getOperatingSystems_result setSuccess(List success) { + public getOperatingSystems_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -23494,11 +23919,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getOperatingSystems_result setServerError(TInvocationException serverError) { + public getOperatingSystems_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -23518,13 +23944,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -23539,7 +23965,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -23548,13 +23975,13 @@ public class MasterServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -23563,13 +23990,11 @@ public class MasterServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getOperatingSystems_result) return this.equals((getOperatingSystems_result)that); return false; @@ -23578,6 +24003,8 @@ public class MasterServer { public boolean equals(getOperatingSystems_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -23602,19 +24029,17 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -23625,7 +24050,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -23635,7 +24060,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -23648,21 +24073,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getOperatingSystems_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getOperatingSystems_result("); boolean first = true; sb.append("success:"); @@ -23697,7 +24123,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -23705,13 +24131,13 @@ public class MasterServer { } } - private static class getOperatingSystems_resultStandardSchemeFactory implements SchemeFactory { + private static class getOperatingSystems_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getOperatingSystems_resultStandardScheme getScheme() { return new getOperatingSystems_resultStandardScheme(); } } - private static class getOperatingSystems_resultStandardScheme extends StandardScheme { + private static class getOperatingSystems_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -23726,14 +24152,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list354 = iprot.readListBegin(); - struct.success = new ArrayList(_list354.size); - OperatingSystem _elem355; - for (int _i356 = 0; _i356 < _list354.size; ++_i356) + org.apache.thrift.protocol.TList _list466 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list466.size); + @org.apache.thrift.annotation.Nullable OperatingSystem _elem467; + for (int _i468 = 0; _i468 < _list466.size; ++_i468) { - _elem355 = new OperatingSystem(); - _elem355.read(iprot); - struct.success.add(_elem355); + _elem467 = new OperatingSystem(); + _elem467.read(iprot); + struct.success.add(_elem467); } iprot.readListEnd(); } @@ -23770,9 +24196,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 _iter357 : struct.success) + for (OperatingSystem _iter469 : struct.success) { - _iter357.write(oprot); + _iter469.write(oprot); } oprot.writeListEnd(); } @@ -23789,18 +24215,18 @@ public class MasterServer { } - private static class getOperatingSystems_resultTupleSchemeFactory implements SchemeFactory { + private static class getOperatingSystems_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getOperatingSystems_resultTupleScheme getScheme() { return new getOperatingSystems_resultTupleScheme(); } } - private static class getOperatingSystems_resultTupleScheme extends TupleScheme { + private static class getOperatingSystems_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -23811,9 +24237,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (OperatingSystem _iter358 : struct.success) + for (OperatingSystem _iter470 : struct.success) { - _iter358.write(oprot); + _iter470.write(oprot); } } } @@ -23824,18 +24250,18 @@ public class MasterServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list359.size); - OperatingSystem _elem360; - for (int _i361 = 0; _i361 < _list359.size; ++_i361) + org.apache.thrift.protocol.TList _list471 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list471.size); + @org.apache.thrift.annotation.Nullable OperatingSystem _elem472; + for (int _i473 = 0; _i473 < _list471.size; ++_i473) { - _elem360 = new OperatingSystem(); - _elem360.read(iprot); - struct.success.add(_elem360); + _elem472 = new OperatingSystem(); + _elem472.read(iprot); + struct.success.add(_elem472); } } struct.setSuccessIsSet(true); @@ -23848,27 +24274,27 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 getVirtualizers_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getVirtualizers_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getVirtualizers_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getVirtualizers_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -23876,6 +24302,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: @@ -23889,21 +24316,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -23912,14 +24340,14 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_args.class, metaDataMap); } @@ -23940,32 +24368,31 @@ public class MasterServer { public void clear() { } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getVirtualizers_args) return this.equals((getVirtualizers_args)that); return false; @@ -23974,15 +24401,17 @@ public class MasterServer { public boolean equals(getVirtualizers_args that) { if (that == null) return false; + if (this == that) + return true; return true; } @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - return list.hashCode(); + return hashCode; } @Override @@ -23996,21 +24425,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getVirtualizers_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getVirtualizers_args("); boolean first = true; sb.append(")"); @@ -24030,7 +24460,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -24038,13 +24468,13 @@ public class MasterServer { } } - private static class getVirtualizers_argsStandardSchemeFactory implements SchemeFactory { + private static class getVirtualizers_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVirtualizers_argsStandardScheme getScheme() { return new getVirtualizers_argsStandardScheme(); } } - private static class getVirtualizers_argsStandardScheme extends StandardScheme { + private static class getVirtualizers_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -24077,25 +24507,28 @@ public class MasterServer { } - private static class getVirtualizers_argsTupleSchemeFactory implements SchemeFactory { + private static class getVirtualizers_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVirtualizers_argsTupleScheme getScheme() { return new getVirtualizers_argsTupleScheme(); } } - private static class getVirtualizers_argsTupleScheme extends TupleScheme { + private static class getVirtualizers_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getVirtualizers_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -24104,24 +24537,21 @@ public class MasterServer { 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 SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getVirtualizers_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getVirtualizers_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getVirtualizers_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getVirtualizers_resultTupleSchemeFactory(); - public List success; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable 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"), SERVER_ERROR((short)1, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -24129,6 +24559,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -24146,21 +24577,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -24169,21 +24601,21 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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)))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_result.class, metaDataMap); } @@ -24191,7 +24623,7 @@ public class MasterServer { } public getVirtualizers_result( - List success, + java.util.List success, TInvocationException serverError) { this(); @@ -24204,7 +24636,7 @@ public class MasterServer { */ public getVirtualizers_result(getVirtualizers_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (Virtualizer other_element : other.success) { __this__success.add(new Virtualizer(other_element)); } @@ -24229,22 +24661,24 @@ public class MasterServer { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(Virtualizer elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getVirtualizers_result setSuccess(List success) { + public getVirtualizers_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -24264,11 +24698,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getVirtualizers_result setServerError(TInvocationException serverError) { + public getVirtualizers_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -24288,13 +24723,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -24309,7 +24744,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -24318,13 +24754,13 @@ public class MasterServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -24333,13 +24769,11 @@ public class MasterServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getVirtualizers_result) return this.equals((getVirtualizers_result)that); return false; @@ -24348,6 +24782,8 @@ public class MasterServer { public boolean equals(getVirtualizers_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -24372,19 +24808,17 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -24395,7 +24829,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -24405,7 +24839,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -24418,21 +24852,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getVirtualizers_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getVirtualizers_result("); boolean first = true; sb.append("success:"); @@ -24467,7 +24902,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -24475,13 +24910,13 @@ public class MasterServer { } } - private static class getVirtualizers_resultStandardSchemeFactory implements SchemeFactory { + private static class getVirtualizers_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVirtualizers_resultStandardScheme getScheme() { return new getVirtualizers_resultStandardScheme(); } } - private static class getVirtualizers_resultStandardScheme extends StandardScheme { + private static class getVirtualizers_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -24496,14 +24931,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list362 = iprot.readListBegin(); - struct.success = new ArrayList(_list362.size); - Virtualizer _elem363; - for (int _i364 = 0; _i364 < _list362.size; ++_i364) + org.apache.thrift.protocol.TList _list474 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list474.size); + @org.apache.thrift.annotation.Nullable Virtualizer _elem475; + for (int _i476 = 0; _i476 < _list474.size; ++_i476) { - _elem363 = new Virtualizer(); - _elem363.read(iprot); - struct.success.add(_elem363); + _elem475 = new Virtualizer(); + _elem475.read(iprot); + struct.success.add(_elem475); } iprot.readListEnd(); } @@ -24540,9 +24975,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 _iter365 : struct.success) + for (Virtualizer _iter477 : struct.success) { - _iter365.write(oprot); + _iter477.write(oprot); } oprot.writeListEnd(); } @@ -24559,18 +24994,18 @@ public class MasterServer { } - private static class getVirtualizers_resultTupleSchemeFactory implements SchemeFactory { + private static class getVirtualizers_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVirtualizers_resultTupleScheme getScheme() { return new getVirtualizers_resultTupleScheme(); } } - private static class getVirtualizers_resultTupleScheme extends TupleScheme { + private static class getVirtualizers_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -24581,9 +25016,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Virtualizer _iter366 : struct.success) + for (Virtualizer _iter478 : struct.success) { - _iter366.write(oprot); + _iter478.write(oprot); } } } @@ -24594,18 +25029,18 @@ public class MasterServer { @Override 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(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list367.size); - Virtualizer _elem368; - for (int _i369 = 0; _i369 < _list367.size; ++_i369) + org.apache.thrift.protocol.TList _list479 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list479.size); + @org.apache.thrift.annotation.Nullable Virtualizer _elem480; + for (int _i481 = 0; _i481 < _list479.size; ++_i481) { - _elem368 = new Virtualizer(); - _elem368.read(iprot); - struct.success.add(_elem368); + _elem480 = new Virtualizer(); + _elem480.read(iprot); + struct.success.add(_elem480); } } struct.setSuccessIsSet(true); @@ -24618,6 +25053,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getTags_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -24625,11 +25063,8 @@ public class MasterServer { private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getTags_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTags_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTags_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTags_argsTupleSchemeFactory(); public long startDate; // required @@ -24637,10 +25072,10 @@ public class MasterServer { public enum _Fields implements org.apache.thrift.TFieldIdEnum { START_DATE((short)1, "startDate"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -24648,6 +25083,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // START_DATE @@ -24663,21 +25099,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -24686,7 +25123,7 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -24694,12 +25131,12 @@ public class MasterServer { // isset id assignments private static final int __STARTDATE_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTags_args.class, metaDataMap); } @@ -24743,57 +25180,56 @@ public class MasterServer { } public void unsetStartDate() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STARTDATE_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __STARTDATE_ISSET_ID); } /** Returns true if field startDate is set (has been assigned a value) and false otherwise */ public boolean isSetStartDate() { - return EncodingUtils.testBit(__isset_bitfield, __STARTDATE_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STARTDATE_ISSET_ID); } public void setStartDateIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STARTDATE_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __STARTDATE_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case START_DATE: if (value == null) { unsetStartDate(); } else { - setStartDate((Long)value); + setStartDate((java.lang.Long)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case START_DATE: return getStartDate(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case START_DATE: return isSetStartDate(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getTags_args) return this.equals((getTags_args)that); return false; @@ -24802,6 +25238,8 @@ public class MasterServer { public boolean equals(getTags_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_startDate = true; boolean that_present_startDate = true; @@ -24817,14 +25255,11 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_startDate = true; - list.add(present_startDate); - if (present_startDate) - list.add(startDate); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startDate); - return list.hashCode(); + return hashCode; } @Override @@ -24835,7 +25270,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(other.isSetStartDate()); + lastComparison = java.lang.Boolean.compare(isSetStartDate(), other.isSetStartDate()); if (lastComparison != 0) { return lastComparison; } @@ -24848,21 +25283,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getTags_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTags_args("); boolean first = true; sb.append("startDate:"); @@ -24885,7 +25321,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -24895,13 +25331,13 @@ public class MasterServer { } } - private static class getTags_argsStandardSchemeFactory implements SchemeFactory { + private static class getTags_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTags_argsStandardScheme getScheme() { return new getTags_argsStandardScheme(); } } - private static class getTags_argsStandardScheme extends StandardScheme { + private static class getTags_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTags_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -24945,18 +25381,18 @@ public class MasterServer { } - private static class getTags_argsTupleSchemeFactory implements SchemeFactory { + private static class getTags_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTags_argsTupleScheme getScheme() { return new getTags_argsTupleScheme(); } } - private static class getTags_argsTupleScheme extends TupleScheme { + private static class getTags_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTags_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetStartDate()) { optionals.set(0); } @@ -24968,8 +25404,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTags_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.startDate = iprot.readI64(); struct.setStartDateIsSet(true); @@ -24977,6 +25413,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getTags_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -24985,24 +25424,21 @@ public class MasterServer { 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 SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getTags_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getTags_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTags_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTags_resultTupleSchemeFactory(); - public List success; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable 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"), SERVER_ERROR((short)1, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -25010,6 +25446,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -25027,21 +25464,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -25050,21 +25488,21 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, MasterTag.class)))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTags_result.class, metaDataMap); } @@ -25072,7 +25510,7 @@ public class MasterServer { } public getTags_result( - List success, + java.util.List success, TInvocationException serverError) { this(); @@ -25085,7 +25523,7 @@ public class MasterServer { */ public getTags_result(getTags_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (MasterTag other_element : other.success) { __this__success.add(new MasterTag(other_element)); } @@ -25110,22 +25548,24 @@ public class MasterServer { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(MasterTag elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getTags_result setSuccess(List success) { + public getTags_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -25145,11 +25585,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getTags_result setServerError(TInvocationException serverError) { + public getTags_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -25169,13 +25610,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -25190,7 +25631,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -25199,13 +25641,13 @@ public class MasterServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -25214,13 +25656,11 @@ public class MasterServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getTags_result) return this.equals((getTags_result)that); return false; @@ -25229,6 +25669,8 @@ public class MasterServer { public boolean equals(getTags_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -25253,19 +25695,17 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -25276,7 +25716,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -25286,7 +25726,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -25299,21 +25739,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getTags_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getTags_result("); boolean first = true; sb.append("success:"); @@ -25348,7 +25789,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -25356,13 +25797,13 @@ public class MasterServer { } } - private static class getTags_resultStandardSchemeFactory implements SchemeFactory { + private static class getTags_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTags_resultStandardScheme getScheme() { return new getTags_resultStandardScheme(); } } - private static class getTags_resultStandardScheme extends StandardScheme { + private static class getTags_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getTags_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -25377,14 +25818,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list370 = iprot.readListBegin(); - struct.success = new ArrayList(_list370.size); - MasterTag _elem371; - for (int _i372 = 0; _i372 < _list370.size; ++_i372) + org.apache.thrift.protocol.TList _list482 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list482.size); + @org.apache.thrift.annotation.Nullable MasterTag _elem483; + for (int _i484 = 0; _i484 < _list482.size; ++_i484) { - _elem371 = new MasterTag(); - _elem371.read(iprot); - struct.success.add(_elem371); + _elem483 = new MasterTag(); + _elem483.read(iprot); + struct.success.add(_elem483); } iprot.readListEnd(); } @@ -25421,9 +25862,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 _iter373 : struct.success) + for (MasterTag _iter485 : struct.success) { - _iter373.write(oprot); + _iter485.write(oprot); } oprot.writeListEnd(); } @@ -25440,18 +25881,18 @@ public class MasterServer { } - private static class getTags_resultTupleSchemeFactory implements SchemeFactory { + private static class getTags_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getTags_resultTupleScheme getScheme() { return new getTags_resultTupleScheme(); } } - private static class getTags_resultTupleScheme extends TupleScheme { + private static class getTags_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getTags_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -25462,9 +25903,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (MasterTag _iter374 : struct.success) + for (MasterTag _iter486 : struct.success) { - _iter374.write(oprot); + _iter486.write(oprot); } } } @@ -25475,18 +25916,18 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getTags_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list375.size); - MasterTag _elem376; - for (int _i377 = 0; _i377 < _list375.size; ++_i377) + org.apache.thrift.protocol.TList _list487 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list487.size); + @org.apache.thrift.annotation.Nullable MasterTag _elem488; + for (int _i489 = 0; _i489 < _list487.size; ++_i489) { - _elem376 = new MasterTag(); - _elem376.read(iprot); - struct.success.add(_elem376); + _elem488 = new MasterTag(); + _elem488.read(iprot); + struct.success.add(_elem488); } } struct.setSuccessIsSet(true); @@ -25499,6 +25940,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getSoftware_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -25506,11 +25950,8 @@ public class MasterServer { private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getSoftware_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getSoftware_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getSoftware_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getSoftware_argsTupleSchemeFactory(); public long startDate; // required @@ -25518,10 +25959,10 @@ public class MasterServer { public enum _Fields implements org.apache.thrift.TFieldIdEnum { START_DATE((short)1, "startDate"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -25529,6 +25970,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // START_DATE @@ -25544,21 +25986,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -25567,7 +26010,7 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -25575,12 +26018,12 @@ public class MasterServer { // isset id assignments private static final int __STARTDATE_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSoftware_args.class, metaDataMap); } @@ -25624,57 +26067,56 @@ public class MasterServer { } public void unsetStartDate() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STARTDATE_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __STARTDATE_ISSET_ID); } /** Returns true if field startDate is set (has been assigned a value) and false otherwise */ public boolean isSetStartDate() { - return EncodingUtils.testBit(__isset_bitfield, __STARTDATE_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STARTDATE_ISSET_ID); } public void setStartDateIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STARTDATE_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __STARTDATE_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case START_DATE: if (value == null) { unsetStartDate(); } else { - setStartDate((Long)value); + setStartDate((java.lang.Long)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case START_DATE: return getStartDate(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case START_DATE: return isSetStartDate(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getSoftware_args) return this.equals((getSoftware_args)that); return false; @@ -25683,6 +26125,8 @@ public class MasterServer { public boolean equals(getSoftware_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_startDate = true; boolean that_present_startDate = true; @@ -25698,14 +26142,11 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_startDate = true; - list.add(present_startDate); - if (present_startDate) - list.add(startDate); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startDate); - return list.hashCode(); + return hashCode; } @Override @@ -25716,7 +26157,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(other.isSetStartDate()); + lastComparison = java.lang.Boolean.compare(isSetStartDate(), other.isSetStartDate()); if (lastComparison != 0) { return lastComparison; } @@ -25729,21 +26170,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getSoftware_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getSoftware_args("); boolean first = true; sb.append("startDate:"); @@ -25766,7 +26208,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -25776,13 +26218,13 @@ public class MasterServer { } } - private static class getSoftware_argsStandardSchemeFactory implements SchemeFactory { + private static class getSoftware_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getSoftware_argsStandardScheme getScheme() { return new getSoftware_argsStandardScheme(); } } - private static class getSoftware_argsStandardScheme extends StandardScheme { + private static class getSoftware_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getSoftware_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -25826,18 +26268,18 @@ public class MasterServer { } - private static class getSoftware_argsTupleSchemeFactory implements SchemeFactory { + private static class getSoftware_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getSoftware_argsTupleScheme getScheme() { return new getSoftware_argsTupleScheme(); } } - private static class getSoftware_argsTupleScheme extends TupleScheme { + private static class getSoftware_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getSoftware_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetStartDate()) { optionals.set(0); } @@ -25849,8 +26291,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getSoftware_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.startDate = iprot.readI64(); struct.setStartDateIsSet(true); @@ -25858,6 +26300,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getSoftware_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -25866,24 +26311,21 @@ public class MasterServer { 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 SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getSoftware_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getSoftware_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getSoftware_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getSoftware_resultTupleSchemeFactory(); - public List success; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable 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"), SERVER_ERROR((short)1, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -25891,6 +26333,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -25908,21 +26351,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -25931,21 +26375,21 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, MasterSoftware.class)))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSoftware_result.class, metaDataMap); } @@ -25953,7 +26397,7 @@ public class MasterServer { } public getSoftware_result( - List success, + java.util.List success, TInvocationException serverError) { this(); @@ -25966,7 +26410,7 @@ public class MasterServer { */ public getSoftware_result(getSoftware_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (MasterSoftware other_element : other.success) { __this__success.add(new MasterSoftware(other_element)); } @@ -25991,22 +26435,24 @@ public class MasterServer { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(MasterSoftware elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getSoftware_result setSuccess(List success) { + public getSoftware_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -26026,11 +26472,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getSoftware_result setServerError(TInvocationException serverError) { + public getSoftware_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -26050,13 +26497,13 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -26071,7 +26518,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -26080,13 +26528,13 @@ public class MasterServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -26095,13 +26543,11 @@ public class MasterServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getSoftware_result) return this.equals((getSoftware_result)that); return false; @@ -26110,6 +26556,8 @@ public class MasterServer { public boolean equals(getSoftware_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -26134,19 +26582,17 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -26157,7 +26603,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -26167,7 +26613,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -26180,21 +26626,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getSoftware_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getSoftware_result("); boolean first = true; sb.append("success:"); @@ -26229,7 +26676,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -26237,13 +26684,13 @@ public class MasterServer { } } - private static class getSoftware_resultStandardSchemeFactory implements SchemeFactory { + private static class getSoftware_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getSoftware_resultStandardScheme getScheme() { return new getSoftware_resultStandardScheme(); } } - private static class getSoftware_resultStandardScheme extends StandardScheme { + private static class getSoftware_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getSoftware_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -26258,14 +26705,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list378 = iprot.readListBegin(); - struct.success = new ArrayList(_list378.size); - MasterSoftware _elem379; - for (int _i380 = 0; _i380 < _list378.size; ++_i380) + org.apache.thrift.protocol.TList _list490 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list490.size); + @org.apache.thrift.annotation.Nullable MasterSoftware _elem491; + for (int _i492 = 0; _i492 < _list490.size; ++_i492) { - _elem379 = new MasterSoftware(); - _elem379.read(iprot); - struct.success.add(_elem379); + _elem491 = new MasterSoftware(); + _elem491.read(iprot); + struct.success.add(_elem491); } iprot.readListEnd(); } @@ -26302,9 +26749,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 _iter381 : struct.success) + for (MasterSoftware _iter493 : struct.success) { - _iter381.write(oprot); + _iter493.write(oprot); } oprot.writeListEnd(); } @@ -26321,18 +26768,18 @@ public class MasterServer { } - private static class getSoftware_resultTupleSchemeFactory implements SchemeFactory { + private static class getSoftware_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getSoftware_resultTupleScheme getScheme() { return new getSoftware_resultTupleScheme(); } } - private static class getSoftware_resultTupleScheme extends TupleScheme { + private static class getSoftware_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getSoftware_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -26343,9 +26790,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (MasterSoftware _iter382 : struct.success) + for (MasterSoftware _iter494 : struct.success) { - _iter382.write(oprot); + _iter494.write(oprot); } } } @@ -26356,18 +26803,18 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getSoftware_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list383.size); - MasterSoftware _elem384; - for (int _i385 = 0; _i385 < _list383.size; ++_i385) + org.apache.thrift.protocol.TList _list495 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list495.size); + @org.apache.thrift.annotation.Nullable MasterSoftware _elem496; + for (int _i497 = 0; _i497 < _list495.size; ++_i497) { - _elem384 = new MasterSoftware(); - _elem384.read(iprot); - struct.success.add(_elem384); + _elem496 = new MasterSoftware(); + _elem496.read(iprot); + struct.success.add(_elem496); } } struct.setSuccessIsSet(true); @@ -26380,6 +26827,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class queryUploadStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -26387,22 +26837,19 @@ public class MasterServer { private static final org.apache.thrift.protocol.TField UPLOAD_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("uploadToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new queryUploadStatus_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new queryUploadStatus_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new queryUploadStatus_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new queryUploadStatus_argsTupleSchemeFactory(); - public String uploadToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String uploadToken; // 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 { UPLOAD_TOKEN((short)1, "uploadToken"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -26410,6 +26857,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // UPLOAD_TOKEN @@ -26425,21 +26873,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -26448,18 +26897,18 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.UPLOAD_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("uploadToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryUploadStatus_args.class, metaDataMap); } @@ -26467,7 +26916,7 @@ public class MasterServer { } public queryUploadStatus_args( - String uploadToken) + java.lang.String uploadToken) { this(); this.uploadToken = uploadToken; @@ -26491,11 +26940,12 @@ public class MasterServer { this.uploadToken = null; } - public String getUploadToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUploadToken() { return this.uploadToken; } - public queryUploadStatus_args setUploadToken(String uploadToken) { + public queryUploadStatus_args setUploadToken(@org.apache.thrift.annotation.Nullable java.lang.String uploadToken) { this.uploadToken = uploadToken; return this; } @@ -26515,45 +26965,44 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case UPLOAD_TOKEN: if (value == null) { unsetUploadToken(); } else { - setUploadToken((String)value); + setUploadToken((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case UPLOAD_TOKEN: return getUploadToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case UPLOAD_TOKEN: return isSetUploadToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof queryUploadStatus_args) return this.equals((queryUploadStatus_args)that); return false; @@ -26562,6 +27011,8 @@ public class MasterServer { public boolean equals(queryUploadStatus_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_uploadToken = true && this.isSetUploadToken(); boolean that_present_uploadToken = true && that.isSetUploadToken(); @@ -26577,14 +27028,13 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_uploadToken = true && (isSetUploadToken()); - list.add(present_uploadToken); - if (present_uploadToken) - list.add(uploadToken); + hashCode = hashCode * 8191 + ((isSetUploadToken()) ? 131071 : 524287); + if (isSetUploadToken()) + hashCode = hashCode * 8191 + uploadToken.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -26595,7 +27045,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUploadToken()).compareTo(other.isSetUploadToken()); + lastComparison = java.lang.Boolean.compare(isSetUploadToken(), other.isSetUploadToken()); if (lastComparison != 0) { return lastComparison; } @@ -26608,21 +27058,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("queryUploadStatus_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("queryUploadStatus_args("); boolean first = true; sb.append("uploadToken:"); @@ -26649,7 +27100,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -26657,13 +27108,13 @@ public class MasterServer { } } - private static class queryUploadStatus_argsStandardSchemeFactory implements SchemeFactory { + private static class queryUploadStatus_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public queryUploadStatus_argsStandardScheme getScheme() { return new queryUploadStatus_argsStandardScheme(); } } - private static class queryUploadStatus_argsStandardScheme extends StandardScheme { + private static class queryUploadStatus_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, queryUploadStatus_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -26709,18 +27160,18 @@ public class MasterServer { } - private static class queryUploadStatus_argsTupleSchemeFactory implements SchemeFactory { + private static class queryUploadStatus_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public queryUploadStatus_argsTupleScheme getScheme() { return new queryUploadStatus_argsTupleScheme(); } } - private static class queryUploadStatus_argsTupleScheme extends TupleScheme { + private static class queryUploadStatus_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUploadToken()) { optionals.set(0); } @@ -26732,8 +27183,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.uploadToken = iprot.readString(); struct.setUploadTokenIsSet(true); @@ -26741,6 +27192,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class queryUploadStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -26749,24 +27203,21 @@ public class MasterServer { 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 EX1_FIELD_DESC = new org.apache.thrift.protocol.TField("ex1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new queryUploadStatus_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new queryUploadStatus_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new queryUploadStatus_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new queryUploadStatus_resultTupleSchemeFactory(); - public TransferStatus success; // required - public TInvalidTokenException ex1; // required + public @org.apache.thrift.annotation.Nullable TransferStatus success; // required + public @org.apache.thrift.annotation.Nullable TInvalidTokenException ex1; // 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"), EX1((short)1, "ex1"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -26774,6 +27225,7 @@ public class MasterServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -26791,21 +27243,22 @@ public class MasterServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -26814,20 +27267,20 @@ public class MasterServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, TransferStatus.class))); tmpMap.put(_Fields.EX1, new org.apache.thrift.meta_data.FieldMetaData("ex1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidTokenException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryUploadStatus_result.class, metaDataMap); } @@ -26865,11 +27318,12 @@ public class MasterServer { this.ex1 = null; } + @org.apache.thrift.annotation.Nullable public TransferStatus getSuccess() { return this.success; } - public queryUploadStatus_result setSuccess(TransferStatus success) { + public queryUploadStatus_result setSuccess(@org.apache.thrift.annotation.Nullable TransferStatus success) { this.success = success; return this; } @@ -26889,11 +27343,12 @@ public class MasterServer { } } + @org.apache.thrift.annotation.Nullable public TInvalidTokenException getEx1() { return this.ex1; } - public queryUploadStatus_result setEx1(TInvalidTokenException ex1) { + public queryUploadStatus_result setEx1(@org.apache.thrift.annotation.Nullable TInvalidTokenException ex1) { this.ex1 = ex1; return this; } @@ -26913,7 +27368,7 @@ public class MasterServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -26934,7 +27389,8 @@ public class MasterServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -26943,13 +27399,13 @@ public class MasterServer { return getEx1(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -26958,13 +27414,11 @@ public class MasterServer { case EX1: return isSetEx1(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof queryUploadStatus_result) return this.equals((queryUploadStatus_result)that); return false; @@ -26973,6 +27427,8 @@ public class MasterServer { public boolean equals(queryUploadStatus_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -26997,19 +27453,17 @@ public class MasterServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_ex1 = true && (isSetEx1()); - list.add(present_ex1); - if (present_ex1) - list.add(ex1); + hashCode = hashCode * 8191 + ((isSetEx1()) ? 131071 : 524287); + if (isSetEx1()) + hashCode = hashCode * 8191 + ex1.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -27020,7 +27474,7 @@ public class MasterServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -27030,7 +27484,7 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx1()).compareTo(other.isSetEx1()); + lastComparison = java.lang.Boolean.compare(isSetEx1(), other.isSetEx1()); if (lastComparison != 0) { return lastComparison; } @@ -27043,21 +27497,22 @@ public class MasterServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("queryUploadStatus_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("queryUploadStatus_result("); boolean first = true; sb.append("success:"); @@ -27095,7 +27550,7 @@ public class MasterServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -27103,13 +27558,13 @@ public class MasterServer { } } - private static class queryUploadStatus_resultStandardSchemeFactory implements SchemeFactory { + private static class queryUploadStatus_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public queryUploadStatus_resultStandardScheme getScheme() { return new queryUploadStatus_resultStandardScheme(); } } - private static class queryUploadStatus_resultStandardScheme extends StandardScheme { + private static class queryUploadStatus_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, queryUploadStatus_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -27170,18 +27625,18 @@ public class MasterServer { } - private static class queryUploadStatus_resultTupleSchemeFactory implements SchemeFactory { + private static class queryUploadStatus_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public queryUploadStatus_resultTupleScheme getScheme() { return new queryUploadStatus_resultTupleScheme(); } } - private static class queryUploadStatus_resultTupleScheme extends TupleScheme { + private static class queryUploadStatus_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -27199,8 +27654,8 @@ public class MasterServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new TransferStatus(); struct.success.read(iprot); @@ -27214,6 +27669,9 @@ public class MasterServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/MasterSoftware.java b/src/main/java/org/openslx/bwlp/thrift/iface/MasterSoftware.java index 8eb8c49..87824cd 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/MasterSoftware.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/MasterSoftware.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class MasterSoftware 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("MasterSoftware"); @@ -42,13 +15,10 @@ public class MasterSoftware implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new MasterSoftwareStandardSchemeFactory()); - schemes.put(TupleScheme.class, new MasterSoftwareTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new MasterSoftwareStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new MasterSoftwareTupleSchemeFactory(); - public String software; // required + public @org.apache.thrift.annotation.Nullable java.lang.String software; // required public boolean isRestricted; // required public long createTime; // required @@ -58,10 +28,10 @@ public class MasterSoftware implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class MasterSoftware implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SOFTWARE, new org.apache.thrift.meta_data.FieldMetaData("software", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.IS_RESTRICTED, new org.apache.thrift.meta_data.FieldMetaData("isRestricted", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); 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"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(MasterSoftware.class, metaDataMap); } @@ -137,7 +109,7 @@ public class MasterSoftware implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_software = true && (isSetSoftware()); - list.add(present_software); - if (present_software) - list.add(software); + hashCode = hashCode * 8191 + ((isSetSoftware()) ? 131071 : 524287); + if (isSetSoftware()) + hashCode = hashCode * 8191 + software.hashCode(); - boolean present_isRestricted = true; - list.add(present_isRestricted); - if (present_isRestricted) - list.add(isRestricted); + hashCode = hashCode * 8191 + ((isRestricted) ? 131071 : 524287); - boolean present_createTime = true; - list.add(present_createTime); - if (present_createTime) - list.add(createTime); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(createTime); - return list.hashCode(); + return hashCode; } @Override @@ -378,7 +345,7 @@ public class MasterSoftware implements org.apache.thrift.TBase { + private static class MasterSoftwareStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, MasterSoftware struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -544,18 +512,18 @@ public class MasterSoftware implements org.apache.thrift.TBase { + private static class MasterSoftwareTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, MasterSoftware struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSoftware()) { optionals.set(0); } @@ -579,8 +547,8 @@ public class MasterSoftware implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/MasterTag.java b/src/main/java/org/openslx/bwlp/thrift/iface/MasterTag.java index 962550b..ffcf8a7 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/MasterTag.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/MasterTag.java @@ -1,53 +1,23 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class MasterTag 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("MasterTag"); private static final org.apache.thrift.protocol.TField TAG_FIELD_DESC = new org.apache.thrift.protocol.TField("tag", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("createTime", org.apache.thrift.protocol.TType.I64, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new MasterTagStandardSchemeFactory()); - schemes.put(TupleScheme.class, new MasterTagTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new MasterTagStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new MasterTagTupleSchemeFactory(); - public String tag; // required + public @org.apache.thrift.annotation.Nullable java.lang.String tag; // required public long createTime; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -55,10 +25,10 @@ public class MasterTag implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -66,6 +36,7 @@ public class MasterTag implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TAG, new org.apache.thrift.meta_data.FieldMetaData("tag", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); 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"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(MasterTag.class, metaDataMap); } @@ -129,7 +101,7 @@ public class MasterTag implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_tag = true && (isSetTag()); - list.add(present_tag); - if (present_tag) - list.add(tag); + hashCode = hashCode * 8191 + ((isSetTag()) ? 131071 : 524287); + if (isSetTag()) + hashCode = hashCode * 8191 + tag.hashCode(); - boolean present_createTime = true; - list.add(present_createTime); - if (present_createTime) - list.add(createTime); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(createTime); - return list.hashCode(); + return hashCode; } @Override @@ -314,7 +284,7 @@ public class MasterTag implements org.apache.thrift.TBase { + private static class MasterTagStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, MasterTag struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -455,18 +426,18 @@ public class MasterTag implements org.apache.thrift.TBase { + private static class MasterTagTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, MasterTag struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTag()) { optionals.set(0); } @@ -484,8 +455,8 @@ public class MasterTag implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/NetDirection.java b/src/main/java/org/openslx/bwlp/thrift/iface/NetDirection.java index ae22bfa..e777d20 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/NetDirection.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/NetDirection.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,10 +7,7 @@ package org.openslx.bwlp.thrift.iface; -import java.util.Map; -import java.util.HashMap; -import org.apache.thrift.TEnum; - +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public enum NetDirection implements org.apache.thrift.TEnum { IN(0), OUT(1); @@ -32,6 +29,7 @@ public enum NetDirection implements org.apache.thrift.TEnum { * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ + @org.apache.thrift.annotation.Nullable public static NetDirection findByValue(int value) { switch (value) { case 0: diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/NetRule.java b/src/main/java/org/openslx/bwlp/thrift/iface/NetRule.java index abc7486..ac82656 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/NetRule.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/NetRule.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-02-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class NetRule 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("NetRule"); @@ -42,18 +15,15 @@ public class NetRule implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new NetRuleStandardSchemeFactory()); - schemes.put(TupleScheme.class, new NetRuleTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new NetRuleStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new NetRuleTupleSchemeFactory(); /** * * @see NetDirection */ - public NetDirection direction; // required - public String host; // required + public @org.apache.thrift.annotation.Nullable NetDirection direction; // required + public @org.apache.thrift.annotation.Nullable java.lang.String host; // required public int port; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -66,10 +36,10 @@ public class NetRule implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -77,6 +47,7 @@ public class NetRule implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.DIRECTION, new org.apache.thrift.meta_data.FieldMetaData("direction", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, NetDirection.class))); tmpMap.put(_Fields.HOST, new org.apache.thrift.meta_data.FieldMetaData("host", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PORT, new org.apache.thrift.meta_data.FieldMetaData("port", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(NetRule.class, metaDataMap); } @@ -145,7 +117,7 @@ public class NetRule implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_direction = true && (isSetDirection()); - list.add(present_direction); - if (present_direction) - list.add(direction.getValue()); + hashCode = hashCode * 8191 + ((isSetDirection()) ? 131071 : 524287); + if (isSetDirection()) + hashCode = hashCode * 8191 + direction.getValue(); - boolean present_host = true && (isSetHost()); - list.add(present_host); - if (present_host) - list.add(host); + hashCode = hashCode * 8191 + ((isSetHost()) ? 131071 : 524287); + if (isSetHost()) + hashCode = hashCode * 8191 + host.hashCode(); - boolean present_port = true; - list.add(present_port); - if (present_port) - list.add(port); + hashCode = hashCode * 8191 + port; - return list.hashCode(); + return hashCode; } @Override @@ -394,7 +364,7 @@ public class NetRule implements org.apache.thrift.TBase { + private static class NetRuleStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, NetRule struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -566,18 +537,18 @@ public class NetRule implements org.apache.thrift.TBase { + private static class NetRuleTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, NetRule struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetDirection()) { optionals.set(0); } @@ -601,8 +572,8 @@ public class NetRule implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java b/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java index df1d0c4..19205a0 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/NetShare.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-11-23") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class NetShare 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("NetShare"); @@ -46,22 +19,19 @@ public class NetShare implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new NetShareStandardSchemeFactory()); - schemes.put(TupleScheme.class, new NetShareTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new NetShareStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new NetShareTupleSchemeFactory(); /** * * @see NetShareAuth */ - public NetShareAuth auth; // required - public String path; // required - public String displayname; // optional - public String mountpoint; // optional - public String username; // optional - public String password; // optional + public @org.apache.thrift.annotation.Nullable NetShareAuth auth; // required + public @org.apache.thrift.annotation.Nullable java.lang.String path; // required + public @org.apache.thrift.annotation.Nullable java.lang.String displayname; // optional + public @org.apache.thrift.annotation.Nullable java.lang.String mountpoint; // optional + public @org.apache.thrift.annotation.Nullable java.lang.String username; // optional + public @org.apache.thrift.annotation.Nullable java.lang.String password; // optional public int shareId; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -78,10 +48,10 @@ public class NetShare implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -89,6 +59,7 @@ public class NetShare implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.AUTH, new org.apache.thrift.meta_data.FieldMetaData("auth", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, NetShareAuth.class))); tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -165,7 +137,7 @@ public class NetShare implements org.apache.thrift.TBase list = new ArrayList(); - - boolean present_auth = true && (isSetAuth()); - list.add(present_auth); - if (present_auth) - list.add(auth.getValue()); - - boolean present_path = true && (isSetPath()); - list.add(present_path); - if (present_path) - list.add(path); - - boolean present_displayname = true && (isSetDisplayname()); - list.add(present_displayname); - if (present_displayname) - list.add(displayname); - - boolean present_mountpoint = true && (isSetMountpoint()); - list.add(present_mountpoint); - if (present_mountpoint) - list.add(mountpoint); - - boolean present_username = true && (isSetUsername()); - list.add(present_username); - if (present_username) - list.add(username); - - boolean present_password = true && (isSetPassword()); - list.add(present_password); - if (present_password) - list.add(password); - - boolean present_shareId = true && (isSetShareId()); - list.add(present_shareId); - if (present_shareId) - list.add(shareId); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetAuth()) ? 131071 : 524287); + if (isSetAuth()) + hashCode = hashCode * 8191 + auth.getValue(); + + hashCode = hashCode * 8191 + ((isSetPath()) ? 131071 : 524287); + if (isSetPath()) + hashCode = hashCode * 8191 + path.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDisplayname()) ? 131071 : 524287); + if (isSetDisplayname()) + hashCode = hashCode * 8191 + displayname.hashCode(); + + hashCode = hashCode * 8191 + ((isSetMountpoint()) ? 131071 : 524287); + if (isSetMountpoint()) + hashCode = hashCode * 8191 + mountpoint.hashCode(); + + hashCode = hashCode * 8191 + ((isSetUsername()) ? 131071 : 524287); + if (isSetUsername()) + hashCode = hashCode * 8191 + username.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPassword()) ? 131071 : 524287); + if (isSetPassword()) + hashCode = hashCode * 8191 + password.hashCode(); + + hashCode = hashCode * 8191 + ((isSetShareId()) ? 131071 : 524287); + if (isSetShareId()) + hashCode = hashCode * 8191 + shareId; + + return hashCode; } @Override @@ -640,7 +612,7 @@ public class NetShare implements org.apache.thrift.TBase { + private static class NetShareStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, NetShare struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -956,18 +929,18 @@ public class NetShare implements org.apache.thrift.TBase { + private static class NetShareTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, NetShare struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuth()) { optionals.set(0); } @@ -1015,8 +988,8 @@ public class NetShare implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/NetShareAuth.java b/src/main/java/org/openslx/bwlp/thrift/iface/NetShareAuth.java index cc7b4e9..636b448 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/NetShareAuth.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/NetShareAuth.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,10 +7,7 @@ package org.openslx.bwlp.thrift.iface; -import java.util.Map; -import java.util.HashMap; -import org.apache.thrift.TEnum; - +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public enum NetShareAuth implements org.apache.thrift.TEnum { LOGIN_USER(0), OTHER_USER(1); @@ -32,6 +29,7 @@ public enum NetShareAuth implements org.apache.thrift.TEnum { * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ + @org.apache.thrift.annotation.Nullable public static NetShareAuth findByValue(int value) { switch (value) { case 0: diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/OperatingSystem.java b/src/main/java/org/openslx/bwlp/thrift/iface/OperatingSystem.java index 364ad03..fc1e577 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/OperatingSystem.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/OperatingSystem.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class OperatingSystem 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("OperatingSystem"); @@ -45,16 +18,13 @@ public class OperatingSystem implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new OperatingSystemStandardSchemeFactory()); - schemes.put(TupleScheme.class, new OperatingSystemTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new OperatingSystemStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new OperatingSystemTupleSchemeFactory(); public int osId; // required - public String osName; // required - public Map virtualizerOsId; // required - public String architecture; // required + public @org.apache.thrift.annotation.Nullable java.lang.String osName; // required + public @org.apache.thrift.annotation.Nullable java.util.Map virtualizerOsId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String architecture; // required public int maxMemMb; // required public int maxCores; // required @@ -67,10 +37,10 @@ public class OperatingSystem implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -78,6 +48,7 @@ public class OperatingSystem implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.OS_NAME, new org.apache.thrift.meta_data.FieldMetaData("osName", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -153,7 +125,7 @@ public class OperatingSystem implements org.apache.thrift.TBase virtualizerOsId, - String architecture, + java.lang.String osName, + java.util.Map virtualizerOsId, + java.lang.String architecture, int maxMemMb, int maxCores) { @@ -190,7 +162,7 @@ public class OperatingSystem implements org.apache.thrift.TBase __this__virtualizerOsId = new HashMap(other.virtualizerOsId); + java.util.Map __this__virtualizerOsId = new java.util.HashMap(other.virtualizerOsId); this.virtualizerOsId = __this__virtualizerOsId; } if (other.isSetArchitecture()) { @@ -228,23 +200,24 @@ public class OperatingSystem implements org.apache.thrift.TBase(); + this.virtualizerOsId = new java.util.HashMap(); } this.virtualizerOsId.put(key, val); } - public Map getVirtualizerOsId() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getVirtualizerOsId() { return this.virtualizerOsId; } - public OperatingSystem setVirtualizerOsId(Map virtualizerOsId) { + public OperatingSystem setVirtualizerOsId(@org.apache.thrift.annotation.Nullable java.util.Map virtualizerOsId) { this.virtualizerOsId = virtualizerOsId; return this; } @@ -299,11 +273,12 @@ public class OperatingSystem implements org.apache.thrift.TBase)value); + setVirtualizerOsId((java.util.Map)value); } break; @@ -399,7 +374,7 @@ public class OperatingSystem implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_osId = true; - list.add(present_osId); - if (present_osId) - list.add(osId); + hashCode = hashCode * 8191 + osId; - boolean present_osName = true && (isSetOsName()); - list.add(present_osName); - if (present_osName) - list.add(osName); + hashCode = hashCode * 8191 + ((isSetOsName()) ? 131071 : 524287); + if (isSetOsName()) + hashCode = hashCode * 8191 + osName.hashCode(); - boolean present_virtualizerOsId = true && (isSetVirtualizerOsId()); - list.add(present_virtualizerOsId); - if (present_virtualizerOsId) - list.add(virtualizerOsId); + hashCode = hashCode * 8191 + ((isSetVirtualizerOsId()) ? 131071 : 524287); + if (isSetVirtualizerOsId()) + hashCode = hashCode * 8191 + virtualizerOsId.hashCode(); - boolean present_architecture = true && (isSetArchitecture()); - list.add(present_architecture); - if (present_architecture) - list.add(architecture); + hashCode = hashCode * 8191 + ((isSetArchitecture()) ? 131071 : 524287); + if (isSetArchitecture()) + hashCode = hashCode * 8191 + architecture.hashCode(); - boolean present_maxMemMb = true; - list.add(present_maxMemMb); - if (present_maxMemMb) - list.add(maxMemMb); + hashCode = hashCode * 8191 + maxMemMb; - boolean present_maxCores = true; - list.add(present_maxCores); - if (present_maxCores) - list.add(maxCores); + hashCode = hashCode * 8191 + maxCores; - return list.hashCode(); + return hashCode; } @Override @@ -584,7 +548,7 @@ public class OperatingSystem implements org.apache.thrift.TBase { + private static class OperatingSystemStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, OperatingSystem struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -764,9 +729,9 @@ public class OperatingSystem implements org.apache.thrift.TBase(2*_map24.size); - String _key25; - String _val26; + struct.virtualizerOsId = new java.util.HashMap(2*_map24.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key25; + @org.apache.thrift.annotation.Nullable java.lang.String _val26; for (int _i27 = 0; _i27 < _map24.size; ++_i27) { _key25 = iprot.readString(); @@ -831,7 +796,7 @@ public class OperatingSystem implements org.apache.thrift.TBase _iter28 : struct.virtualizerOsId.entrySet()) + for (java.util.Map.Entry _iter28 : struct.virtualizerOsId.entrySet()) { oprot.writeString(_iter28.getKey()); oprot.writeString(_iter28.getValue()); @@ -857,18 +822,18 @@ public class OperatingSystem implements org.apache.thrift.TBase { + private static class OperatingSystemTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, OperatingSystem struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetOsId()) { optionals.set(0); } @@ -897,7 +862,7 @@ public class OperatingSystem implements org.apache.thrift.TBase _iter29 : struct.virtualizerOsId.entrySet()) + for (java.util.Map.Entry _iter29 : struct.virtualizerOsId.entrySet()) { oprot.writeString(_iter29.getKey()); oprot.writeString(_iter29.getValue()); @@ -917,8 +882,8 @@ public class OperatingSystem implements org.apache.thrift.TBase(2*_map30.size); - String _key31; - String _val32; + org.apache.thrift.protocol.TMap _map30 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING); + struct.virtualizerOsId = new java.util.HashMap(2*_map30.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key31; + @org.apache.thrift.annotation.Nullable java.lang.String _val32; for (int _i33 = 0; _i33 < _map30.size; ++_i33) { _key31 = iprot.readString(); @@ -957,5 +922,8 @@ public class OperatingSystem implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/Organization.java b/src/main/java/org/openslx/bwlp/thrift/iface/Organization.java index 2021634..b9b8b50 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/Organization.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/Organization.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class Organization 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("Organization"); @@ -43,16 +16,13 @@ public class Organization implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new OrganizationStandardSchemeFactory()); - schemes.put(TupleScheme.class, new OrganizationTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new OrganizationStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new OrganizationTupleSchemeFactory(); - public String organizationId; // required - public String displayName; // required - public String ecpUrl; // required - public List suffixList; // required + public @org.apache.thrift.annotation.Nullable java.lang.String organizationId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String displayName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String ecpUrl; // required + public @org.apache.thrift.annotation.Nullable java.util.List suffixList; // 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 { @@ -61,10 +31,10 @@ public class Organization implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -72,6 +42,7 @@ public class Organization implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ORGANIZATION_ID, new org.apache.thrift.meta_data.FieldMetaData("organizationId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -134,7 +106,7 @@ public class Organization implements org.apache.thrift.TBase suffixList) + java.lang.String organizationId, + java.lang.String displayName, + java.lang.String ecpUrl, + java.util.List suffixList) { this(); this.organizationId = organizationId; @@ -168,7 +140,7 @@ public class Organization implements org.apache.thrift.TBase __this__suffixList = new ArrayList(other.suffixList); + java.util.List __this__suffixList = new java.util.ArrayList(other.suffixList); this.suffixList = __this__suffixList; } } @@ -185,11 +157,12 @@ public class Organization implements org.apache.thrift.TBase getSuffixListIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getSuffixListIterator() { return (this.suffixList == null) ? null : this.suffixList.iterator(); } - public void addToSuffixList(String elem) { + public void addToSuffixList(java.lang.String elem) { if (this.suffixList == null) { - this.suffixList = new ArrayList(); + this.suffixList = new java.util.ArrayList(); } this.suffixList.add(elem); } - public List getSuffixList() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuffixList() { return this.suffixList; } - public Organization setSuffixList(List suffixList) { + public Organization setSuffixList(@org.apache.thrift.annotation.Nullable java.util.List suffixList) { this.suffixList = suffixList; return this; } @@ -296,13 +273,13 @@ public class Organization implements org.apache.thrift.TBase)value); + setSuffixList((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case ORGANIZATION_ID: return getOrganizationId(); @@ -348,13 +326,13 @@ public class Organization implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_organizationId = true && (isSetOrganizationId()); - list.add(present_organizationId); - if (present_organizationId) - list.add(organizationId); + hashCode = hashCode * 8191 + ((isSetOrganizationId()) ? 131071 : 524287); + if (isSetOrganizationId()) + hashCode = hashCode * 8191 + organizationId.hashCode(); - boolean present_displayName = true && (isSetDisplayName()); - list.add(present_displayName); - if (present_displayName) - list.add(displayName); + hashCode = hashCode * 8191 + ((isSetDisplayName()) ? 131071 : 524287); + if (isSetDisplayName()) + hashCode = hashCode * 8191 + displayName.hashCode(); - boolean present_ecpUrl = true && (isSetEcpUrl()); - list.add(present_ecpUrl); - if (present_ecpUrl) - list.add(ecpUrl); + hashCode = hashCode * 8191 + ((isSetEcpUrl()) ? 131071 : 524287); + if (isSetEcpUrl()) + hashCode = hashCode * 8191 + ecpUrl.hashCode(); - boolean present_suffixList = true && (isSetSuffixList()); - list.add(present_suffixList); - if (present_suffixList) - list.add(suffixList); + hashCode = hashCode * 8191 + ((isSetSuffixList()) ? 131071 : 524287); + if (isSetSuffixList()) + hashCode = hashCode * 8191 + suffixList.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -457,7 +431,7 @@ public class Organization implements org.apache.thrift.TBase { + private static class OrganizationStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, Organization struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -619,8 +594,8 @@ public class Organization implements org.apache.thrift.TBase(_list0.size); - String _elem1; + struct.suffixList = new java.util.ArrayList(_list0.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem1; for (int _i2 = 0; _i2 < _list0.size; ++_i2) { _elem1 = iprot.readString(); @@ -667,7 +642,7 @@ public class Organization implements org.apache.thrift.TBase { + private static class OrganizationTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, Organization struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetOrganizationId()) { optionals.set(0); } @@ -718,7 +693,7 @@ public class Organization implements org.apache.thrift.TBase(_list5.size); - String _elem6; + org.apache.thrift.protocol.TList _list5 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.suffixList = new java.util.ArrayList(_list5.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem6; for (int _i7 = 0; _i7 < _list5.size; ++_i7) { _elem6 = iprot.readString(); @@ -758,5 +733,8 @@ public class Organization implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java b/src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java index 4032b4e..afdf0b0 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/PredefinedData.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-02-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class PredefinedData 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("PredefinedData"); @@ -43,16 +16,13 @@ public class PredefinedData implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new PredefinedDataStandardSchemeFactory()); - schemes.put(TupleScheme.class, new PredefinedDataTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new PredefinedDataStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new PredefinedDataTupleSchemeFactory(); - public List netShares; // required - public List ldapFilter; // required - public List runScripts; // required - public List networkExceptions; // required + public @org.apache.thrift.annotation.Nullable java.util.List netShares; // required + public @org.apache.thrift.annotation.Nullable java.util.List ldapFilter; // required + public @org.apache.thrift.annotation.Nullable java.util.List runScripts; // required + public @org.apache.thrift.annotation.Nullable java.util.List networkExceptions; // 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 { @@ -61,10 +31,10 @@ public class PredefinedData implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -72,6 +42,7 @@ public class PredefinedData implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.NET_SHARES, new org.apache.thrift.meta_data.FieldMetaData("netShares", 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, NetShare.class)))); @@ -137,7 +109,7 @@ public class PredefinedData implements org.apache.thrift.TBase netShares, - List ldapFilter, - List runScripts, - List networkExceptions) + java.util.List netShares, + java.util.List ldapFilter, + java.util.List runScripts, + java.util.List networkExceptions) { this(); this.netShares = netShares; @@ -162,28 +134,28 @@ public class PredefinedData implements org.apache.thrift.TBase __this__netShares = new ArrayList(other.netShares.size()); + java.util.List __this__netShares = new java.util.ArrayList(other.netShares.size()); for (NetShare other_element : other.netShares) { __this__netShares.add(new NetShare(other_element)); } this.netShares = __this__netShares; } if (other.isSetLdapFilter()) { - List __this__ldapFilter = new ArrayList(other.ldapFilter.size()); + java.util.List __this__ldapFilter = new java.util.ArrayList(other.ldapFilter.size()); for (LdapFilter other_element : other.ldapFilter) { __this__ldapFilter.add(new LdapFilter(other_element)); } this.ldapFilter = __this__ldapFilter; } if (other.isSetRunScripts()) { - List __this__runScripts = new ArrayList(other.runScripts.size()); + java.util.List __this__runScripts = new java.util.ArrayList(other.runScripts.size()); for (PresetRunScript other_element : other.runScripts) { __this__runScripts.add(new PresetRunScript(other_element)); } this.runScripts = __this__runScripts; } if (other.isSetNetworkExceptions()) { - List __this__networkExceptions = new ArrayList(other.networkExceptions.size()); + java.util.List __this__networkExceptions = new java.util.ArrayList(other.networkExceptions.size()); for (PresetNetRule other_element : other.networkExceptions) { __this__networkExceptions.add(new PresetNetRule(other_element)); } @@ -207,22 +179,24 @@ public class PredefinedData implements org.apache.thrift.TBase getNetSharesIterator() { return (this.netShares == null) ? null : this.netShares.iterator(); } public void addToNetShares(NetShare elem) { if (this.netShares == null) { - this.netShares = new ArrayList(); + this.netShares = new java.util.ArrayList(); } this.netShares.add(elem); } - public List getNetShares() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNetShares() { return this.netShares; } - public PredefinedData setNetShares(List netShares) { + public PredefinedData setNetShares(@org.apache.thrift.annotation.Nullable java.util.List netShares) { this.netShares = netShares; return this; } @@ -246,22 +220,24 @@ public class PredefinedData implements org.apache.thrift.TBase getLdapFilterIterator() { return (this.ldapFilter == null) ? null : this.ldapFilter.iterator(); } public void addToLdapFilter(LdapFilter elem) { if (this.ldapFilter == null) { - this.ldapFilter = new ArrayList(); + this.ldapFilter = new java.util.ArrayList(); } this.ldapFilter.add(elem); } - public List getLdapFilter() { + @org.apache.thrift.annotation.Nullable + public java.util.List getLdapFilter() { return this.ldapFilter; } - public PredefinedData setLdapFilter(List ldapFilter) { + public PredefinedData setLdapFilter(@org.apache.thrift.annotation.Nullable java.util.List ldapFilter) { this.ldapFilter = ldapFilter; return this; } @@ -285,22 +261,24 @@ public class PredefinedData implements org.apache.thrift.TBase getRunScriptsIterator() { return (this.runScripts == null) ? null : this.runScripts.iterator(); } public void addToRunScripts(PresetRunScript elem) { if (this.runScripts == null) { - this.runScripts = new ArrayList(); + this.runScripts = new java.util.ArrayList(); } this.runScripts.add(elem); } - public List getRunScripts() { + @org.apache.thrift.annotation.Nullable + public java.util.List getRunScripts() { return this.runScripts; } - public PredefinedData setRunScripts(List runScripts) { + public PredefinedData setRunScripts(@org.apache.thrift.annotation.Nullable java.util.List runScripts) { this.runScripts = runScripts; return this; } @@ -324,22 +302,24 @@ public class PredefinedData implements org.apache.thrift.TBase getNetworkExceptionsIterator() { return (this.networkExceptions == null) ? null : this.networkExceptions.iterator(); } public void addToNetworkExceptions(PresetNetRule elem) { if (this.networkExceptions == null) { - this.networkExceptions = new ArrayList(); + this.networkExceptions = new java.util.ArrayList(); } this.networkExceptions.add(elem); } - public List getNetworkExceptions() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNetworkExceptions() { return this.networkExceptions; } - public PredefinedData setNetworkExceptions(List networkExceptions) { + public PredefinedData setNetworkExceptions(@org.apache.thrift.annotation.Nullable java.util.List networkExceptions) { this.networkExceptions = networkExceptions; return this; } @@ -359,13 +339,13 @@ public class PredefinedData implements org.apache.thrift.TBase)value); + setNetShares((java.util.List)value); } break; @@ -373,7 +353,7 @@ public class PredefinedData implements org.apache.thrift.TBase)value); + setLdapFilter((java.util.List)value); } break; @@ -381,7 +361,7 @@ public class PredefinedData implements org.apache.thrift.TBase)value); + setRunScripts((java.util.List)value); } break; @@ -389,14 +369,15 @@ public class PredefinedData implements org.apache.thrift.TBase)value); + setNetworkExceptions((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case NET_SHARES: return getNetShares(); @@ -411,13 +392,13 @@ public class PredefinedData implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_netShares = true && (isSetNetShares()); - list.add(present_netShares); - if (present_netShares) - list.add(netShares); + hashCode = hashCode * 8191 + ((isSetNetShares()) ? 131071 : 524287); + if (isSetNetShares()) + hashCode = hashCode * 8191 + netShares.hashCode(); - boolean present_ldapFilter = true && (isSetLdapFilter()); - list.add(present_ldapFilter); - if (present_ldapFilter) - list.add(ldapFilter); + hashCode = hashCode * 8191 + ((isSetLdapFilter()) ? 131071 : 524287); + if (isSetLdapFilter()) + hashCode = hashCode * 8191 + ldapFilter.hashCode(); - boolean present_runScripts = true && (isSetRunScripts()); - list.add(present_runScripts); - if (present_runScripts) - list.add(runScripts); + hashCode = hashCode * 8191 + ((isSetRunScripts()) ? 131071 : 524287); + if (isSetRunScripts()) + hashCode = hashCode * 8191 + runScripts.hashCode(); - boolean present_networkExceptions = true && (isSetNetworkExceptions()); - list.add(present_networkExceptions); - if (present_networkExceptions) - list.add(networkExceptions); + hashCode = hashCode * 8191 + ((isSetNetworkExceptions()) ? 131071 : 524287); + if (isSetNetworkExceptions()) + hashCode = hashCode * 8191 + networkExceptions.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -520,7 +497,7 @@ public class PredefinedData implements org.apache.thrift.TBase { + private static class PredefinedDataStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, PredefinedData struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -658,8 +636,8 @@ public class PredefinedData implements org.apache.thrift.TBase(_list106.size); - NetShare _elem107; + struct.netShares = new java.util.ArrayList(_list106.size); + @org.apache.thrift.annotation.Nullable NetShare _elem107; for (int _i108 = 0; _i108 < _list106.size; ++_i108) { _elem107 = new NetShare(); @@ -677,8 +655,8 @@ public class PredefinedData implements org.apache.thrift.TBase(_list109.size); - LdapFilter _elem110; + struct.ldapFilter = new java.util.ArrayList(_list109.size); + @org.apache.thrift.annotation.Nullable LdapFilter _elem110; for (int _i111 = 0; _i111 < _list109.size; ++_i111) { _elem110 = new LdapFilter(); @@ -696,8 +674,8 @@ public class PredefinedData implements org.apache.thrift.TBase(_list112.size); - PresetRunScript _elem113; + struct.runScripts = new java.util.ArrayList(_list112.size); + @org.apache.thrift.annotation.Nullable PresetRunScript _elem113; for (int _i114 = 0; _i114 < _list112.size; ++_i114) { _elem113 = new PresetRunScript(); @@ -715,8 +693,8 @@ public class PredefinedData implements org.apache.thrift.TBase(_list115.size); - PresetNetRule _elem116; + struct.networkExceptions = new java.util.ArrayList(_list115.size); + @org.apache.thrift.annotation.Nullable PresetNetRule _elem116; for (int _i117 = 0; _i117 < _list115.size; ++_i117) { _elem116 = new PresetNetRule(); @@ -799,18 +777,18 @@ public class PredefinedData implements org.apache.thrift.TBase { + private static class PredefinedDataTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, PredefinedData struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetNetShares()) { optionals.set(0); } @@ -864,13 +842,13 @@ public class PredefinedData implements org.apache.thrift.TBase(_list126.size); - NetShare _elem127; + org.apache.thrift.protocol.TList _list126 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.netShares = new java.util.ArrayList(_list126.size); + @org.apache.thrift.annotation.Nullable NetShare _elem127; for (int _i128 = 0; _i128 < _list126.size; ++_i128) { _elem127 = new NetShare(); @@ -882,9 +860,9 @@ public class PredefinedData implements org.apache.thrift.TBase(_list129.size); - LdapFilter _elem130; + org.apache.thrift.protocol.TList _list129 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.ldapFilter = new java.util.ArrayList(_list129.size); + @org.apache.thrift.annotation.Nullable LdapFilter _elem130; for (int _i131 = 0; _i131 < _list129.size; ++_i131) { _elem130 = new LdapFilter(); @@ -896,9 +874,9 @@ public class PredefinedData implements org.apache.thrift.TBase(_list132.size); - PresetRunScript _elem133; + org.apache.thrift.protocol.TList _list132 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.runScripts = new java.util.ArrayList(_list132.size); + @org.apache.thrift.annotation.Nullable PresetRunScript _elem133; for (int _i134 = 0; _i134 < _list132.size; ++_i134) { _elem133 = new PresetRunScript(); @@ -910,9 +888,9 @@ public class PredefinedData implements org.apache.thrift.TBase(_list135.size); - PresetNetRule _elem136; + org.apache.thrift.protocol.TList _list135 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.networkExceptions = new java.util.ArrayList(_list135.size); + @org.apache.thrift.annotation.Nullable PresetNetRule _elem136; for (int _i137 = 0; _i137 < _list135.size; ++_i137) { _elem136 = new PresetNetRule(); @@ -925,5 +903,8 @@ public class PredefinedData implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/PresetNetRule.java b/src/main/java/org/openslx/bwlp/thrift/iface/PresetNetRule.java index 262c8ac..215d8ba 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/PresetNetRule.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/PresetNetRule.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-02-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class PresetNetRule 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("PresetNetRule"); @@ -42,15 +15,12 @@ public class PresetNetRule implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new PresetNetRuleStandardSchemeFactory()); - schemes.put(TupleScheme.class, new PresetNetRuleTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new PresetNetRuleStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new PresetNetRuleTupleSchemeFactory(); public int ruleId; // required - public String displayName; // required - public List netRules; // required + public @org.apache.thrift.annotation.Nullable java.lang.String displayName; // required + public @org.apache.thrift.annotation.Nullable java.util.List netRules; // 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 { @@ -58,10 +28,10 @@ public class PresetNetRule implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class PresetNetRule implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.RULE_ID, new org.apache.thrift.meta_data.FieldMetaData("ruleId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -129,7 +101,7 @@ public class PresetNetRule implements org.apache.thrift.TBase netRules) + java.lang.String displayName, + java.util.List netRules) { this(); this.ruleId = ruleId; @@ -158,7 +130,7 @@ public class PresetNetRule implements org.apache.thrift.TBase __this__netRules = new ArrayList(other.netRules.size()); + java.util.List __this__netRules = new java.util.ArrayList(other.netRules.size()); for (NetRule other_element : other.netRules) { __this__netRules.add(new NetRule(other_element)); } @@ -189,23 +161,24 @@ public class PresetNetRule implements org.apache.thrift.TBase getNetRulesIterator() { return (this.netRules == null) ? null : this.netRules.iterator(); } public void addToNetRules(NetRule elem) { if (this.netRules == null) { - this.netRules = new ArrayList(); + this.netRules = new java.util.ArrayList(); } this.netRules.add(elem); } - public List getNetRules() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNetRules() { return this.netRules; } - public PresetNetRule setNetRules(List netRules) { + public PresetNetRule setNetRules(@org.apache.thrift.annotation.Nullable java.util.List netRules) { this.netRules = netRules; return this; } @@ -264,13 +239,13 @@ public class PresetNetRule implements org.apache.thrift.TBase)value); + setNetRules((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case RULE_ID: return getRuleId(); @@ -305,13 +281,13 @@ public class PresetNetRule implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_ruleId = true; - list.add(present_ruleId); - if (present_ruleId) - list.add(ruleId); + hashCode = hashCode * 8191 + ruleId; - boolean present_displayName = true && (isSetDisplayName()); - list.add(present_displayName); - if (present_displayName) - list.add(displayName); + hashCode = hashCode * 8191 + ((isSetDisplayName()) ? 131071 : 524287); + if (isSetDisplayName()) + hashCode = hashCode * 8191 + displayName.hashCode(); - boolean present_netRules = true && (isSetNetRules()); - list.add(present_netRules); - if (present_netRules) - list.add(netRules); + hashCode = hashCode * 8191 + ((isSetNetRules()) ? 131071 : 524287); + if (isSetNetRules()) + hashCode = hashCode * 8191 + netRules.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -398,7 +369,7 @@ public class PresetNetRule implements org.apache.thrift.TBase { + private static class PresetNetRuleStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, PresetNetRule struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -532,8 +504,8 @@ public class PresetNetRule implements org.apache.thrift.TBase(_list98.size); - NetRule _elem99; + struct.netRules = new java.util.ArrayList(_list98.size); + @org.apache.thrift.annotation.Nullable NetRule _elem99; for (int _i100 = 0; _i100 < _list98.size; ++_i100) { _elem99 = new NetRule(); @@ -588,18 +560,18 @@ public class PresetNetRule implements org.apache.thrift.TBase { + private static class PresetNetRuleTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, PresetNetRule struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetRuleId()) { optionals.set(0); } @@ -629,8 +601,8 @@ public class PresetNetRule implements org.apache.thrift.TBase(_list103.size); - NetRule _elem104; + org.apache.thrift.protocol.TList _list103 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.netRules = new java.util.ArrayList(_list103.size); + @org.apache.thrift.annotation.Nullable NetRule _elem104; for (int _i105 = 0; _i105 < _list103.size; ++_i105) { _elem104 = new NetRule(); @@ -656,5 +628,8 @@ public class PresetNetRule implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/PresetRunScript.java b/src/main/java/org/openslx/bwlp/thrift/iface/PresetRunScript.java index da245ef..46443b6 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/PresetRunScript.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/PresetRunScript.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-12-11") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class PresetRunScript 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("PresetRunScript"); @@ -42,15 +15,12 @@ public class PresetRunScript implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new PresetRunScriptStandardSchemeFactory()); - schemes.put(TupleScheme.class, new PresetRunScriptTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new PresetRunScriptStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new PresetRunScriptTupleSchemeFactory(); public int scriptId; // required - public String displayname; // required - public List osIds; // required + public @org.apache.thrift.annotation.Nullable java.lang.String displayname; // required + public @org.apache.thrift.annotation.Nullable java.util.List osIds; // 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 { @@ -58,10 +28,10 @@ public class PresetRunScript implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class PresetRunScript implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SCRIPT_ID, new org.apache.thrift.meta_data.FieldMetaData("scriptId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.DISPLAYNAME, new org.apache.thrift.meta_data.FieldMetaData("displayname", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -129,7 +101,7 @@ public class PresetRunScript implements org.apache.thrift.TBase osIds) + java.lang.String displayname, + java.util.List osIds) { this(); this.scriptId = scriptId; @@ -158,7 +130,7 @@ public class PresetRunScript implements org.apache.thrift.TBase __this__osIds = new ArrayList(other.osIds); + java.util.List __this__osIds = new java.util.ArrayList(other.osIds); this.osIds = __this__osIds; } } @@ -186,23 +158,24 @@ public class PresetRunScript implements org.apache.thrift.TBase getOsIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getOsIdsIterator() { return (this.osIds == null) ? null : this.osIds.iterator(); } public void addToOsIds(int elem) { if (this.osIds == null) { - this.osIds = new ArrayList(); + this.osIds = new java.util.ArrayList(); } this.osIds.add(elem); } - public List getOsIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List getOsIds() { return this.osIds; } - public PresetRunScript setOsIds(List osIds) { + public PresetRunScript setOsIds(@org.apache.thrift.annotation.Nullable java.util.List osIds) { this.osIds = osIds; return this; } @@ -261,13 +236,13 @@ public class PresetRunScript implements org.apache.thrift.TBase)value); + setOsIds((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SCRIPT_ID: return getScriptId(); @@ -302,13 +278,13 @@ public class PresetRunScript implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_scriptId = true; - list.add(present_scriptId); - if (present_scriptId) - list.add(scriptId); + hashCode = hashCode * 8191 + scriptId; - boolean present_displayname = true && (isSetDisplayname()); - list.add(present_displayname); - if (present_displayname) - list.add(displayname); + hashCode = hashCode * 8191 + ((isSetDisplayname()) ? 131071 : 524287); + if (isSetDisplayname()) + hashCode = hashCode * 8191 + displayname.hashCode(); - boolean present_osIds = true && (isSetOsIds()); - list.add(present_osIds); - if (present_osIds) - list.add(osIds); + hashCode = hashCode * 8191 + ((isSetOsIds()) ? 131071 : 524287); + if (isSetOsIds()) + hashCode = hashCode * 8191 + osIds.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -395,7 +366,7 @@ public class PresetRunScript implements org.apache.thrift.TBase { + private static class PresetRunScriptStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, PresetRunScript struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -529,7 +501,7 @@ public class PresetRunScript implements org.apache.thrift.TBase(_list90.size); + struct.osIds = new java.util.ArrayList(_list90.size); int _elem91; for (int _i92 = 0; _i92 < _list90.size; ++_i92) { @@ -584,18 +556,18 @@ public class PresetRunScript implements org.apache.thrift.TBase { + private static class PresetRunScriptTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, PresetRunScript struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetScriptId()) { optionals.set(0); } @@ -625,8 +597,8 @@ public class PresetRunScript implements org.apache.thrift.TBase(_list95.size); + org.apache.thrift.protocol.TList _list95 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.osIds = new java.util.ArrayList(_list95.size); int _elem96; for (int _i97 = 0; _i97 < _list95.size; ++_i97) { @@ -651,5 +623,8 @@ public class PresetRunScript implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/Role.java b/src/main/java/org/openslx/bwlp/thrift/iface/Role.java index bbdd984..fc39705 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/Role.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/Role.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,10 +7,7 @@ package org.openslx.bwlp.thrift.iface; -import java.util.Map; -import java.util.HashMap; -import org.apache.thrift.TEnum; - +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public enum Role implements org.apache.thrift.TEnum { STUDENT(0), TUTOR(1); @@ -32,6 +29,7 @@ public enum Role implements org.apache.thrift.TEnum { * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ + @org.apache.thrift.annotation.Nullable public static Role findByValue(int value) { switch (value) { case 0: diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/Satellite.java b/src/main/java/org/openslx/bwlp/thrift/iface/Satellite.java index 2d498af..6a9cc85 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/Satellite.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/Satellite.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class Satellite 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("Satellite"); @@ -42,15 +15,12 @@ public class Satellite implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new SatelliteStandardSchemeFactory()); - schemes.put(TupleScheme.class, new SatelliteTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new SatelliteStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new SatelliteTupleSchemeFactory(); - public List addressList; // required - public String displayName; // required - public ByteBuffer certSha256; // required + public @org.apache.thrift.annotation.Nullable java.util.List addressList; // required + public @org.apache.thrift.annotation.Nullable java.lang.String displayName; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer certSha256; // 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 { @@ -58,10 +28,10 @@ public class Satellite implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class Satellite implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ADDRESS_LIST, new org.apache.thrift.meta_data.FieldMetaData("addressList", 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)))); @@ -127,7 +99,7 @@ public class Satellite implements org.apache.thrift.TBase addressList, - String displayName, - ByteBuffer certSha256) + java.util.List addressList, + java.lang.String displayName, + java.nio.ByteBuffer certSha256) { this(); this.addressList = addressList; @@ -150,7 +122,7 @@ public class Satellite implements org.apache.thrift.TBase __this__addressList = new ArrayList(other.addressList); + java.util.List __this__addressList = new java.util.ArrayList(other.addressList); this.addressList = __this__addressList; } if (other.isSetDisplayName()) { @@ -176,22 +148,24 @@ public class Satellite implements org.apache.thrift.TBase getAddressListIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getAddressListIterator() { return (this.addressList == null) ? null : this.addressList.iterator(); } - public void addToAddressList(String elem) { + public void addToAddressList(java.lang.String elem) { if (this.addressList == null) { - this.addressList = new ArrayList(); + this.addressList = new java.util.ArrayList(); } this.addressList.add(elem); } - public List getAddressList() { + @org.apache.thrift.annotation.Nullable + public java.util.List getAddressList() { return this.addressList; } - public Satellite setAddressList(List addressList) { + public Satellite setAddressList(@org.apache.thrift.annotation.Nullable java.util.List addressList) { this.addressList = addressList; return this; } @@ -211,11 +185,12 @@ public class Satellite implements org.apache.thrift.TBase)value); + setAddressList((java.util.List)value); } break; @@ -283,7 +258,7 @@ public class Satellite implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_addressList = true && (isSetAddressList()); - list.add(present_addressList); - if (present_addressList) - list.add(addressList); + hashCode = hashCode * 8191 + ((isSetAddressList()) ? 131071 : 524287); + if (isSetAddressList()) + hashCode = hashCode * 8191 + addressList.hashCode(); - boolean present_displayName = true && (isSetDisplayName()); - list.add(present_displayName); - if (present_displayName) - list.add(displayName); + hashCode = hashCode * 8191 + ((isSetDisplayName()) ? 131071 : 524287); + if (isSetDisplayName()) + hashCode = hashCode * 8191 + displayName.hashCode(); - boolean present_certSha256 = true && (isSetCertSha256()); - list.add(present_certSha256); - if (present_certSha256) - list.add(certSha256); + hashCode = hashCode * 8191 + ((isSetCertSha256()) ? 131071 : 524287); + if (isSetCertSha256()) + hashCode = hashCode * 8191 + certSha256.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -403,7 +380,7 @@ public class Satellite implements org.apache.thrift.TBase { + private static class SatelliteStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, Satellite struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -523,8 +501,8 @@ public class Satellite implements org.apache.thrift.TBase(_list8.size); - String _elem9; + struct.addressList = new java.util.ArrayList(_list8.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem9; for (int _i10 = 0; _i10 < _list8.size; ++_i10) { _elem9 = iprot.readString(); @@ -572,7 +550,7 @@ public class Satellite implements org.apache.thrift.TBase { + private static class SatelliteTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, Satellite struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAddressList()) { optionals.set(0); } @@ -621,7 +599,7 @@ public class Satellite implements org.apache.thrift.TBase(_list13.size); - String _elem14; + org.apache.thrift.protocol.TList _list13 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.addressList = new java.util.ArrayList(_list13.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem14; for (int _i15 = 0; _i15 < _list13.size; ++_i15) { _elem14 = iprot.readString(); @@ -663,5 +641,8 @@ public class Satellite implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java index 0dc1800..b412de9 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2021-04-21") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class SatelliteConfig 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("SatelliteConfig"); @@ -50,15 +23,12 @@ public class SatelliteConfig implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new SatelliteConfigStandardSchemeFactory()); - schemes.put(TupleScheme.class, new SatelliteConfigTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new SatelliteConfigStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new SatelliteConfigTupleSchemeFactory(); public int pageSize; // required - public ImagePermissions defaultImagePermissions; // required - public LecturePermissions defaultLecturePermissions; // required + public @org.apache.thrift.annotation.Nullable ImagePermissions defaultImagePermissions; // required + public @org.apache.thrift.annotation.Nullable LecturePermissions defaultLecturePermissions; // required public int maxImageValidityDays; // required public int maxLectureValidityDays; // required public int maxTransfers; // optional @@ -69,7 +39,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -101,6 +71,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.PAGE_SIZE, new org.apache.thrift.meta_data.FieldMetaData("pageSize", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.DEFAULT_IMAGE_PERMISSIONS, new org.apache.thrift.meta_data.FieldMetaData("defaultImagePermissions", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -200,7 +172,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase list = new ArrayList(); - - boolean present_pageSize = true; - list.add(present_pageSize); - if (present_pageSize) - list.add(pageSize); - - boolean present_defaultImagePermissions = true && (isSetDefaultImagePermissions()); - list.add(present_defaultImagePermissions); - if (present_defaultImagePermissions) - list.add(defaultImagePermissions); - - boolean present_defaultLecturePermissions = true && (isSetDefaultLecturePermissions()); - list.add(present_defaultLecturePermissions); - if (present_defaultLecturePermissions) - list.add(defaultLecturePermissions); - - boolean present_maxImageValidityDays = true; - list.add(present_maxImageValidityDays); - if (present_maxImageValidityDays) - list.add(maxImageValidityDays); - - boolean present_maxLectureValidityDays = true; - list.add(present_maxLectureValidityDays); - if (present_maxLectureValidityDays) - list.add(maxLectureValidityDays); - - boolean present_maxTransfers = true && (isSetMaxTransfers()); - list.add(present_maxTransfers); - if (present_maxTransfers) - list.add(maxTransfers); - - boolean present_maxConnectionsPerTransfer = true && (isSetMaxConnectionsPerTransfer()); - list.add(present_maxConnectionsPerTransfer); - if (present_maxConnectionsPerTransfer) - list.add(maxConnectionsPerTransfer); - - boolean present_maxLocationsPerLecture = true && (isSetMaxLocationsPerLecture()); - list.add(present_maxLocationsPerLecture); - if (present_maxLocationsPerLecture) - list.add(maxLocationsPerLecture); - - boolean present_allowLoginByDefault = true && (isSetAllowLoginByDefault()); - list.add(present_allowLoginByDefault); - if (present_allowLoginByDefault) - list.add(allowLoginByDefault); - - boolean present_serverSideCopy = true && (isSetServerSideCopy()); - list.add(present_serverSideCopy); - if (present_serverSideCopy) - list.add(serverSideCopy.getValue()); - - boolean present_allowStudentDownload = true && (isSetAllowStudentDownload()); - list.add(present_allowStudentDownload); - if (present_allowStudentDownload) - list.add(allowStudentDownload); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + pageSize; + + hashCode = hashCode * 8191 + ((isSetDefaultImagePermissions()) ? 131071 : 524287); + if (isSetDefaultImagePermissions()) + hashCode = hashCode * 8191 + defaultImagePermissions.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDefaultLecturePermissions()) ? 131071 : 524287); + if (isSetDefaultLecturePermissions()) + hashCode = hashCode * 8191 + defaultLecturePermissions.hashCode(); + + hashCode = hashCode * 8191 + maxImageValidityDays; + + hashCode = hashCode * 8191 + maxLectureValidityDays; + + hashCode = hashCode * 8191 + ((isSetMaxTransfers()) ? 131071 : 524287); + if (isSetMaxTransfers()) + hashCode = hashCode * 8191 + maxTransfers; + + hashCode = hashCode * 8191 + ((isSetMaxConnectionsPerTransfer()) ? 131071 : 524287); + if (isSetMaxConnectionsPerTransfer()) + hashCode = hashCode * 8191 + maxConnectionsPerTransfer; + + hashCode = hashCode * 8191 + ((isSetMaxLocationsPerLecture()) ? 131071 : 524287); + if (isSetMaxLocationsPerLecture()) + hashCode = hashCode * 8191 + maxLocationsPerLecture; + + hashCode = hashCode * 8191 + ((isSetAllowLoginByDefault()) ? 131071 : 524287); + if (isSetAllowLoginByDefault()) + hashCode = hashCode * 8191 + ((allowLoginByDefault) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetServerSideCopy()) ? 131071 : 524287); + if (isSetServerSideCopy()) + hashCode = hashCode * 8191 + serverSideCopy.getValue(); + + hashCode = hashCode * 8191 + ((isSetAllowStudentDownload()) ? 131071 : 524287); + if (isSetAllowStudentDownload()) + hashCode = hashCode * 8191 + ((allowStudentDownload) ? 131071 : 524287); + + return hashCode; } @Override @@ -890,7 +849,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase { + private static class SatelliteConfigStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, SatelliteConfig struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -1300,18 +1260,18 @@ public class SatelliteConfig implements org.apache.thrift.TBase { + private static class SatelliteConfigTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, SatelliteConfig struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetPageSize()) { optionals.set(0); } @@ -1383,8 +1343,8 @@ public class SatelliteConfig implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 517614e..c81df2c 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java @@ -1,227 +1,200 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-11-23") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class SatelliteServer { public interface Iface { public long getVersion(long clientVersion) throws org.apache.thrift.TException; - public String getSupportedFeatures() throws org.apache.thrift.TException; + public java.lang.String getSupportedFeatures() throws org.apache.thrift.TException; public SatelliteConfig getConfiguration() throws org.apache.thrift.TException; - public TransferInformation requestImageVersionUpload(String userToken, String imageBaseId, long fileSize, List blockHashes, ByteBuffer machineDescription) throws TTransferRejectedException, TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException; + public TransferInformation requestImageVersionUpload(java.lang.String userToken, java.lang.String imageBaseId, long fileSize, java.util.List blockHashes, java.nio.ByteBuffer machineDescription) throws TTransferRejectedException, TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException; - public void updateBlockHashes(String uploadToken, List blockHashes, String userToken) throws TInvalidTokenException, org.apache.thrift.TException; + public void updateBlockHashes(java.lang.String uploadToken, java.util.List blockHashes, java.lang.String userToken) throws TInvalidTokenException, org.apache.thrift.TException; - public UploadOptions setUploadOptions(String userToken, String uploadToken, UploadOptions options) throws TAuthorizationException, TInvalidTokenException, org.apache.thrift.TException; + public UploadOptions setUploadOptions(java.lang.String userToken, java.lang.String uploadToken, UploadOptions options) throws TAuthorizationException, TInvalidTokenException, org.apache.thrift.TException; - public void cancelUpload(String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException; + public void cancelUpload(java.lang.String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException; - public TransferStatus queryUploadStatus(String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException; + public TransferStatus queryUploadStatus(java.lang.String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException; - public TransferInformation requestDownload(String userToken, String imageVersionId) throws TTransferRejectedException, TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException; + public TransferInformation requestDownload(java.lang.String userToken, java.lang.String imageVersionId) throws TTransferRejectedException, TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException; - public void cancelDownload(String downloadToken) throws TInvalidTokenException, org.apache.thrift.TException; + public void cancelDownload(java.lang.String downloadToken) throws TInvalidTokenException, org.apache.thrift.TException; - public void isAuthenticated(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public void isAuthenticated(java.lang.String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public WhoamiInfo whoami(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public WhoamiInfo whoami(java.lang.String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public void invalidateSession(String userToken) throws TInvalidTokenException, org.apache.thrift.TException; + public void invalidateSession(java.lang.String userToken) throws TInvalidTokenException, org.apache.thrift.TException; - public List getUserList(String userToken, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public java.util.List getUserList(java.lang.String userToken, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public SatelliteUserConfig getUserConfig(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public SatelliteUserConfig getUserConfig(java.lang.String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public void setUserConfig(String userToken, SatelliteUserConfig config) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public void setUserConfig(java.lang.String userToken, SatelliteUserConfig config) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public List getOperatingSystems() throws org.apache.thrift.TException; + public java.util.List getOperatingSystems() throws org.apache.thrift.TException; - public List getVirtualizers() throws org.apache.thrift.TException; + public java.util.List getVirtualizers() throws org.apache.thrift.TException; - public List getAllOrganizations() throws org.apache.thrift.TException; + public java.util.List getAllOrganizations() throws org.apache.thrift.TException; - public List getLocations() throws org.apache.thrift.TException; + public java.util.List getLocations() throws org.apache.thrift.TException; public SatelliteStatus getStatus() throws org.apache.thrift.TException; - public List getImageList(String userToken, List tagSearch, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public java.util.List getImageList(java.lang.String userToken, java.util.List tagSearch, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public ImageDetailsRead getImageDetails(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public ImageDetailsRead getImageDetails(java.lang.String userToken, java.lang.String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public String createImage(String userToken, String imageName) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public java.lang.String createImage(java.lang.String userToken, java.lang.String imageName) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public void updateImageBase(String userToken, String imageBaseId, ImageBaseWrite image) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public void updateImageBase(java.lang.String userToken, java.lang.String imageBaseId, ImageBaseWrite image) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public void updateImageVersion(String userToken, String imageVersionId, ImageVersionWrite image) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public void updateImageVersion(java.lang.String userToken, java.lang.String imageVersionId, ImageVersionWrite image) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public void deleteImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public void deleteImageVersion(java.lang.String userToken, java.lang.String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public void deleteImageBase(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public void deleteImageBase(java.lang.String userToken, java.lang.String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public void writeImagePermissions(String userToken, String imageBaseId, Map permissions) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public void writeImagePermissions(java.lang.String userToken, java.lang.String imageBaseId, java.util.Map permissions) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public Map getImagePermissions(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public java.util.Map getImagePermissions(java.lang.String userToken, java.lang.String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public void setImageOwner(String userToken, String imageBaseId, String newOwnerId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public void setImageOwner(java.lang.String userToken, java.lang.String imageBaseId, java.lang.String newOwnerId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public void setImageVersionExpiry(String userToken, String imageBaseId, long expireTime) throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException; + public void setImageVersionExpiry(java.lang.String userToken, java.lang.String imageBaseId, long expireTime) throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException; - public ByteBuffer getImageVersionVirtConfig(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public java.nio.ByteBuffer getImageVersionVirtConfig(java.lang.String userToken, java.lang.String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public void setImageVersionVirtConfig(String userToken, String imageVersionId, ByteBuffer meta) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public void setImageVersionVirtConfig(java.lang.String userToken, java.lang.String imageVersionId, java.nio.ByteBuffer meta) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public String requestImageReplication(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public java.lang.String requestImageReplication(java.lang.String userToken, java.lang.String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public String publishImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException; + public java.lang.String publishImageVersion(java.lang.String userToken, java.lang.String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException; - public String createLecture(String userToken, LectureWrite lecture) throws TAuthorizationException, TInvocationException, TInvalidDateParam, TNotFoundException, org.apache.thrift.TException; + public java.lang.String createLecture(java.lang.String userToken, LectureWrite lecture) throws TAuthorizationException, TInvocationException, TInvalidDateParam, TNotFoundException, org.apache.thrift.TException; - public void updateLecture(String userToken, String lectureId, LectureWrite lecture) throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException; + public void updateLecture(java.lang.String userToken, java.lang.String lectureId, LectureWrite lecture) throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException; - public List getLectureList(String userToken, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public java.util.List getLectureList(java.lang.String userToken, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public LectureRead getLectureDetails(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public LectureRead getLectureDetails(java.lang.String userToken, java.lang.String lectureId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public void deleteLecture(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public void deleteLecture(java.lang.String userToken, java.lang.String lectureId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public void writeLecturePermissions(String userToken, String lectureId, Map permissions) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public void writeLecturePermissions(java.lang.String userToken, java.lang.String lectureId, java.util.Map permissions) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public Map getLecturePermissions(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public java.util.Map getLecturePermissions(java.lang.String userToken, java.lang.String lectureId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public void setLectureOwner(String userToken, String lectureId, String newOwnerId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public void setLectureOwner(java.lang.String userToken, java.lang.String lectureId, java.lang.String newOwnerId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; - public PredefinedData getPredefinedData(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public PredefinedData getPredefinedData(java.lang.String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; } public interface AsyncIface { - public void getVersion(long clientVersion, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getVersion(long clientVersion, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getSupportedFeatures(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getSupportedFeatures(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getConfiguration(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getConfiguration(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void requestImageVersionUpload(String userToken, String imageBaseId, long fileSize, List blockHashes, ByteBuffer machineDescription, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void requestImageVersionUpload(java.lang.String userToken, java.lang.String imageBaseId, long fileSize, java.util.List blockHashes, java.nio.ByteBuffer machineDescription, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void updateBlockHashes(String uploadToken, List blockHashes, String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void updateBlockHashes(java.lang.String uploadToken, java.util.List blockHashes, java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void setUploadOptions(String userToken, String uploadToken, UploadOptions options, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setUploadOptions(java.lang.String userToken, java.lang.String uploadToken, UploadOptions options, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void cancelUpload(String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void cancelUpload(java.lang.String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void queryUploadStatus(String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void queryUploadStatus(java.lang.String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void requestDownload(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void requestDownload(java.lang.String userToken, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void cancelDownload(String downloadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void cancelDownload(java.lang.String downloadToken, 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 isAuthenticated(java.lang.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; + public void whoami(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void invalidateSession(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void invalidateSession(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getUserList(String userToken, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getUserList(java.lang.String userToken, int page, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getUserConfig(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getUserConfig(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void setUserConfig(String userToken, SatelliteUserConfig config, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setUserConfig(java.lang.String userToken, SatelliteUserConfig config, 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; + public void getOperatingSystems(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getVirtualizers(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getVirtualizers(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getAllOrganizations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAllOrganizations(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getLocations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getLocations(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getImageList(String userToken, List tagSearch, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageList(java.lang.String userToken, java.util.List tagSearch, int page, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getImageDetails(String userToken, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageDetails(java.lang.String userToken, java.lang.String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void createImage(String userToken, String imageName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void createImage(java.lang.String userToken, java.lang.String imageName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void updateImageBase(String userToken, String imageBaseId, ImageBaseWrite image, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void updateImageBase(java.lang.String userToken, java.lang.String imageBaseId, ImageBaseWrite image, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void updateImageVersion(String userToken, String imageVersionId, ImageVersionWrite image, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void updateImageVersion(java.lang.String userToken, java.lang.String imageVersionId, ImageVersionWrite image, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteImageVersion(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteImageVersion(java.lang.String userToken, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteImageBase(String userToken, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteImageBase(java.lang.String userToken, java.lang.String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void writeImagePermissions(String userToken, String imageBaseId, Map permissions, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void writeImagePermissions(java.lang.String userToken, java.lang.String imageBaseId, java.util.Map permissions, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getImagePermissions(String userToken, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImagePermissions(java.lang.String userToken, java.lang.String imageBaseId, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void setImageOwner(String userToken, String imageBaseId, String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setImageOwner(java.lang.String userToken, java.lang.String imageBaseId, java.lang.String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void setImageVersionExpiry(String userToken, String imageBaseId, long expireTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setImageVersionExpiry(java.lang.String userToken, java.lang.String imageBaseId, long expireTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getImageVersionVirtConfig(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageVersionVirtConfig(java.lang.String userToken, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void setImageVersionVirtConfig(String userToken, String imageVersionId, ByteBuffer meta, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setImageVersionVirtConfig(java.lang.String userToken, java.lang.String imageVersionId, java.nio.ByteBuffer meta, 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 requestImageReplication(java.lang.String userToken, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void publishImageVersion(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void publishImageVersion(java.lang.String userToken, java.lang.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 createLecture(java.lang.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; + public void updateLecture(java.lang.String userToken, java.lang.String lectureId, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getLectureList(String userToken, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getLectureList(java.lang.String userToken, int page, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void getLectureDetails(String userToken, String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getLectureDetails(java.lang.String userToken, java.lang.String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteLecture(String userToken, String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteLecture(java.lang.String userToken, java.lang.String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void writeLecturePermissions(String userToken, String lectureId, Map permissions, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void writeLecturePermissions(java.lang.String userToken, java.lang.String lectureId, java.util.Map permissions, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getLecturePermissions(String userToken, String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getLecturePermissions(java.lang.String userToken, java.lang.String lectureId, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException; - public void setLectureOwner(String userToken, String lectureId, String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setLectureOwner(java.lang.String userToken, java.lang.String lectureId, java.lang.String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getPredefinedData(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getPredefinedData(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -268,7 +241,7 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVersion failed: unknown result"); } - public String getSupportedFeatures() throws org.apache.thrift.TException + public java.lang.String getSupportedFeatures() throws org.apache.thrift.TException { send_getSupportedFeatures(); return recv_getSupportedFeatures(); @@ -280,7 +253,7 @@ public class SatelliteServer { sendBase("getSupportedFeatures", args); } - public String recv_getSupportedFeatures() throws org.apache.thrift.TException + public java.lang.String recv_getSupportedFeatures() throws org.apache.thrift.TException { getSupportedFeatures_result result = new getSupportedFeatures_result(); receiveBase(result, "getSupportedFeatures"); @@ -312,13 +285,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getConfiguration failed: unknown result"); } - public TransferInformation requestImageVersionUpload(String userToken, String imageBaseId, long fileSize, List blockHashes, ByteBuffer machineDescription) throws TTransferRejectedException, TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException + public TransferInformation requestImageVersionUpload(java.lang.String userToken, java.lang.String imageBaseId, long fileSize, java.util.List blockHashes, java.nio.ByteBuffer machineDescription) throws TTransferRejectedException, TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException { send_requestImageVersionUpload(userToken, imageBaseId, fileSize, blockHashes, machineDescription); return recv_requestImageVersionUpload(); } - public void send_requestImageVersionUpload(String userToken, String imageBaseId, long fileSize, List blockHashes, ByteBuffer machineDescription) throws org.apache.thrift.TException + public void send_requestImageVersionUpload(java.lang.String userToken, java.lang.String imageBaseId, long fileSize, java.util.List blockHashes, java.nio.ByteBuffer machineDescription) throws org.apache.thrift.TException { requestImageVersionUpload_args args = new requestImageVersionUpload_args(); args.setUserToken(userToken); @@ -351,13 +324,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "requestImageVersionUpload failed: unknown result"); } - public void updateBlockHashes(String uploadToken, List blockHashes, String userToken) throws TInvalidTokenException, org.apache.thrift.TException + public void updateBlockHashes(java.lang.String uploadToken, java.util.List blockHashes, java.lang.String userToken) throws TInvalidTokenException, org.apache.thrift.TException { send_updateBlockHashes(uploadToken, blockHashes, userToken); recv_updateBlockHashes(); } - public void send_updateBlockHashes(String uploadToken, List blockHashes, String userToken) throws org.apache.thrift.TException + public void send_updateBlockHashes(java.lang.String uploadToken, java.util.List blockHashes, java.lang.String userToken) throws org.apache.thrift.TException { updateBlockHashes_args args = new updateBlockHashes_args(); args.setUploadToken(uploadToken); @@ -376,13 +349,13 @@ public class SatelliteServer { return; } - public UploadOptions setUploadOptions(String userToken, String uploadToken, UploadOptions options) throws TAuthorizationException, TInvalidTokenException, org.apache.thrift.TException + public UploadOptions setUploadOptions(java.lang.String userToken, java.lang.String uploadToken, UploadOptions options) throws TAuthorizationException, TInvalidTokenException, org.apache.thrift.TException { send_setUploadOptions(userToken, uploadToken, options); return recv_setUploadOptions(); } - public void send_setUploadOptions(String userToken, String uploadToken, UploadOptions options) throws org.apache.thrift.TException + public void send_setUploadOptions(java.lang.String userToken, java.lang.String uploadToken, UploadOptions options) throws org.apache.thrift.TException { setUploadOptions_args args = new setUploadOptions_args(); args.setUserToken(userToken); @@ -407,13 +380,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUploadOptions failed: unknown result"); } - public void cancelUpload(String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException + public void cancelUpload(java.lang.String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException { send_cancelUpload(uploadToken); recv_cancelUpload(); } - public void send_cancelUpload(String uploadToken) throws org.apache.thrift.TException + public void send_cancelUpload(java.lang.String uploadToken) throws org.apache.thrift.TException { cancelUpload_args args = new cancelUpload_args(); args.setUploadToken(uploadToken); @@ -430,13 +403,13 @@ public class SatelliteServer { return; } - public TransferStatus queryUploadStatus(String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException + public TransferStatus queryUploadStatus(java.lang.String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException { send_queryUploadStatus(uploadToken); return recv_queryUploadStatus(); } - public void send_queryUploadStatus(String uploadToken) throws org.apache.thrift.TException + public void send_queryUploadStatus(java.lang.String uploadToken) throws org.apache.thrift.TException { queryUploadStatus_args args = new queryUploadStatus_args(); args.setUploadToken(uploadToken); @@ -456,13 +429,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "queryUploadStatus failed: unknown result"); } - public TransferInformation requestDownload(String userToken, String imageVersionId) throws TTransferRejectedException, TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException + public TransferInformation requestDownload(java.lang.String userToken, java.lang.String imageVersionId) throws TTransferRejectedException, TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException { send_requestDownload(userToken, imageVersionId); return recv_requestDownload(); } - public void send_requestDownload(String userToken, String imageVersionId) throws org.apache.thrift.TException + public void send_requestDownload(java.lang.String userToken, java.lang.String imageVersionId) throws org.apache.thrift.TException { requestDownload_args args = new requestDownload_args(); args.setUserToken(userToken); @@ -492,13 +465,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "requestDownload failed: unknown result"); } - public void cancelDownload(String downloadToken) throws TInvalidTokenException, org.apache.thrift.TException + public void cancelDownload(java.lang.String downloadToken) throws TInvalidTokenException, org.apache.thrift.TException { send_cancelDownload(downloadToken); recv_cancelDownload(); } - public void send_cancelDownload(String downloadToken) throws org.apache.thrift.TException + public void send_cancelDownload(java.lang.String downloadToken) throws org.apache.thrift.TException { cancelDownload_args args = new cancelDownload_args(); args.setDownloadToken(downloadToken); @@ -515,13 +488,13 @@ public class SatelliteServer { return; } - public void isAuthenticated(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public void isAuthenticated(java.lang.String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_isAuthenticated(userToken); recv_isAuthenticated(); } - public void send_isAuthenticated(String userToken) throws org.apache.thrift.TException + public void send_isAuthenticated(java.lang.String userToken) throws org.apache.thrift.TException { isAuthenticated_args args = new isAuthenticated_args(); args.setUserToken(userToken); @@ -541,13 +514,13 @@ public class SatelliteServer { return; } - public WhoamiInfo whoami(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public WhoamiInfo whoami(java.lang.String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_whoami(userToken); return recv_whoami(); } - public void send_whoami(String userToken) throws org.apache.thrift.TException + public void send_whoami(java.lang.String userToken) throws org.apache.thrift.TException { whoami_args args = new whoami_args(); args.setUserToken(userToken); @@ -570,13 +543,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "whoami failed: unknown result"); } - public void invalidateSession(String userToken) throws TInvalidTokenException, org.apache.thrift.TException + public void invalidateSession(java.lang.String userToken) throws TInvalidTokenException, org.apache.thrift.TException { send_invalidateSession(userToken); recv_invalidateSession(); } - public void send_invalidateSession(String userToken) throws org.apache.thrift.TException + public void send_invalidateSession(java.lang.String userToken) throws org.apache.thrift.TException { invalidateSession_args args = new invalidateSession_args(); args.setUserToken(userToken); @@ -593,13 +566,13 @@ public class SatelliteServer { return; } - public List getUserList(String userToken, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public java.util.List getUserList(java.lang.String userToken, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_getUserList(userToken, page); return recv_getUserList(); } - public void send_getUserList(String userToken, int page) throws org.apache.thrift.TException + public void send_getUserList(java.lang.String userToken, int page) throws org.apache.thrift.TException { getUserList_args args = new getUserList_args(); args.setUserToken(userToken); @@ -607,7 +580,7 @@ public class SatelliteServer { sendBase("getUserList", args); } - public List recv_getUserList() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public java.util.List recv_getUserList() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { getUserList_result result = new getUserList_result(); receiveBase(result, "getUserList"); @@ -623,13 +596,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserList failed: unknown result"); } - public SatelliteUserConfig getUserConfig(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public SatelliteUserConfig getUserConfig(java.lang.String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_getUserConfig(userToken); return recv_getUserConfig(); } - public void send_getUserConfig(String userToken) throws org.apache.thrift.TException + public void send_getUserConfig(java.lang.String userToken) throws org.apache.thrift.TException { getUserConfig_args args = new getUserConfig_args(); args.setUserToken(userToken); @@ -652,13 +625,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserConfig failed: unknown result"); } - public void setUserConfig(String userToken, SatelliteUserConfig config) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public void setUserConfig(java.lang.String userToken, SatelliteUserConfig config) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_setUserConfig(userToken, config); recv_setUserConfig(); } - public void send_setUserConfig(String userToken, SatelliteUserConfig config) throws org.apache.thrift.TException + public void send_setUserConfig(java.lang.String userToken, SatelliteUserConfig config) throws org.apache.thrift.TException { setUserConfig_args args = new setUserConfig_args(); args.setUserToken(userToken); @@ -679,7 +652,7 @@ public class SatelliteServer { return; } - public List getOperatingSystems() throws org.apache.thrift.TException + public java.util.List getOperatingSystems() throws org.apache.thrift.TException { send_getOperatingSystems(); return recv_getOperatingSystems(); @@ -691,7 +664,7 @@ public class SatelliteServer { sendBase("getOperatingSystems", args); } - public List recv_getOperatingSystems() throws org.apache.thrift.TException + public java.util.List recv_getOperatingSystems() throws org.apache.thrift.TException { getOperatingSystems_result result = new getOperatingSystems_result(); receiveBase(result, "getOperatingSystems"); @@ -701,7 +674,7 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOperatingSystems failed: unknown result"); } - public List getVirtualizers() throws org.apache.thrift.TException + public java.util.List getVirtualizers() throws org.apache.thrift.TException { send_getVirtualizers(); return recv_getVirtualizers(); @@ -713,7 +686,7 @@ public class SatelliteServer { sendBase("getVirtualizers", args); } - public List recv_getVirtualizers() throws org.apache.thrift.TException + public java.util.List recv_getVirtualizers() throws org.apache.thrift.TException { getVirtualizers_result result = new getVirtualizers_result(); receiveBase(result, "getVirtualizers"); @@ -723,7 +696,7 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVirtualizers failed: unknown result"); } - public List getAllOrganizations() throws org.apache.thrift.TException + public java.util.List getAllOrganizations() throws org.apache.thrift.TException { send_getAllOrganizations(); return recv_getAllOrganizations(); @@ -735,7 +708,7 @@ public class SatelliteServer { sendBase("getAllOrganizations", args); } - public List recv_getAllOrganizations() throws org.apache.thrift.TException + public java.util.List recv_getAllOrganizations() throws org.apache.thrift.TException { getAllOrganizations_result result = new getAllOrganizations_result(); receiveBase(result, "getAllOrganizations"); @@ -745,7 +718,7 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOrganizations failed: unknown result"); } - public List getLocations() throws org.apache.thrift.TException + public java.util.List getLocations() throws org.apache.thrift.TException { send_getLocations(); return recv_getLocations(); @@ -757,7 +730,7 @@ public class SatelliteServer { sendBase("getLocations", args); } - public List recv_getLocations() throws org.apache.thrift.TException + public java.util.List recv_getLocations() throws org.apache.thrift.TException { getLocations_result result = new getLocations_result(); receiveBase(result, "getLocations"); @@ -789,13 +762,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStatus failed: unknown result"); } - public List getImageList(String userToken, List tagSearch, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public java.util.List getImageList(java.lang.String userToken, java.util.List tagSearch, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_getImageList(userToken, tagSearch, page); return recv_getImageList(); } - public void send_getImageList(String userToken, List tagSearch, int page) throws org.apache.thrift.TException + public void send_getImageList(java.lang.String userToken, java.util.List tagSearch, int page) throws org.apache.thrift.TException { getImageList_args args = new getImageList_args(); args.setUserToken(userToken); @@ -804,7 +777,7 @@ public class SatelliteServer { sendBase("getImageList", args); } - public List recv_getImageList() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public java.util.List recv_getImageList() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { getImageList_result result = new getImageList_result(); receiveBase(result, "getImageList"); @@ -820,13 +793,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageList failed: unknown result"); } - public ImageDetailsRead getImageDetails(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public ImageDetailsRead getImageDetails(java.lang.String userToken, java.lang.String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_getImageDetails(userToken, imageBaseId); return recv_getImageDetails(); } - public void send_getImageDetails(String userToken, String imageBaseId) throws org.apache.thrift.TException + public void send_getImageDetails(java.lang.String userToken, java.lang.String imageBaseId) throws org.apache.thrift.TException { getImageDetails_args args = new getImageDetails_args(); args.setUserToken(userToken); @@ -853,13 +826,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageDetails failed: unknown result"); } - public String createImage(String userToken, String imageName) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public java.lang.String createImage(java.lang.String userToken, java.lang.String imageName) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_createImage(userToken, imageName); return recv_createImage(); } - public void send_createImage(String userToken, String imageName) throws org.apache.thrift.TException + public void send_createImage(java.lang.String userToken, java.lang.String imageName) throws org.apache.thrift.TException { createImage_args args = new createImage_args(); args.setUserToken(userToken); @@ -867,7 +840,7 @@ public class SatelliteServer { sendBase("createImage", args); } - public String recv_createImage() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public java.lang.String recv_createImage() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { createImage_result result = new createImage_result(); receiveBase(result, "createImage"); @@ -883,13 +856,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createImage failed: unknown result"); } - public void updateImageBase(String userToken, String imageBaseId, ImageBaseWrite image) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public void updateImageBase(java.lang.String userToken, java.lang.String imageBaseId, ImageBaseWrite image) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_updateImageBase(userToken, imageBaseId, image); recv_updateImageBase(); } - public void send_updateImageBase(String userToken, String imageBaseId, ImageBaseWrite image) throws org.apache.thrift.TException + public void send_updateImageBase(java.lang.String userToken, java.lang.String imageBaseId, ImageBaseWrite image) throws org.apache.thrift.TException { updateImageBase_args args = new updateImageBase_args(); args.setUserToken(userToken); @@ -914,13 +887,13 @@ public class SatelliteServer { return; } - public void updateImageVersion(String userToken, String imageVersionId, ImageVersionWrite image) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public void updateImageVersion(java.lang.String userToken, java.lang.String imageVersionId, ImageVersionWrite image) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_updateImageVersion(userToken, imageVersionId, image); recv_updateImageVersion(); } - public void send_updateImageVersion(String userToken, String imageVersionId, ImageVersionWrite image) throws org.apache.thrift.TException + public void send_updateImageVersion(java.lang.String userToken, java.lang.String imageVersionId, ImageVersionWrite image) throws org.apache.thrift.TException { updateImageVersion_args args = new updateImageVersion_args(); args.setUserToken(userToken); @@ -945,13 +918,13 @@ public class SatelliteServer { return; } - public void deleteImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public void deleteImageVersion(java.lang.String userToken, java.lang.String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_deleteImageVersion(userToken, imageVersionId); recv_deleteImageVersion(); } - public void send_deleteImageVersion(String userToken, String imageVersionId) throws org.apache.thrift.TException + public void send_deleteImageVersion(java.lang.String userToken, java.lang.String imageVersionId) throws org.apache.thrift.TException { deleteImageVersion_args args = new deleteImageVersion_args(); args.setUserToken(userToken); @@ -975,13 +948,13 @@ public class SatelliteServer { return; } - public void deleteImageBase(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public void deleteImageBase(java.lang.String userToken, java.lang.String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_deleteImageBase(userToken, imageBaseId); recv_deleteImageBase(); } - public void send_deleteImageBase(String userToken, String imageBaseId) throws org.apache.thrift.TException + public void send_deleteImageBase(java.lang.String userToken, java.lang.String imageBaseId) throws org.apache.thrift.TException { deleteImageBase_args args = new deleteImageBase_args(); args.setUserToken(userToken); @@ -1005,13 +978,13 @@ public class SatelliteServer { return; } - public void writeImagePermissions(String userToken, String imageBaseId, Map permissions) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public void writeImagePermissions(java.lang.String userToken, java.lang.String imageBaseId, java.util.Map permissions) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_writeImagePermissions(userToken, imageBaseId, permissions); recv_writeImagePermissions(); } - public void send_writeImagePermissions(String userToken, String imageBaseId, Map permissions) throws org.apache.thrift.TException + public void send_writeImagePermissions(java.lang.String userToken, java.lang.String imageBaseId, java.util.Map permissions) throws org.apache.thrift.TException { writeImagePermissions_args args = new writeImagePermissions_args(); args.setUserToken(userToken); @@ -1036,13 +1009,13 @@ public class SatelliteServer { return; } - public Map getImagePermissions(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public java.util.Map getImagePermissions(java.lang.String userToken, java.lang.String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_getImagePermissions(userToken, imageBaseId); return recv_getImagePermissions(); } - public void send_getImagePermissions(String userToken, String imageBaseId) throws org.apache.thrift.TException + public void send_getImagePermissions(java.lang.String userToken, java.lang.String imageBaseId) throws org.apache.thrift.TException { getImagePermissions_args args = new getImagePermissions_args(); args.setUserToken(userToken); @@ -1050,7 +1023,7 @@ public class SatelliteServer { sendBase("getImagePermissions", args); } - public Map recv_getImagePermissions() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public java.util.Map recv_getImagePermissions() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { getImagePermissions_result result = new getImagePermissions_result(); receiveBase(result, "getImagePermissions"); @@ -1069,13 +1042,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImagePermissions failed: unknown result"); } - public void setImageOwner(String userToken, String imageBaseId, String newOwnerId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public void setImageOwner(java.lang.String userToken, java.lang.String imageBaseId, java.lang.String newOwnerId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_setImageOwner(userToken, imageBaseId, newOwnerId); recv_setImageOwner(); } - public void send_setImageOwner(String userToken, String imageBaseId, String newOwnerId) throws org.apache.thrift.TException + public void send_setImageOwner(java.lang.String userToken, java.lang.String imageBaseId, java.lang.String newOwnerId) throws org.apache.thrift.TException { setImageOwner_args args = new setImageOwner_args(); args.setUserToken(userToken); @@ -1100,13 +1073,13 @@ public class SatelliteServer { return; } - public void setImageVersionExpiry(String userToken, String imageBaseId, long expireTime) throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException + public void setImageVersionExpiry(java.lang.String userToken, java.lang.String imageBaseId, long expireTime) throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException { send_setImageVersionExpiry(userToken, imageBaseId, expireTime); recv_setImageVersionExpiry(); } - public void send_setImageVersionExpiry(String userToken, String imageBaseId, long expireTime) throws org.apache.thrift.TException + public void send_setImageVersionExpiry(java.lang.String userToken, java.lang.String imageBaseId, long expireTime) throws org.apache.thrift.TException { setImageVersionExpiry_args args = new setImageVersionExpiry_args(); args.setUserToken(userToken); @@ -1134,13 +1107,13 @@ public class SatelliteServer { return; } - public ByteBuffer getImageVersionVirtConfig(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public java.nio.ByteBuffer getImageVersionVirtConfig(java.lang.String userToken, java.lang.String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_getImageVersionVirtConfig(userToken, imageVersionId); return recv_getImageVersionVirtConfig(); } - public void send_getImageVersionVirtConfig(String userToken, String imageVersionId) throws org.apache.thrift.TException + public void send_getImageVersionVirtConfig(java.lang.String userToken, java.lang.String imageVersionId) throws org.apache.thrift.TException { getImageVersionVirtConfig_args args = new getImageVersionVirtConfig_args(); args.setUserToken(userToken); @@ -1148,7 +1121,7 @@ public class SatelliteServer { sendBase("getImageVersionVirtConfig", args); } - public ByteBuffer recv_getImageVersionVirtConfig() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public java.nio.ByteBuffer recv_getImageVersionVirtConfig() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { getImageVersionVirtConfig_result result = new getImageVersionVirtConfig_result(); receiveBase(result, "getImageVersionVirtConfig"); @@ -1167,13 +1140,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageVersionVirtConfig failed: unknown result"); } - public void setImageVersionVirtConfig(String userToken, String imageVersionId, ByteBuffer meta) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public void setImageVersionVirtConfig(java.lang.String userToken, java.lang.String imageVersionId, java.nio.ByteBuffer meta) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_setImageVersionVirtConfig(userToken, imageVersionId, meta); recv_setImageVersionVirtConfig(); } - public void send_setImageVersionVirtConfig(String userToken, String imageVersionId, ByteBuffer meta) throws org.apache.thrift.TException + public void send_setImageVersionVirtConfig(java.lang.String userToken, java.lang.String imageVersionId, java.nio.ByteBuffer meta) throws org.apache.thrift.TException { setImageVersionVirtConfig_args args = new setImageVersionVirtConfig_args(); args.setUserToken(userToken); @@ -1198,13 +1171,13 @@ public class SatelliteServer { return; } - public String requestImageReplication(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public java.lang.String requestImageReplication(java.lang.String userToken, java.lang.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 + public void send_requestImageReplication(java.lang.String userToken, java.lang.String imageVersionId) throws org.apache.thrift.TException { requestImageReplication_args args = new requestImageReplication_args(); args.setUserToken(userToken); @@ -1212,7 +1185,7 @@ public class SatelliteServer { sendBase("requestImageReplication", args); } - public String recv_requestImageReplication() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public java.lang.String recv_requestImageReplication() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { requestImageReplication_result result = new requestImageReplication_result(); receiveBase(result, "requestImageReplication"); @@ -1231,13 +1204,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "requestImageReplication failed: unknown result"); } - public String publishImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException + public java.lang.String publishImageVersion(java.lang.String userToken, java.lang.String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException { send_publishImageVersion(userToken, imageVersionId); return recv_publishImageVersion(); } - public void send_publishImageVersion(String userToken, String imageVersionId) throws org.apache.thrift.TException + public void send_publishImageVersion(java.lang.String userToken, java.lang.String imageVersionId) throws org.apache.thrift.TException { publishImageVersion_args args = new publishImageVersion_args(); args.setUserToken(userToken); @@ -1245,7 +1218,7 @@ public class SatelliteServer { sendBase("publishImageVersion", args); } - public String recv_publishImageVersion() throws TAuthorizationException, TNotFoundException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException + public java.lang.String recv_publishImageVersion() throws TAuthorizationException, TNotFoundException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException { publishImageVersion_result result = new publishImageVersion_result(); receiveBase(result, "publishImageVersion"); @@ -1267,13 +1240,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "publishImageVersion failed: unknown result"); } - public String createLecture(String userToken, LectureWrite lecture) throws TAuthorizationException, TInvocationException, TInvalidDateParam, TNotFoundException, org.apache.thrift.TException + public java.lang.String createLecture(java.lang.String userToken, LectureWrite lecture) throws TAuthorizationException, TInvocationException, TInvalidDateParam, TNotFoundException, org.apache.thrift.TException { send_createLecture(userToken, lecture); return recv_createLecture(); } - public void send_createLecture(String userToken, LectureWrite lecture) throws org.apache.thrift.TException + public void send_createLecture(java.lang.String userToken, LectureWrite lecture) throws org.apache.thrift.TException { createLecture_args args = new createLecture_args(); args.setUserToken(userToken); @@ -1281,7 +1254,7 @@ public class SatelliteServer { sendBase("createLecture", args); } - public String recv_createLecture() throws TAuthorizationException, TInvocationException, TInvalidDateParam, TNotFoundException, org.apache.thrift.TException + public java.lang.String recv_createLecture() throws TAuthorizationException, TInvocationException, TInvalidDateParam, TNotFoundException, org.apache.thrift.TException { createLecture_result result = new createLecture_result(); receiveBase(result, "createLecture"); @@ -1303,13 +1276,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createLecture failed: unknown result"); } - public void updateLecture(String userToken, String lectureId, LectureWrite lecture) throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException + public void updateLecture(java.lang.String userToken, java.lang.String lectureId, LectureWrite lecture) throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException { send_updateLecture(userToken, lectureId, lecture); recv_updateLecture(); } - public void send_updateLecture(String userToken, String lectureId, LectureWrite lecture) throws org.apache.thrift.TException + public void send_updateLecture(java.lang.String userToken, java.lang.String lectureId, LectureWrite lecture) throws org.apache.thrift.TException { updateLecture_args args = new updateLecture_args(); args.setUserToken(userToken); @@ -1337,13 +1310,13 @@ public class SatelliteServer { return; } - public List getLectureList(String userToken, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public java.util.List getLectureList(java.lang.String userToken, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_getLectureList(userToken, page); return recv_getLectureList(); } - public void send_getLectureList(String userToken, int page) throws org.apache.thrift.TException + public void send_getLectureList(java.lang.String userToken, int page) throws org.apache.thrift.TException { getLectureList_args args = new getLectureList_args(); args.setUserToken(userToken); @@ -1351,7 +1324,7 @@ public class SatelliteServer { sendBase("getLectureList", args); } - public List recv_getLectureList() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public java.util.List recv_getLectureList() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { getLectureList_result result = new getLectureList_result(); receiveBase(result, "getLectureList"); @@ -1367,13 +1340,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureList failed: unknown result"); } - public LectureRead getLectureDetails(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public LectureRead getLectureDetails(java.lang.String userToken, java.lang.String lectureId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_getLectureDetails(userToken, lectureId); return recv_getLectureDetails(); } - public void send_getLectureDetails(String userToken, String lectureId) throws org.apache.thrift.TException + public void send_getLectureDetails(java.lang.String userToken, java.lang.String lectureId) throws org.apache.thrift.TException { getLectureDetails_args args = new getLectureDetails_args(); args.setUserToken(userToken); @@ -1400,13 +1373,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureDetails failed: unknown result"); } - public void deleteLecture(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public void deleteLecture(java.lang.String userToken, java.lang.String lectureId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_deleteLecture(userToken, lectureId); recv_deleteLecture(); } - public void send_deleteLecture(String userToken, String lectureId) throws org.apache.thrift.TException + public void send_deleteLecture(java.lang.String userToken, java.lang.String lectureId) throws org.apache.thrift.TException { deleteLecture_args args = new deleteLecture_args(); args.setUserToken(userToken); @@ -1430,13 +1403,13 @@ public class SatelliteServer { return; } - public void writeLecturePermissions(String userToken, String lectureId, Map permissions) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public void writeLecturePermissions(java.lang.String userToken, java.lang.String lectureId, java.util.Map permissions) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_writeLecturePermissions(userToken, lectureId, permissions); recv_writeLecturePermissions(); } - public void send_writeLecturePermissions(String userToken, String lectureId, Map permissions) throws org.apache.thrift.TException + public void send_writeLecturePermissions(java.lang.String userToken, java.lang.String lectureId, java.util.Map permissions) throws org.apache.thrift.TException { writeLecturePermissions_args args = new writeLecturePermissions_args(); args.setUserToken(userToken); @@ -1461,13 +1434,13 @@ public class SatelliteServer { return; } - public Map getLecturePermissions(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public java.util.Map getLecturePermissions(java.lang.String userToken, java.lang.String lectureId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_getLecturePermissions(userToken, lectureId); return recv_getLecturePermissions(); } - public void send_getLecturePermissions(String userToken, String lectureId) throws org.apache.thrift.TException + public void send_getLecturePermissions(java.lang.String userToken, java.lang.String lectureId) throws org.apache.thrift.TException { getLecturePermissions_args args = new getLecturePermissions_args(); args.setUserToken(userToken); @@ -1475,7 +1448,7 @@ public class SatelliteServer { sendBase("getLecturePermissions", args); } - public Map recv_getLecturePermissions() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public java.util.Map recv_getLecturePermissions() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { getLecturePermissions_result result = new getLecturePermissions_result(); receiveBase(result, "getLecturePermissions"); @@ -1494,13 +1467,13 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLecturePermissions failed: unknown result"); } - public void setLectureOwner(String userToken, String lectureId, String newOwnerId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + public void setLectureOwner(java.lang.String userToken, java.lang.String lectureId, java.lang.String newOwnerId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_setLectureOwner(userToken, lectureId, newOwnerId); recv_setLectureOwner(); } - public void send_setLectureOwner(String userToken, String lectureId, String newOwnerId) throws org.apache.thrift.TException + public void send_setLectureOwner(java.lang.String userToken, java.lang.String lectureId, java.lang.String newOwnerId) throws org.apache.thrift.TException { setLectureOwner_args args = new setLectureOwner_args(); args.setUserToken(userToken); @@ -1525,13 +1498,13 @@ public class SatelliteServer { return; } - public PredefinedData getPredefinedData(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public PredefinedData getPredefinedData(java.lang.String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_getPredefinedData(userToken); return recv_getPredefinedData(); } - public void send_getPredefinedData(String userToken) throws org.apache.thrift.TException + public void send_getPredefinedData(java.lang.String userToken) throws org.apache.thrift.TException { getPredefinedData_args args = new getPredefinedData_args(); args.setUserToken(userToken); @@ -1572,16 +1545,16 @@ public class SatelliteServer { super(protocolFactory, clientManager, transport); } - public void getVersion(long clientVersion, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getVersion(long clientVersion, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getVersion_call method_call = new getVersion_call(clientVersion, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getVersion_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class getVersion_call extends org.apache.thrift.async.TAsyncMethodCall { private long clientVersion; - public getVersion_call(long clientVersion, 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 { + public getVersion_call(long clientVersion, 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.clientVersion = clientVersion; } @@ -1594,9 +1567,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public long getResult() throws org.apache.thrift.TException { + public java.lang.Long getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1604,15 +1577,15 @@ public class SatelliteServer { } } - public void getSupportedFeatures(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getSupportedFeatures(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getSupportedFeatures_call method_call = new getSupportedFeatures_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getSupportedFeatures_call extends org.apache.thrift.async.TAsyncMethodCall { - public getSupportedFeatures_call(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 { + public static class getSupportedFeatures_call extends org.apache.thrift.async.TAsyncMethodCall { + public getSupportedFeatures_call(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); } @@ -1623,9 +1596,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public String getResult() throws org.apache.thrift.TException { + public java.lang.String getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1633,15 +1606,15 @@ public class SatelliteServer { } } - public void getConfiguration(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getConfiguration(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getConfiguration_call method_call = new getConfiguration_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getConfiguration_call extends org.apache.thrift.async.TAsyncMethodCall { - public getConfiguration_call(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 { + public static class getConfiguration_call extends org.apache.thrift.async.TAsyncMethodCall { + public getConfiguration_call(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); } @@ -1654,7 +1627,7 @@ public class SatelliteServer { public SatelliteConfig getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1662,20 +1635,20 @@ public class SatelliteServer { } } - public void requestImageVersionUpload(String userToken, String imageBaseId, long fileSize, List blockHashes, ByteBuffer machineDescription, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void requestImageVersionUpload(java.lang.String userToken, java.lang.String imageBaseId, long fileSize, java.util.List blockHashes, java.nio.ByteBuffer machineDescription, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); requestImageVersionUpload_call method_call = new requestImageVersionUpload_call(userToken, imageBaseId, fileSize, blockHashes, machineDescription, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class requestImageVersionUpload_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageBaseId; + public static class requestImageVersionUpload_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageBaseId; private long fileSize; - private List blockHashes; - private ByteBuffer machineDescription; - public requestImageVersionUpload_call(String userToken, String imageBaseId, long fileSize, List blockHashes, ByteBuffer machineDescription, 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 java.util.List blockHashes; + private java.nio.ByteBuffer machineDescription; + public requestImageVersionUpload_call(java.lang.String userToken, java.lang.String imageBaseId, long fileSize, java.util.List blockHashes, java.nio.ByteBuffer machineDescription, 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.imageBaseId = imageBaseId; @@ -1698,7 +1671,7 @@ public class SatelliteServer { public TransferInformation getResult() throws TTransferRejectedException, TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1706,18 +1679,18 @@ public class SatelliteServer { } } - public void updateBlockHashes(String uploadToken, List blockHashes, String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void updateBlockHashes(java.lang.String uploadToken, java.util.List blockHashes, java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); updateBlockHashes_call method_call = new updateBlockHashes_call(uploadToken, blockHashes, userToken, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class updateBlockHashes_call extends org.apache.thrift.async.TAsyncMethodCall { - private String uploadToken; - private List blockHashes; - private String userToken; - public updateBlockHashes_call(String uploadToken, List blockHashes, String userToken, 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 { + public static class updateBlockHashes_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String uploadToken; + private java.util.List blockHashes; + private java.lang.String userToken; + public updateBlockHashes_call(java.lang.String uploadToken, java.util.List blockHashes, java.lang.String userToken, 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.uploadToken = uploadToken; this.blockHashes = blockHashes; @@ -1734,28 +1707,28 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TInvalidTokenException, org.apache.thrift.TException { + public Void getResult() throws TInvalidTokenException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_updateBlockHashes(); + return null; } } - public void setUploadOptions(String userToken, String uploadToken, UploadOptions options, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void setUploadOptions(java.lang.String userToken, java.lang.String uploadToken, UploadOptions options, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); setUploadOptions_call method_call = new setUploadOptions_call(userToken, uploadToken, options, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class setUploadOptions_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String uploadToken; + public static class setUploadOptions_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String uploadToken; private UploadOptions options; - public setUploadOptions_call(String userToken, String uploadToken, UploadOptions options, 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 { + public setUploadOptions_call(java.lang.String userToken, java.lang.String uploadToken, UploadOptions options, 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.uploadToken = uploadToken; @@ -1774,7 +1747,7 @@ public class SatelliteServer { public UploadOptions getResult() throws TAuthorizationException, TInvalidTokenException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1782,16 +1755,16 @@ public class SatelliteServer { } } - public void cancelUpload(String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void cancelUpload(java.lang.String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); cancelUpload_call method_call = new cancelUpload_call(uploadToken, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class cancelUpload_call extends org.apache.thrift.async.TAsyncMethodCall { - private String uploadToken; - public cancelUpload_call(String uploadToken, 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 { + public static class cancelUpload_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String uploadToken; + public cancelUpload_call(java.lang.String uploadToken, 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.uploadToken = uploadToken; } @@ -1804,26 +1777,26 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TInvalidTokenException, org.apache.thrift.TException { + public Void getResult() throws TInvalidTokenException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_cancelUpload(); + return null; } } - public void queryUploadStatus(String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void queryUploadStatus(java.lang.String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); queryUploadStatus_call method_call = new queryUploadStatus_call(uploadToken, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class queryUploadStatus_call extends org.apache.thrift.async.TAsyncMethodCall { - private String uploadToken; - public queryUploadStatus_call(String uploadToken, 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 { + public static class queryUploadStatus_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String uploadToken; + public queryUploadStatus_call(java.lang.String uploadToken, 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.uploadToken = uploadToken; } @@ -1838,7 +1811,7 @@ public class SatelliteServer { public TransferStatus getResult() throws TInvalidTokenException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1846,17 +1819,17 @@ public class SatelliteServer { } } - public void requestDownload(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void requestDownload(java.lang.String userToken, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); requestDownload_call method_call = new requestDownload_call(userToken, imageVersionId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class requestDownload_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageVersionId; - public requestDownload_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 { + public static class requestDownload_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageVersionId; + public requestDownload_call(java.lang.String userToken, java.lang.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; @@ -1873,7 +1846,7 @@ public class SatelliteServer { public TransferInformation getResult() throws TTransferRejectedException, TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1881,16 +1854,16 @@ public class SatelliteServer { } } - public void cancelDownload(String downloadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void cancelDownload(java.lang.String downloadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); cancelDownload_call method_call = new cancelDownload_call(downloadToken, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class cancelDownload_call extends org.apache.thrift.async.TAsyncMethodCall { - private String downloadToken; - public cancelDownload_call(String downloadToken, 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 { + public static class cancelDownload_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String downloadToken; + public cancelDownload_call(java.lang.String downloadToken, 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.downloadToken = downloadToken; } @@ -1903,26 +1876,26 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TInvalidTokenException, org.apache.thrift.TException { + public Void getResult() throws TInvalidTokenException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_cancelDownload(); + return null; } } - public void isAuthenticated(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void isAuthenticated(java.lang.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); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class isAuthenticated_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - public isAuthenticated_call(String userToken, 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 { + public static class isAuthenticated_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + public isAuthenticated_call(java.lang.String userToken, 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; } @@ -1935,26 +1908,26 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { + public Void getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_isAuthenticated(); + return null; } } - public void whoami(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void whoami(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); whoami_call method_call = new whoami_call(userToken, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class whoami_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - public whoami_call(String userToken, 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 { + public static class whoami_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + public whoami_call(java.lang.String userToken, 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; } @@ -1969,7 +1942,7 @@ public class SatelliteServer { public WhoamiInfo getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -1977,16 +1950,16 @@ public class SatelliteServer { } } - public void invalidateSession(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void invalidateSession(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); invalidateSession_call method_call = new invalidateSession_call(userToken, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class invalidateSession_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - public invalidateSession_call(String userToken, 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 { + public static class invalidateSession_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + public invalidateSession_call(java.lang.String userToken, 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; } @@ -1999,27 +1972,27 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TInvalidTokenException, org.apache.thrift.TException { + public Void getResult() throws TInvalidTokenException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_invalidateSession(); + return null; } } - public void getUserList(String userToken, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getUserList(java.lang.String userToken, int page, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getUserList_call method_call = new getUserList_call(userToken, page, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getUserList_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; + public static class getUserList_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.lang.String userToken; private int page; - public getUserList_call(String userToken, int page, 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 { + public getUserList_call(java.lang.String userToken, int page, 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.page = page; @@ -2034,9 +2007,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public List getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { + public java.util.List getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2044,16 +2017,16 @@ public class SatelliteServer { } } - public void getUserConfig(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getUserConfig(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getUserConfig_call method_call = new getUserConfig_call(userToken, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getUserConfig_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - public getUserConfig_call(String userToken, 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 { + public static class getUserConfig_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + public getUserConfig_call(java.lang.String userToken, 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; } @@ -2068,7 +2041,7 @@ public class SatelliteServer { public SatelliteUserConfig getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2076,17 +2049,17 @@ public class SatelliteServer { } } - public void setUserConfig(String userToken, SatelliteUserConfig config, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void setUserConfig(java.lang.String userToken, SatelliteUserConfig config, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); setUserConfig_call method_call = new setUserConfig_call(userToken, config, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class setUserConfig_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; + public static class setUserConfig_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; private SatelliteUserConfig config; - public setUserConfig_call(String userToken, SatelliteUserConfig config, 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 { + public setUserConfig_call(java.lang.String userToken, SatelliteUserConfig config, 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.config = config; @@ -2101,25 +2074,25 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { + public Void getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_setUserConfig(); + return null; } } - public void getOperatingSystems(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 { checkReady(); getOperatingSystems_call method_call = new getOperatingSystems_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getOperatingSystems_call extends org.apache.thrift.async.TAsyncMethodCall { - public getOperatingSystems_call(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 { + public static class getOperatingSystems_call extends org.apache.thrift.async.TAsyncMethodCall> { + public getOperatingSystems_call(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); } @@ -2130,9 +2103,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public List getResult() throws org.apache.thrift.TException { + public java.util.List getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2140,15 +2113,15 @@ public class SatelliteServer { } } - public void getVirtualizers(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getVirtualizers(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getVirtualizers_call method_call = new getVirtualizers_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getVirtualizers_call extends org.apache.thrift.async.TAsyncMethodCall { - public getVirtualizers_call(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 { + public static class getVirtualizers_call extends org.apache.thrift.async.TAsyncMethodCall> { + public getVirtualizers_call(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); } @@ -2159,9 +2132,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public List getResult() throws org.apache.thrift.TException { + public java.util.List getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2169,15 +2142,15 @@ public class SatelliteServer { } } - public void getAllOrganizations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getAllOrganizations(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getAllOrganizations_call method_call = new getAllOrganizations_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getAllOrganizations_call extends org.apache.thrift.async.TAsyncMethodCall { - public getAllOrganizations_call(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 { + public static class getAllOrganizations_call extends org.apache.thrift.async.TAsyncMethodCall> { + public getAllOrganizations_call(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); } @@ -2188,9 +2161,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public List getResult() throws org.apache.thrift.TException { + public java.util.List getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2198,15 +2171,15 @@ public class SatelliteServer { } } - public void getLocations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getLocations(org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getLocations_call method_call = new getLocations_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getLocations_call extends org.apache.thrift.async.TAsyncMethodCall { - public getLocations_call(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 { + public static class getLocations_call extends org.apache.thrift.async.TAsyncMethodCall> { + public getLocations_call(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); } @@ -2217,9 +2190,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public List getResult() throws org.apache.thrift.TException { + public java.util.List getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2227,15 +2200,15 @@ public class SatelliteServer { } } - public void getStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getStatus_call method_call = new getStatus_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getStatus_call extends org.apache.thrift.async.TAsyncMethodCall { - public getStatus_call(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 { + public static class getStatus_call extends org.apache.thrift.async.TAsyncMethodCall { + public getStatus_call(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); } @@ -2248,7 +2221,7 @@ public class SatelliteServer { public SatelliteStatus getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2256,18 +2229,18 @@ public class SatelliteServer { } } - public void getImageList(String userToken, List tagSearch, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImageList(java.lang.String userToken, java.util.List tagSearch, int page, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getImageList_call method_call = new getImageList_call(userToken, tagSearch, page, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getImageList_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private List tagSearch; + public static class getImageList_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.lang.String userToken; + private java.util.List tagSearch; private int page; - public getImageList_call(String userToken, List tagSearch, int page, 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 { + public getImageList_call(java.lang.String userToken, java.util.List tagSearch, int page, 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.tagSearch = tagSearch; @@ -2284,9 +2257,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public List getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { + public java.util.List getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2294,17 +2267,17 @@ public class SatelliteServer { } } - public void getImageDetails(String userToken, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImageDetails(java.lang.String userToken, java.lang.String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getImageDetails_call method_call = new getImageDetails_call(userToken, imageBaseId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getImageDetails_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageBaseId; - public getImageDetails_call(String userToken, String imageBaseId, 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 { + public static class getImageDetails_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageBaseId; + public getImageDetails_call(java.lang.String userToken, java.lang.String imageBaseId, 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.imageBaseId = imageBaseId; @@ -2321,7 +2294,7 @@ public class SatelliteServer { public ImageDetailsRead 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!"); + throw new java.lang.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); @@ -2329,17 +2302,17 @@ public class SatelliteServer { } } - public void createImage(String userToken, String imageName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void createImage(java.lang.String userToken, java.lang.String imageName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); createImage_call method_call = new createImage_call(userToken, imageName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class createImage_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageName; - public createImage_call(String userToken, String imageName, 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 { + public static class createImage_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageName; + public createImage_call(java.lang.String userToken, java.lang.String imageName, 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.imageName = imageName; @@ -2354,9 +2327,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public String getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { + public java.lang.String getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2364,18 +2337,18 @@ public class SatelliteServer { } } - public void updateImageBase(String userToken, String imageBaseId, ImageBaseWrite image, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void updateImageBase(java.lang.String userToken, java.lang.String imageBaseId, ImageBaseWrite image, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); updateImageBase_call method_call = new updateImageBase_call(userToken, imageBaseId, image, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class updateImageBase_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageBaseId; + public static class updateImageBase_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageBaseId; private ImageBaseWrite image; - public updateImageBase_call(String userToken, String imageBaseId, ImageBaseWrite image, 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 { + public updateImageBase_call(java.lang.String userToken, java.lang.String imageBaseId, ImageBaseWrite image, 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.imageBaseId = imageBaseId; @@ -2392,28 +2365,28 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + public Void 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!"); + throw new java.lang.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); - (new Client(prot)).recv_updateImageBase(); + return null; } } - public void updateImageVersion(String userToken, String imageVersionId, ImageVersionWrite image, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void updateImageVersion(java.lang.String userToken, java.lang.String imageVersionId, ImageVersionWrite image, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); updateImageVersion_call method_call = new updateImageVersion_call(userToken, imageVersionId, image, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class updateImageVersion_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageVersionId; + public static class updateImageVersion_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageVersionId; private ImageVersionWrite image; - public updateImageVersion_call(String userToken, String imageVersionId, ImageVersionWrite image, 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 { + public updateImageVersion_call(java.lang.String userToken, java.lang.String imageVersionId, ImageVersionWrite image, 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; @@ -2430,27 +2403,27 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + public Void 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!"); + throw new java.lang.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); - (new Client(prot)).recv_updateImageVersion(); + return null; } } - public void deleteImageVersion(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteImageVersion(java.lang.String userToken, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteImageVersion_call method_call = new deleteImageVersion_call(userToken, imageVersionId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class deleteImageVersion_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageVersionId; - public deleteImageVersion_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 { + public static class deleteImageVersion_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageVersionId; + public deleteImageVersion_call(java.lang.String userToken, java.lang.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; @@ -2465,27 +2438,27 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + public Void 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!"); + throw new java.lang.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); - (new Client(prot)).recv_deleteImageVersion(); + return null; } } - public void deleteImageBase(String userToken, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteImageBase(java.lang.String userToken, java.lang.String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteImageBase_call method_call = new deleteImageBase_call(userToken, imageBaseId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class deleteImageBase_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageBaseId; - public deleteImageBase_call(String userToken, String imageBaseId, 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 { + public static class deleteImageBase_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageBaseId; + public deleteImageBase_call(java.lang.String userToken, java.lang.String imageBaseId, 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.imageBaseId = imageBaseId; @@ -2500,28 +2473,28 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + public Void 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!"); + throw new java.lang.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); - (new Client(prot)).recv_deleteImageBase(); + return null; } } - public void writeImagePermissions(String userToken, String imageBaseId, Map permissions, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void writeImagePermissions(java.lang.String userToken, java.lang.String imageBaseId, java.util.Map permissions, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); writeImagePermissions_call method_call = new writeImagePermissions_call(userToken, imageBaseId, permissions, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class writeImagePermissions_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageBaseId; - private Map permissions; - public writeImagePermissions_call(String userToken, String imageBaseId, Map permissions, 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 { + public static class writeImagePermissions_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageBaseId; + private java.util.Map permissions; + public writeImagePermissions_call(java.lang.String userToken, java.lang.String imageBaseId, java.util.Map permissions, 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.imageBaseId = imageBaseId; @@ -2538,27 +2511,27 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + public Void 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!"); + throw new java.lang.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); - (new Client(prot)).recv_writeImagePermissions(); + return null; } } - public void getImagePermissions(String userToken, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImagePermissions(java.lang.String userToken, java.lang.String imageBaseId, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getImagePermissions_call method_call = new getImagePermissions_call(userToken, imageBaseId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getImagePermissions_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageBaseId; - public getImagePermissions_call(String userToken, String imageBaseId, 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 { + public static class getImagePermissions_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.lang.String userToken; + private java.lang.String imageBaseId; + public getImagePermissions_call(java.lang.String userToken, java.lang.String imageBaseId, 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.imageBaseId = imageBaseId; @@ -2573,9 +2546,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public Map getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + public java.util.Map 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!"); + throw new java.lang.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); @@ -2583,18 +2556,18 @@ public class SatelliteServer { } } - public void setImageOwner(String userToken, String imageBaseId, String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void setImageOwner(java.lang.String userToken, java.lang.String imageBaseId, java.lang.String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); setImageOwner_call method_call = new setImageOwner_call(userToken, imageBaseId, newOwnerId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class setImageOwner_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageBaseId; - private String newOwnerId; - public setImageOwner_call(String userToken, String imageBaseId, String newOwnerId, 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 { + public static class setImageOwner_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageBaseId; + private java.lang.String newOwnerId; + public setImageOwner_call(java.lang.String userToken, java.lang.String imageBaseId, java.lang.String newOwnerId, 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.imageBaseId = imageBaseId; @@ -2611,28 +2584,28 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + public Void 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!"); + throw new java.lang.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); - (new Client(prot)).recv_setImageOwner(); + return null; } } - public void setImageVersionExpiry(String userToken, String imageBaseId, long expireTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void setImageVersionExpiry(java.lang.String userToken, java.lang.String imageBaseId, long expireTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); setImageVersionExpiry_call method_call = new setImageVersionExpiry_call(userToken, imageBaseId, expireTime, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class setImageVersionExpiry_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageBaseId; + public static class setImageVersionExpiry_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageBaseId; private long expireTime; - public setImageVersionExpiry_call(String userToken, String imageBaseId, long expireTime, 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 { + public setImageVersionExpiry_call(java.lang.String userToken, java.lang.String imageBaseId, long expireTime, 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.imageBaseId = imageBaseId; @@ -2649,27 +2622,27 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException { + public Void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_setImageVersionExpiry(); + return null; } } - public void getImageVersionVirtConfig(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImageVersionVirtConfig(java.lang.String userToken, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getImageVersionVirtConfig_call method_call = new getImageVersionVirtConfig_call(userToken, imageVersionId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getImageVersionVirtConfig_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageVersionId; - public getImageVersionVirtConfig_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 { + public static class getImageVersionVirtConfig_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageVersionId; + public getImageVersionVirtConfig_call(java.lang.String userToken, java.lang.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; @@ -2684,9 +2657,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public ByteBuffer getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + public java.nio.ByteBuffer 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!"); + throw new java.lang.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); @@ -2694,18 +2667,18 @@ public class SatelliteServer { } } - public void setImageVersionVirtConfig(String userToken, String imageVersionId, ByteBuffer meta, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void setImageVersionVirtConfig(java.lang.String userToken, java.lang.String imageVersionId, java.nio.ByteBuffer meta, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); setImageVersionVirtConfig_call method_call = new setImageVersionVirtConfig_call(userToken, imageVersionId, meta, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class setImageVersionVirtConfig_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageVersionId; - private ByteBuffer meta; - public setImageVersionVirtConfig_call(String userToken, String imageVersionId, ByteBuffer meta, 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 { + public static class setImageVersionVirtConfig_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageVersionId; + private java.nio.ByteBuffer meta; + public setImageVersionVirtConfig_call(java.lang.String userToken, java.lang.String imageVersionId, java.nio.ByteBuffer meta, 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; @@ -2722,27 +2695,27 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + public Void 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!"); + throw new java.lang.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); - (new Client(prot)).recv_setImageVersionVirtConfig(); + return null; } } - public void requestImageReplication(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void requestImageReplication(java.lang.String userToken, java.lang.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 { + public static class requestImageReplication_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageVersionId; + public requestImageReplication_call(java.lang.String userToken, java.lang.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; @@ -2757,9 +2730,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public String getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + public java.lang.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!"); + throw new java.lang.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); @@ -2767,17 +2740,17 @@ public class SatelliteServer { } } - public void publishImageVersion(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void publishImageVersion(java.lang.String userToken, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); publishImageVersion_call method_call = new publishImageVersion_call(userToken, imageVersionId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class publishImageVersion_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageVersionId; - public publishImageVersion_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 { + public static class publishImageVersion_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String imageVersionId; + public publishImageVersion_call(java.lang.String userToken, java.lang.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; @@ -2792,9 +2765,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public String getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException { + public java.lang.String getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2802,17 +2775,17 @@ public class SatelliteServer { } } - public void createLecture(String userToken, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void createLecture(java.lang.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); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class createLecture_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; + public static class createLecture_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; private LectureWrite lecture; - public createLecture_call(String userToken, LectureWrite lecture, 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 { + public createLecture_call(java.lang.String userToken, LectureWrite lecture, 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.lecture = lecture; @@ -2827,9 +2800,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public String getResult() throws TAuthorizationException, TInvocationException, TInvalidDateParam, TNotFoundException, org.apache.thrift.TException { + public java.lang.String getResult() throws TAuthorizationException, TInvocationException, TInvalidDateParam, TNotFoundException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2837,18 +2810,18 @@ public class SatelliteServer { } } - public void updateLecture(String userToken, String lectureId, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void updateLecture(java.lang.String userToken, java.lang.String lectureId, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); updateLecture_call method_call = new updateLecture_call(userToken, lectureId, lecture, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class updateLecture_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String lectureId; + public static class updateLecture_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String lectureId; private LectureWrite lecture; - public updateLecture_call(String userToken, String lectureId, LectureWrite lecture, 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 { + public updateLecture_call(java.lang.String userToken, java.lang.String lectureId, LectureWrite lecture, 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.lectureId = lectureId; @@ -2865,27 +2838,27 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException { + public Void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); - (new Client(prot)).recv_updateLecture(); + return null; } } - public void getLectureList(String userToken, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getLectureList(java.lang.String userToken, int page, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getLectureList_call method_call = new getLectureList_call(userToken, page, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getLectureList_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; + public static class getLectureList_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.lang.String userToken; private int page; - public getLectureList_call(String userToken, int page, 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 { + public getLectureList_call(java.lang.String userToken, int page, 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.page = page; @@ -2900,9 +2873,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public List getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { + public java.util.List getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -2910,17 +2883,17 @@ public class SatelliteServer { } } - public void getLectureDetails(String userToken, String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getLectureDetails(java.lang.String userToken, java.lang.String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getLectureDetails_call method_call = new getLectureDetails_call(userToken, lectureId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getLectureDetails_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String lectureId; - public getLectureDetails_call(String userToken, String lectureId, 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 { + public static class getLectureDetails_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String lectureId; + public getLectureDetails_call(java.lang.String userToken, java.lang.String lectureId, 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.lectureId = lectureId; @@ -2937,7 +2910,7 @@ public class SatelliteServer { public LectureRead 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!"); + throw new java.lang.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); @@ -2945,17 +2918,17 @@ public class SatelliteServer { } } - public void deleteLecture(String userToken, String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void deleteLecture(java.lang.String userToken, java.lang.String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteLecture_call method_call = new deleteLecture_call(userToken, lectureId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class deleteLecture_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String lectureId; - public deleteLecture_call(String userToken, String lectureId, 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 { + public static class deleteLecture_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String lectureId; + public deleteLecture_call(java.lang.String userToken, java.lang.String lectureId, 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.lectureId = lectureId; @@ -2970,28 +2943,28 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + public Void 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!"); + throw new java.lang.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); - (new Client(prot)).recv_deleteLecture(); + return null; } } - public void writeLecturePermissions(String userToken, String lectureId, Map permissions, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void writeLecturePermissions(java.lang.String userToken, java.lang.String lectureId, java.util.Map permissions, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); writeLecturePermissions_call method_call = new writeLecturePermissions_call(userToken, lectureId, permissions, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class writeLecturePermissions_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String lectureId; - private Map permissions; - public writeLecturePermissions_call(String userToken, String lectureId, Map permissions, 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 { + public static class writeLecturePermissions_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String lectureId; + private java.util.Map permissions; + public writeLecturePermissions_call(java.lang.String userToken, java.lang.String lectureId, java.util.Map permissions, 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.lectureId = lectureId; @@ -3008,27 +2981,27 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + public Void 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!"); + throw new java.lang.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); - (new Client(prot)).recv_writeLecturePermissions(); + return null; } } - public void getLecturePermissions(String userToken, String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getLecturePermissions(java.lang.String userToken, java.lang.String lectureId, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { checkReady(); getLecturePermissions_call method_call = new getLecturePermissions_call(userToken, lectureId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getLecturePermissions_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String lectureId; - public getLecturePermissions_call(String userToken, String lectureId, 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 { + public static class getLecturePermissions_call extends org.apache.thrift.async.TAsyncMethodCall> { + private java.lang.String userToken; + private java.lang.String lectureId; + public getLecturePermissions_call(java.lang.String userToken, java.lang.String lectureId, 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.lectureId = lectureId; @@ -3043,9 +3016,9 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public Map getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + public java.util.Map 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!"); + throw new java.lang.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); @@ -3053,18 +3026,18 @@ public class SatelliteServer { } } - public void setLectureOwner(String userToken, String lectureId, String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void setLectureOwner(java.lang.String userToken, java.lang.String lectureId, java.lang.String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); setLectureOwner_call method_call = new setLectureOwner_call(userToken, lectureId, newOwnerId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class setLectureOwner_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String lectureId; - private String newOwnerId; - public setLectureOwner_call(String userToken, String lectureId, String newOwnerId, 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 { + public static class setLectureOwner_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + private java.lang.String lectureId; + private java.lang.String newOwnerId; + public setLectureOwner_call(java.lang.String userToken, java.lang.String lectureId, java.lang.String newOwnerId, 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.lectureId = lectureId; @@ -3081,26 +3054,26 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + public Void 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!"); + throw new java.lang.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); - (new Client(prot)).recv_setLectureOwner(); + return null; } } - public void getPredefinedData(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getPredefinedData(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getPredefinedData_call method_call = new getPredefinedData_call(userToken, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getPredefinedData_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - public getPredefinedData_call(String userToken, 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 { + public static class getPredefinedData_call extends org.apache.thrift.async.TAsyncMethodCall { + private java.lang.String userToken; + public getPredefinedData_call(java.lang.String userToken, 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; } @@ -3115,7 +3088,7 @@ public class SatelliteServer { public PredefinedData getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); + throw new java.lang.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); @@ -3126,16 +3099,16 @@ public class SatelliteServer { } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); + private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { - super(iface, getProcessMap(new HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected Processor(I iface, Map> processMap) { + protected Processor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static Map> getProcessMap(Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("getVersion", new getVersion()); processMap.put("getSupportedFeatures", new getSupportedFeatures()); processMap.put("getConfiguration", new getConfiguration()); @@ -3197,6 +3170,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getVersion_result getResult(I iface, getVersion_args args) throws org.apache.thrift.TException { getVersion_result result = new getVersion_result(); result.success = iface.getVersion(args.clientVersion); @@ -3218,6 +3196,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getSupportedFeatures_result getResult(I iface, getSupportedFeatures_args args) throws org.apache.thrift.TException { getSupportedFeatures_result result = new getSupportedFeatures_result(); result.success = iface.getSupportedFeatures(); @@ -3238,6 +3221,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getConfiguration_result getResult(I iface, getConfiguration_args args) throws org.apache.thrift.TException { getConfiguration_result result = new getConfiguration_result(); result.success = iface.getConfiguration(); @@ -3258,6 +3246,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public requestImageVersionUpload_result getResult(I iface, requestImageVersionUpload_args args) throws org.apache.thrift.TException { requestImageVersionUpload_result result = new requestImageVersionUpload_result(); try { @@ -3288,6 +3281,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public updateBlockHashes_result getResult(I iface, updateBlockHashes_args args) throws org.apache.thrift.TException { updateBlockHashes_result result = new updateBlockHashes_result(); try { @@ -3312,6 +3310,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public setUploadOptions_result getResult(I iface, setUploadOptions_args args) throws org.apache.thrift.TException { setUploadOptions_result result = new setUploadOptions_result(); try { @@ -3338,6 +3341,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public cancelUpload_result getResult(I iface, cancelUpload_args args) throws org.apache.thrift.TException { cancelUpload_result result = new cancelUpload_result(); try { @@ -3362,6 +3370,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public queryUploadStatus_result getResult(I iface, queryUploadStatus_args args) throws org.apache.thrift.TException { queryUploadStatus_result result = new queryUploadStatus_result(); try { @@ -3386,6 +3399,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public requestDownload_result getResult(I iface, requestDownload_args args) throws org.apache.thrift.TException { requestDownload_result result = new requestDownload_result(); try { @@ -3416,6 +3434,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public cancelDownload_result getResult(I iface, cancelDownload_args args) throws org.apache.thrift.TException { cancelDownload_result result = new cancelDownload_result(); try { @@ -3440,6 +3463,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public isAuthenticated_result getResult(I iface, isAuthenticated_args args) throws org.apache.thrift.TException { isAuthenticated_result result = new isAuthenticated_result(); try { @@ -3466,6 +3494,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public whoami_result getResult(I iface, whoami_args args) throws org.apache.thrift.TException { whoami_result result = new whoami_result(); try { @@ -3492,6 +3525,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public invalidateSession_result getResult(I iface, invalidateSession_args args) throws org.apache.thrift.TException { invalidateSession_result result = new invalidateSession_result(); try { @@ -3516,6 +3554,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getUserList_result getResult(I iface, getUserList_args args) throws org.apache.thrift.TException { getUserList_result result = new getUserList_result(); try { @@ -3542,6 +3585,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getUserConfig_result getResult(I iface, getUserConfig_args args) throws org.apache.thrift.TException { getUserConfig_result result = new getUserConfig_result(); try { @@ -3568,6 +3616,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public setUserConfig_result getResult(I iface, setUserConfig_args args) throws org.apache.thrift.TException { setUserConfig_result result = new setUserConfig_result(); try { @@ -3594,6 +3647,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getOperatingSystems_result getResult(I iface, getOperatingSystems_args args) throws org.apache.thrift.TException { getOperatingSystems_result result = new getOperatingSystems_result(); result.success = iface.getOperatingSystems(); @@ -3614,6 +3672,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getVirtualizers_result getResult(I iface, getVirtualizers_args args) throws org.apache.thrift.TException { getVirtualizers_result result = new getVirtualizers_result(); result.success = iface.getVirtualizers(); @@ -3634,6 +3697,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getAllOrganizations_result getResult(I iface, getAllOrganizations_args args) throws org.apache.thrift.TException { getAllOrganizations_result result = new getAllOrganizations_result(); result.success = iface.getAllOrganizations(); @@ -3654,6 +3722,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getLocations_result getResult(I iface, getLocations_args args) throws org.apache.thrift.TException { getLocations_result result = new getLocations_result(); result.success = iface.getLocations(); @@ -3674,6 +3747,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getStatus_result getResult(I iface, getStatus_args args) throws org.apache.thrift.TException { getStatus_result result = new getStatus_result(); result.success = iface.getStatus(); @@ -3694,6 +3772,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getImageList_result getResult(I iface, getImageList_args args) throws org.apache.thrift.TException { getImageList_result result = new getImageList_result(); try { @@ -3720,6 +3803,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getImageDetails_result getResult(I iface, getImageDetails_args args) throws org.apache.thrift.TException { getImageDetails_result result = new getImageDetails_result(); try { @@ -3748,6 +3836,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public createImage_result getResult(I iface, createImage_args args) throws org.apache.thrift.TException { createImage_result result = new createImage_result(); try { @@ -3774,6 +3867,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public updateImageBase_result getResult(I iface, updateImageBase_args args) throws org.apache.thrift.TException { updateImageBase_result result = new updateImageBase_result(); try { @@ -3802,6 +3900,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public updateImageVersion_result getResult(I iface, updateImageVersion_args args) throws org.apache.thrift.TException { updateImageVersion_result result = new updateImageVersion_result(); try { @@ -3830,6 +3933,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public deleteImageVersion_result getResult(I iface, deleteImageVersion_args args) throws org.apache.thrift.TException { deleteImageVersion_result result = new deleteImageVersion_result(); try { @@ -3858,6 +3966,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public deleteImageBase_result getResult(I iface, deleteImageBase_args args) throws org.apache.thrift.TException { deleteImageBase_result result = new deleteImageBase_result(); try { @@ -3886,6 +3999,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public writeImagePermissions_result getResult(I iface, writeImagePermissions_args args) throws org.apache.thrift.TException { writeImagePermissions_result result = new writeImagePermissions_result(); try { @@ -3914,6 +4032,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getImagePermissions_result getResult(I iface, getImagePermissions_args args) throws org.apache.thrift.TException { getImagePermissions_result result = new getImagePermissions_result(); try { @@ -3942,6 +4065,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public setImageOwner_result getResult(I iface, setImageOwner_args args) throws org.apache.thrift.TException { setImageOwner_result result = new setImageOwner_result(); try { @@ -3970,6 +4098,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public setImageVersionExpiry_result getResult(I iface, setImageVersionExpiry_args args) throws org.apache.thrift.TException { setImageVersionExpiry_result result = new setImageVersionExpiry_result(); try { @@ -4000,6 +4133,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getImageVersionVirtConfig_result getResult(I iface, getImageVersionVirtConfig_args args) throws org.apache.thrift.TException { getImageVersionVirtConfig_result result = new getImageVersionVirtConfig_result(); try { @@ -4028,6 +4166,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public setImageVersionVirtConfig_result getResult(I iface, setImageVersionVirtConfig_args args) throws org.apache.thrift.TException { setImageVersionVirtConfig_result result = new setImageVersionVirtConfig_result(); try { @@ -4056,6 +4199,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public requestImageReplication_result getResult(I iface, requestImageReplication_args args) throws org.apache.thrift.TException { requestImageReplication_result result = new requestImageReplication_result(); try { @@ -4084,6 +4232,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public publishImageVersion_result getResult(I iface, publishImageVersion_args args) throws org.apache.thrift.TException { publishImageVersion_result result = new publishImageVersion_result(); try { @@ -4114,6 +4267,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public createLecture_result getResult(I iface, createLecture_args args) throws org.apache.thrift.TException { createLecture_result result = new createLecture_result(); try { @@ -4144,6 +4302,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public updateLecture_result getResult(I iface, updateLecture_args args) throws org.apache.thrift.TException { updateLecture_result result = new updateLecture_result(); try { @@ -4174,6 +4337,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getLectureList_result getResult(I iface, getLectureList_args args) throws org.apache.thrift.TException { getLectureList_result result = new getLectureList_result(); try { @@ -4200,6 +4368,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getLectureDetails_result getResult(I iface, getLectureDetails_args args) throws org.apache.thrift.TException { getLectureDetails_result result = new getLectureDetails_result(); try { @@ -4228,6 +4401,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public deleteLecture_result getResult(I iface, deleteLecture_args args) throws org.apache.thrift.TException { deleteLecture_result result = new deleteLecture_result(); try { @@ -4256,6 +4434,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public writeLecturePermissions_result getResult(I iface, writeLecturePermissions_args args) throws org.apache.thrift.TException { writeLecturePermissions_result result = new writeLecturePermissions_result(); try { @@ -4284,6 +4467,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getLecturePermissions_result getResult(I iface, getLecturePermissions_args args) throws org.apache.thrift.TException { getLecturePermissions_result result = new getLecturePermissions_result(); try { @@ -4312,6 +4500,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public setLectureOwner_result getResult(I iface, setLectureOwner_args args) throws org.apache.thrift.TException { setLectureOwner_result result = new setLectureOwner_result(); try { @@ -4340,6 +4533,11 @@ public class SatelliteServer { return false; } + @Override + protected boolean rethrowUnhandledExceptions() { + return false; + } + public getPredefinedData_result getResult(I iface, getPredefinedData_args args) throws org.apache.thrift.TException { getPredefinedData_result result = new getPredefinedData_result(); try { @@ -4356,16 +4554,16 @@ public class SatelliteServer { } public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); + private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { - super(iface, getProcessMap(new HashMap>())); + super(iface, getProcessMap(new java.util.HashMap>())); } - protected AsyncProcessor(I iface, Map> processMap) { + protected AsyncProcessor(I iface, java.util.Map> processMap) { super(iface, getProcessMap(processMap)); } - private static Map> getProcessMap(Map> processMap) { + private static java.util.Map> getProcessMap(java.util.Map> processMap) { processMap.put("getVersion", new getVersion()); processMap.put("getSupportedFeatures", new getSupportedFeatures()); processMap.put("getConfiguration", new getConfiguration()); @@ -4414,7 +4612,7 @@ public class SatelliteServer { return processMap; } - public static class getVersion extends org.apache.thrift.AsyncProcessFunction { + public static class getVersion extends org.apache.thrift.AsyncProcessFunction { public getVersion() { super("getVersion"); } @@ -4423,36 +4621,46 @@ public class SatelliteServer { return new getVersion_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Long o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.Long o) { getVersion_result result = new getVersion_result(); result.success = o; result.setSuccessIsSet(true); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getVersion_result result = new getVersion_result(); - { + if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -4461,12 +4669,12 @@ public class SatelliteServer { return false; } - public void start(I iface, getVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getVersion(args.clientVersion,resultHandler); } } - public static class getSupportedFeatures extends org.apache.thrift.AsyncProcessFunction { + public static class getSupportedFeatures extends org.apache.thrift.AsyncProcessFunction { public getSupportedFeatures() { super("getSupportedFeatures"); } @@ -4475,35 +4683,45 @@ public class SatelliteServer { return new getSupportedFeatures_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.String o) { getSupportedFeatures_result result = new getSupportedFeatures_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getSupportedFeatures_result result = new getSupportedFeatures_result(); - { + if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -4512,7 +4730,7 @@ public class SatelliteServer { return false; } - public void start(I iface, getSupportedFeatures_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getSupportedFeatures_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getSupportedFeatures(resultHandler); } } @@ -4526,35 +4744,45 @@ public class SatelliteServer { return new getConfiguration_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(SatelliteConfig o) { getConfiguration_result result = new getConfiguration_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getConfiguration_result result = new getConfiguration_result(); - { + if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -4563,7 +4791,7 @@ public class SatelliteServer { return false; } - public void start(I iface, getConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getConfiguration(resultHandler); } } @@ -4577,56 +4805,61 @@ public class SatelliteServer { return new requestImageVersionUpload_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(TransferInformation o) { requestImageVersionUpload_result result = new requestImageVersionUpload_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; requestImageVersionUpload_result result = new requestImageVersionUpload_result(); if (e instanceof TTransferRejectedException) { - result.rejection = (TTransferRejectedException) e; - result.setRejectionIsSet(true); - msg = result; - } - else 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 - { + result.rejection = (TTransferRejectedException) e; + result.setRejectionIsSet(true); + msg = result; + } else 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -4635,7 +4868,7 @@ public class SatelliteServer { return false; } - public void start(I iface, requestImageVersionUpload_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, requestImageVersionUpload_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.requestImageVersionUpload(args.userToken, args.imageBaseId, args.fileSize, args.blockHashes, args.machineDescription,resultHandler); } } @@ -4649,40 +4882,48 @@ public class SatelliteServer { return new updateBlockHashes_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { updateBlockHashes_result result = new updateBlockHashes_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; updateBlockHashes_result result = new updateBlockHashes_result(); if (e instanceof TInvalidTokenException) { - result.ex1 = (TInvalidTokenException) e; - result.setEx1IsSet(true); - msg = result; - } - else - { + result.ex1 = (TInvalidTokenException) e; + result.setEx1IsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -4691,7 +4932,7 @@ public class SatelliteServer { return false; } - public void start(I iface, updateBlockHashes_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, updateBlockHashes_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.updateBlockHashes(args.uploadToken, args.blockHashes, args.userToken,resultHandler); } } @@ -4705,46 +4946,53 @@ public class SatelliteServer { return new setUploadOptions_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(UploadOptions o) { setUploadOptions_result result = new setUploadOptions_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; setUploadOptions_result result = new setUploadOptions_result(); if (e instanceof TAuthorizationException) { - result.frootloops = (TAuthorizationException) e; - result.setFrootloopsIsSet(true); - msg = result; - } - else if (e instanceof TInvalidTokenException) { - result.imcyborgbutthatsok = (TInvalidTokenException) e; - result.setImcyborgbutthatsokIsSet(true); - msg = result; - } - else - { + result.frootloops = (TAuthorizationException) e; + result.setFrootloopsIsSet(true); + msg = result; + } else if (e instanceof TInvalidTokenException) { + result.imcyborgbutthatsok = (TInvalidTokenException) e; + result.setImcyborgbutthatsokIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -4753,7 +5001,7 @@ public class SatelliteServer { return false; } - public void start(I iface, setUploadOptions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, setUploadOptions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.setUploadOptions(args.userToken, args.uploadToken, args.options,resultHandler); } } @@ -4767,40 +5015,48 @@ public class SatelliteServer { return new cancelUpload_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { cancelUpload_result result = new cancelUpload_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; cancelUpload_result result = new cancelUpload_result(); if (e instanceof TInvalidTokenException) { - result.ex1 = (TInvalidTokenException) e; - result.setEx1IsSet(true); - msg = result; - } - else - { + result.ex1 = (TInvalidTokenException) e; + result.setEx1IsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -4809,7 +5065,7 @@ public class SatelliteServer { return false; } - public void start(I iface, cancelUpload_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, cancelUpload_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.cancelUpload(args.uploadToken,resultHandler); } } @@ -4823,41 +5079,49 @@ public class SatelliteServer { return new queryUploadStatus_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(TransferStatus o) { queryUploadStatus_result result = new queryUploadStatus_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; queryUploadStatus_result result = new queryUploadStatus_result(); if (e instanceof TInvalidTokenException) { - result.ex1 = (TInvalidTokenException) e; - result.setEx1IsSet(true); - msg = result; - } - else - { + result.ex1 = (TInvalidTokenException) e; + result.setEx1IsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -4866,7 +5130,7 @@ public class SatelliteServer { return false; } - public void start(I iface, queryUploadStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, queryUploadStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.queryUploadStatus(args.uploadToken,resultHandler); } } @@ -4880,56 +5144,61 @@ public class SatelliteServer { return new requestDownload_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(TransferInformation o) { requestDownload_result result = new requestDownload_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; requestDownload_result result = new requestDownload_result(); if (e instanceof TTransferRejectedException) { - result.rejection = (TTransferRejectedException) e; - result.setRejectionIsSet(true); - msg = result; - } - else 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 - { + result.rejection = (TTransferRejectedException) e; + result.setRejectionIsSet(true); + msg = result; + } else 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -4938,7 +5207,7 @@ public class SatelliteServer { return false; } - public void start(I iface, requestDownload_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, requestDownload_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.requestDownload(args.userToken, args.imageVersionId,resultHandler); } } @@ -4952,40 +5221,48 @@ public class SatelliteServer { return new cancelDownload_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { cancelDownload_result result = new cancelDownload_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; cancelDownload_result result = new cancelDownload_result(); if (e instanceof TInvalidTokenException) { - result.ex1 = (TInvalidTokenException) e; - result.setEx1IsSet(true); - msg = result; - } - else - { + result.ex1 = (TInvalidTokenException) e; + result.setEx1IsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -4994,7 +5271,7 @@ public class SatelliteServer { return false; } - public void start(I iface, cancelDownload_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, cancelDownload_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.cancelDownload(args.downloadToken,resultHandler); } } @@ -5008,45 +5285,52 @@ public class SatelliteServer { return new isAuthenticated_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { isAuthenticated_result result = new isAuthenticated_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; isAuthenticated_result result = new isAuthenticated_result(); if (e instanceof TAuthorizationException) { - result.authError = (TAuthorizationException) e; - result.setAuthErrorIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else - { + result.authError = (TAuthorizationException) e; + result.setAuthErrorIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5055,7 +5339,7 @@ public class SatelliteServer { return false; } - public void start(I iface, isAuthenticated_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, isAuthenticated_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.isAuthenticated(args.userToken,resultHandler); } } @@ -5069,46 +5353,53 @@ public class SatelliteServer { return new whoami_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(WhoamiInfo o) { whoami_result result = new whoami_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; whoami_result result = new whoami_result(); if (e instanceof TAuthorizationException) { - result.authError = (TAuthorizationException) e; - result.setAuthErrorIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else - { + result.authError = (TAuthorizationException) e; + result.setAuthErrorIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5117,7 +5408,7 @@ public class SatelliteServer { return false; } - public void start(I iface, whoami_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, whoami_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.whoami(args.userToken,resultHandler); } } @@ -5131,40 +5422,48 @@ public class SatelliteServer { return new invalidateSession_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { invalidateSession_result result = new invalidateSession_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; invalidateSession_result result = new invalidateSession_result(); if (e instanceof TInvalidTokenException) { - result.ex = (TInvalidTokenException) e; - result.setExIsSet(true); - msg = result; - } - else - { + result.ex = (TInvalidTokenException) e; + result.setExIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5173,12 +5472,12 @@ public class SatelliteServer { return false; } - public void start(I iface, invalidateSession_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, invalidateSession_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.invalidateSession(args.userToken,resultHandler); } } - public static class getUserList extends org.apache.thrift.AsyncProcessFunction> { + public static class getUserList extends org.apache.thrift.AsyncProcessFunction> { public getUserList() { super("getUserList"); } @@ -5187,46 +5486,53 @@ public class SatelliteServer { return new getUserList_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getUserList_result result = new getUserList_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getUserList_result result = new getUserList_result(); if (e instanceof TAuthorizationException) { - result.failure = (TAuthorizationException) e; - result.setFailureIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else - { + result.failure = (TAuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5235,7 +5541,7 @@ public class SatelliteServer { return false; } - public void start(I iface, getUserList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getUserList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getUserList(args.userToken, args.page,resultHandler); } } @@ -5249,46 +5555,53 @@ public class SatelliteServer { return new getUserConfig_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(SatelliteUserConfig o) { getUserConfig_result result = new getUserConfig_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getUserConfig_result result = new getUserConfig_result(); if (e instanceof TAuthorizationException) { - result.failure = (TAuthorizationException) e; - result.setFailureIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else - { + result.failure = (TAuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5297,7 +5610,7 @@ public class SatelliteServer { return false; } - public void start(I iface, getUserConfig_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getUserConfig_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getUserConfig(args.userToken,resultHandler); } } @@ -5311,45 +5624,52 @@ public class SatelliteServer { return new setUserConfig_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { setUserConfig_result result = new setUserConfig_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; setUserConfig_result result = new setUserConfig_result(); if (e instanceof TAuthorizationException) { - result.failure = (TAuthorizationException) e; - result.setFailureIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else - { + result.failure = (TAuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5358,12 +5678,12 @@ public class SatelliteServer { return false; } - public void start(I iface, setUserConfig_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, setUserConfig_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.setUserConfig(args.userToken, args.config,resultHandler); } } - public static class getOperatingSystems extends org.apache.thrift.AsyncProcessFunction> { + public static class getOperatingSystems extends org.apache.thrift.AsyncProcessFunction> { public getOperatingSystems() { super("getOperatingSystems"); } @@ -5372,35 +5692,45 @@ public class SatelliteServer { return new getOperatingSystems_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getOperatingSystems_result result = new getOperatingSystems_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getOperatingSystems_result result = new getOperatingSystems_result(); - { + if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5409,12 +5739,12 @@ public class SatelliteServer { return false; } - public void start(I iface, getOperatingSystems_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getOperatingSystems_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getOperatingSystems(resultHandler); } } - public static class getVirtualizers extends org.apache.thrift.AsyncProcessFunction> { + public static class getVirtualizers extends org.apache.thrift.AsyncProcessFunction> { public getVirtualizers() { super("getVirtualizers"); } @@ -5423,35 +5753,45 @@ public class SatelliteServer { return new getVirtualizers_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getVirtualizers_result result = new getVirtualizers_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getVirtualizers_result result = new getVirtualizers_result(); - { + if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5460,12 +5800,12 @@ public class SatelliteServer { return false; } - public void start(I iface, getVirtualizers_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getVirtualizers_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getVirtualizers(resultHandler); } } - public static class getAllOrganizations extends org.apache.thrift.AsyncProcessFunction> { + public static class getAllOrganizations extends org.apache.thrift.AsyncProcessFunction> { public getAllOrganizations() { super("getAllOrganizations"); } @@ -5474,35 +5814,45 @@ public class SatelliteServer { return new getAllOrganizations_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getAllOrganizations_result result = new getAllOrganizations_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getAllOrganizations_result result = new getAllOrganizations_result(); - { + if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5511,12 +5861,12 @@ public class SatelliteServer { return false; } - public void start(I iface, getAllOrganizations_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getAllOrganizations_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getAllOrganizations(resultHandler); } } - public static class getLocations extends org.apache.thrift.AsyncProcessFunction> { + public static class getLocations extends org.apache.thrift.AsyncProcessFunction> { public getLocations() { super("getLocations"); } @@ -5525,35 +5875,45 @@ public class SatelliteServer { return new getLocations_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getLocations_result result = new getLocations_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getLocations_result result = new getLocations_result(); - { + if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5562,7 +5922,7 @@ public class SatelliteServer { return false; } - public void start(I iface, getLocations_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getLocations_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getLocations(resultHandler); } } @@ -5576,35 +5936,45 @@ public class SatelliteServer { return new getStatus_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(SatelliteStatus o) { getStatus_result result = new getStatus_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getStatus_result result = new getStatus_result(); - { + if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5613,12 +5983,12 @@ public class SatelliteServer { return false; } - public void start(I iface, getStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getStatus(resultHandler); } } - public static class getImageList extends org.apache.thrift.AsyncProcessFunction> { + public static class getImageList extends org.apache.thrift.AsyncProcessFunction> { public getImageList() { super("getImageList"); } @@ -5627,46 +5997,53 @@ public class SatelliteServer { return new getImageList_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getImageList_result result = new getImageList_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getImageList_result result = new getImageList_result(); if (e instanceof TAuthorizationException) { - result.authError = (TAuthorizationException) e; - result.setAuthErrorIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else - { + result.authError = (TAuthorizationException) e; + result.setAuthErrorIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5675,7 +6052,7 @@ public class SatelliteServer { return false; } - public void start(I iface, getImageList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getImageList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getImageList(args.userToken, args.tagSearch, args.page,resultHandler); } } @@ -5689,51 +6066,57 @@ public class SatelliteServer { return new getImageDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(ImageDetailsRead o) { getImageDetails_result result = new getImageDetails_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getImageDetails_result result = new getImageDetails_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5742,12 +6125,12 @@ public class SatelliteServer { return false; } - public void start(I iface, getImageDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getImageDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getImageDetails(args.userToken, args.imageBaseId,resultHandler); } } - public static class createImage extends org.apache.thrift.AsyncProcessFunction { + public static class createImage extends org.apache.thrift.AsyncProcessFunction { public createImage() { super("createImage"); } @@ -5756,46 +6139,53 @@ public class SatelliteServer { return new createImage_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.String o) { createImage_result result = new createImage_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; createImage_result result = new createImage_result(); if (e instanceof TAuthorizationException) { - result.authError = (TAuthorizationException) e; - result.setAuthErrorIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.error = (TInvocationException) e; - result.setErrorIsSet(true); - msg = result; - } - else - { + result.authError = (TAuthorizationException) e; + result.setAuthErrorIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.error = (TInvocationException) e; + result.setErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5804,7 +6194,7 @@ public class SatelliteServer { return false; } - public void start(I iface, createImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, createImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.createImage(args.userToken, args.imageName,resultHandler); } } @@ -5818,50 +6208,56 @@ public class SatelliteServer { return new updateImageBase_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { updateImageBase_result result = new updateImageBase_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; updateImageBase_result result = new updateImageBase_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.imgError = (TInvocationException) e; - result.setImgErrorIsSet(true); - msg = result; - } - else - { + 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.imgError = (TInvocationException) e; + result.setImgErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5870,7 +6266,7 @@ public class SatelliteServer { return false; } - public void start(I iface, updateImageBase_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, updateImageBase_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.updateImageBase(args.userToken, args.imageBaseId, args.image,resultHandler); } } @@ -5884,50 +6280,56 @@ public class SatelliteServer { return new updateImageVersion_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { updateImageVersion_result result = new updateImageVersion_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; updateImageVersion_result result = new updateImageVersion_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.imgError = (TInvocationException) e; - result.setImgErrorIsSet(true); - msg = result; - } - else - { + 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.imgError = (TInvocationException) e; + result.setImgErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -5936,7 +6338,7 @@ public class SatelliteServer { return false; } - public void start(I iface, updateImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, updateImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.updateImageVersion(args.userToken, args.imageVersionId, args.image,resultHandler); } } @@ -5950,50 +6352,56 @@ public class SatelliteServer { return new deleteImageVersion_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { deleteImageVersion_result result = new deleteImageVersion_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; deleteImageVersion_result result = new deleteImageVersion_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6002,7 +6410,7 @@ public class SatelliteServer { return false; } - public void start(I iface, deleteImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, deleteImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.deleteImageVersion(args.userToken, args.imageVersionId,resultHandler); } } @@ -6016,50 +6424,56 @@ public class SatelliteServer { return new deleteImageBase_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { deleteImageBase_result result = new deleteImageBase_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; deleteImageBase_result result = new deleteImageBase_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6068,7 +6482,7 @@ public class SatelliteServer { return false; } - public void start(I iface, deleteImageBase_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, deleteImageBase_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.deleteImageBase(args.userToken, args.imageBaseId,resultHandler); } } @@ -6082,50 +6496,56 @@ public class SatelliteServer { return new writeImagePermissions_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { writeImagePermissions_result result = new writeImagePermissions_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; writeImagePermissions_result result = new writeImagePermissions_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6134,12 +6554,12 @@ public class SatelliteServer { return false; } - public void start(I iface, writeImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, writeImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.writeImagePermissions(args.userToken, args.imageBaseId, args.permissions,resultHandler); } } - public static class getImagePermissions extends org.apache.thrift.AsyncProcessFunction> { + public static class getImagePermissions extends org.apache.thrift.AsyncProcessFunction> { public getImagePermissions() { super("getImagePermissions"); } @@ -6148,51 +6568,57 @@ public class SatelliteServer { return new getImagePermissions_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.Map o) { getImagePermissions_result result = new getImagePermissions_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getImagePermissions_result result = new getImagePermissions_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6201,7 +6627,7 @@ public class SatelliteServer { return false; } - public void start(I iface, getImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getImagePermissions(args.userToken, args.imageBaseId,resultHandler); } } @@ -6215,50 +6641,56 @@ public class SatelliteServer { return new setImageOwner_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { setImageOwner_result result = new setImageOwner_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; setImageOwner_result result = new setImageOwner_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6267,7 +6699,7 @@ public class SatelliteServer { return false; } - public void start(I iface, setImageOwner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, setImageOwner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.setImageOwner(args.userToken, args.imageBaseId, args.newOwnerId,resultHandler); } } @@ -6281,55 +6713,60 @@ public class SatelliteServer { return new setImageVersionExpiry_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { setImageVersionExpiry_result result = new setImageVersionExpiry_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; setImageVersionExpiry_result result = new setImageVersionExpiry_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 if (e instanceof TInvalidDateParam) { - result.dateError = (TInvalidDateParam) e; - result.setDateErrorIsSet(true); - msg = result; - } - else - { + 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 if (e instanceof TInvalidDateParam) { + result.dateError = (TInvalidDateParam) e; + result.setDateErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6338,12 +6775,12 @@ public class SatelliteServer { return false; } - public void start(I iface, setImageVersionExpiry_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, setImageVersionExpiry_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.setImageVersionExpiry(args.userToken, args.imageBaseId, args.expireTime,resultHandler); } } - public static class getImageVersionVirtConfig extends org.apache.thrift.AsyncProcessFunction { + public static class getImageVersionVirtConfig extends org.apache.thrift.AsyncProcessFunction { public getImageVersionVirtConfig() { super("getImageVersionVirtConfig"); } @@ -6352,51 +6789,57 @@ public class SatelliteServer { return new getImageVersionVirtConfig_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(ByteBuffer o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.nio.ByteBuffer o) { getImageVersionVirtConfig_result result = new getImageVersionVirtConfig_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getImageVersionVirtConfig_result result = new getImageVersionVirtConfig_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6405,7 +6848,7 @@ public class SatelliteServer { return false; } - public void start(I iface, getImageVersionVirtConfig_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getImageVersionVirtConfig_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getImageVersionVirtConfig(args.userToken, args.imageVersionId,resultHandler); } } @@ -6419,50 +6862,56 @@ public class SatelliteServer { return new setImageVersionVirtConfig_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { setImageVersionVirtConfig_result result = new setImageVersionVirtConfig_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; setImageVersionVirtConfig_result result = new setImageVersionVirtConfig_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6471,12 +6920,12 @@ public class SatelliteServer { return false; } - public void start(I iface, setImageVersionVirtConfig_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, setImageVersionVirtConfig_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.setImageVersionVirtConfig(args.userToken, args.imageVersionId, args.meta,resultHandler); } } - public static class requestImageReplication extends org.apache.thrift.AsyncProcessFunction { + public static class requestImageReplication extends org.apache.thrift.AsyncProcessFunction { public requestImageReplication() { super("requestImageReplication"); } @@ -6485,51 +6934,57 @@ public class SatelliteServer { return new requestImageReplication_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable 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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6538,12 +6993,12 @@ public class SatelliteServer { return false; } - public void start(I iface, requestImageReplication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, requestImageReplication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.requestImageReplication(args.userToken, args.imageVersionId,resultHandler); } } - public static class publishImageVersion extends org.apache.thrift.AsyncProcessFunction { + public static class publishImageVersion extends org.apache.thrift.AsyncProcessFunction { public publishImageVersion() { super("publishImageVersion"); } @@ -6552,56 +7007,61 @@ public class SatelliteServer { return new publishImageVersion_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.String o) { publishImageVersion_result result = new publishImageVersion_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; publishImageVersion_result result = new publishImageVersion_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 if (e instanceof TTransferRejectedException) { - result.tre = (TTransferRejectedException) e; - result.setTreIsSet(true); - msg = result; - } - else - { + 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 if (e instanceof TTransferRejectedException) { + result.tre = (TTransferRejectedException) e; + result.setTreIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6610,12 +7070,12 @@ public class SatelliteServer { return false; } - public void start(I iface, publishImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, publishImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.publishImageVersion(args.userToken, args.imageVersionId,resultHandler); } } - public static class createLecture extends org.apache.thrift.AsyncProcessFunction { + public static class createLecture extends org.apache.thrift.AsyncProcessFunction { public createLecture() { super("createLecture"); } @@ -6624,56 +7084,61 @@ public class SatelliteServer { return new createLecture_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { + return new org.apache.thrift.async.AsyncMethodCallback() { + public void onComplete(java.lang.String o) { createLecture_result result = new createLecture_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; createLecture_result result = new createLecture_result(); if (e instanceof TAuthorizationException) { - result.authError = (TAuthorizationException) e; - result.setAuthErrorIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else if (e instanceof TInvalidDateParam) { - result.dateError = (TInvalidDateParam) e; - result.setDateErrorIsSet(true); - msg = result; - } - else if (e instanceof TNotFoundException) { - result.notFound = (TNotFoundException) e; - result.setNotFoundIsSet(true); - msg = result; - } - else - { + result.authError = (TAuthorizationException) e; + result.setAuthErrorIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } else if (e instanceof TInvalidDateParam) { + result.dateError = (TInvalidDateParam) e; + result.setDateErrorIsSet(true); + msg = result; + } else if (e instanceof TNotFoundException) { + result.notFound = (TNotFoundException) e; + result.setNotFoundIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6682,7 +7147,7 @@ public class SatelliteServer { return false; } - public void start(I iface, createLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, createLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.createLecture(args.userToken, args.lecture,resultHandler); } } @@ -6696,55 +7161,60 @@ public class SatelliteServer { return new updateLecture_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { updateLecture_result result = new updateLecture_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; updateLecture_result result = new updateLecture_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 if (e instanceof TInvalidDateParam) { - result.dateError = (TInvalidDateParam) e; - result.setDateErrorIsSet(true); - msg = result; - } - else - { + 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 if (e instanceof TInvalidDateParam) { + result.dateError = (TInvalidDateParam) e; + result.setDateErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6753,12 +7223,12 @@ public class SatelliteServer { return false; } - public void start(I iface, updateLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, updateLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.updateLecture(args.userToken, args.lectureId, args.lecture,resultHandler); } } - public static class getLectureList extends org.apache.thrift.AsyncProcessFunction> { + public static class getLectureList extends org.apache.thrift.AsyncProcessFunction> { public getLectureList() { super("getLectureList"); } @@ -6767,46 +7237,53 @@ public class SatelliteServer { return new getLectureList_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.List o) { getLectureList_result result = new getLectureList_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getLectureList_result result = new getLectureList_result(); if (e instanceof TAuthorizationException) { - result.authError = (TAuthorizationException) e; - result.setAuthErrorIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else - { + result.authError = (TAuthorizationException) e; + result.setAuthErrorIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6815,7 +7292,7 @@ public class SatelliteServer { return false; } - public void start(I iface, getLectureList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getLectureList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getLectureList(args.userToken, args.page,resultHandler); } } @@ -6829,51 +7306,57 @@ public class SatelliteServer { return new getLectureDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(LectureRead o) { getLectureDetails_result result = new getLectureDetails_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getLectureDetails_result result = new getLectureDetails_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6882,7 +7365,7 @@ public class SatelliteServer { return false; } - public void start(I iface, getLectureDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getLectureDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getLectureDetails(args.userToken, args.lectureId,resultHandler); } } @@ -6896,50 +7379,56 @@ public class SatelliteServer { return new deleteLecture_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { deleteLecture_result result = new deleteLecture_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; deleteLecture_result result = new deleteLecture_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -6948,7 +7437,7 @@ public class SatelliteServer { return false; } - public void start(I iface, deleteLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, deleteLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.deleteLecture(args.userToken, args.lectureId,resultHandler); } } @@ -6962,50 +7451,56 @@ public class SatelliteServer { return new writeLecturePermissions_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { writeLecturePermissions_result result = new writeLecturePermissions_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; writeLecturePermissions_result result = new writeLecturePermissions_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -7014,12 +7509,12 @@ public class SatelliteServer { return false; } - public void start(I iface, writeLecturePermissions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, writeLecturePermissions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.writeLecturePermissions(args.userToken, args.lectureId, args.permissions,resultHandler); } } - public static class getLecturePermissions extends org.apache.thrift.AsyncProcessFunction> { + public static class getLecturePermissions extends org.apache.thrift.AsyncProcessFunction> { public getLecturePermissions() { super("getLecturePermissions"); } @@ -7028,51 +7523,57 @@ public class SatelliteServer { return new getLecturePermissions_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { + return new org.apache.thrift.async.AsyncMethodCallback>() { + public void onComplete(java.util.Map o) { getLecturePermissions_result result = new getLecturePermissions_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getLecturePermissions_result result = new getLecturePermissions_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -7081,7 +7582,7 @@ public class SatelliteServer { return false; } - public void start(I iface, getLecturePermissions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + public void start(I iface, getLecturePermissions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException { iface.getLecturePermissions(args.userToken, args.lectureId,resultHandler); } } @@ -7095,50 +7596,56 @@ public class SatelliteServer { return new setLectureOwner_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(Void o) { setLectureOwner_result result = new setLectureOwner_result(); 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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; setLectureOwner_result result = new setLectureOwner_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 - { + 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 if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); 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()); + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -7147,7 +7654,7 @@ public class SatelliteServer { return false; } - public void start(I iface, setLectureOwner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, setLectureOwner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.setLectureOwner(args.userToken, args.lectureId, args.newOwnerId,resultHandler); } } @@ -7161,46 +7668,53 @@ public class SatelliteServer { return new getPredefinedData_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { + return new org.apache.thrift.async.AsyncMethodCallback() { public void onComplete(PredefinedData o) { getPredefinedData_result result = new getPredefinedData_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); + fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + } catch (org.apache.thrift.transport.TTransportException e) { + _LOGGER.error("TTransportException writing to internal frame buffer", e); + fb.close(); + } catch (java.lang.Exception e) { + _LOGGER.error("Exception writing to internal frame buffer", e); + onError(e); } - fb.close(); } - public void onError(Exception e) { + public void onError(java.lang.Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; + org.apache.thrift.TSerializable msg; getPredefinedData_result result = new getPredefinedData_result(); if (e instanceof TAuthorizationException) { - result.authError = (TAuthorizationException) e; - result.setAuthErrorIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else - { + result.authError = (TAuthorizationException) e; + result.setAuthErrorIsSet(true); + msg = result; + } else if (e instanceof TInvocationException) { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } else if (e instanceof org.apache.thrift.transport.TTransportException) { + _LOGGER.error("TTransportException inside handler", e); + fb.close(); + return; + } else if (e instanceof org.apache.thrift.TApplicationException) { + _LOGGER.error("TApplicationException inside handler", e); 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()); + msg = (org.apache.thrift.TApplicationException)e; + } else { + _LOGGER.error("Exception inside handler", e); + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = 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); + } catch (java.lang.Exception ex) { + _LOGGER.error("Exception writing to internal frame buffer", ex); + fb.close(); } - fb.close(); } }; } @@ -7209,7 +7723,7 @@ public class SatelliteServer { return false; } - public void start(I iface, getPredefinedData_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, getPredefinedData_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { iface.getPredefinedData(args.userToken,resultHandler); } } @@ -7221,11 +7735,8 @@ public class SatelliteServer { private static final org.apache.thrift.protocol.TField CLIENT_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("clientVersion", org.apache.thrift.protocol.TType.I64, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getVersion_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getVersion_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getVersion_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getVersion_argsTupleSchemeFactory(); public long clientVersion; // required @@ -7233,10 +7744,10 @@ public class SatelliteServer { public enum _Fields implements org.apache.thrift.TFieldIdEnum { CLIENT_VERSION((short)1, "clientVersion"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -7244,6 +7755,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // CLIENT_VERSION @@ -7259,21 +7771,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -7282,7 +7795,7 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -7290,12 +7803,12 @@ public class SatelliteServer { // isset id assignments private static final int __CLIENTVERSION_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.CLIENT_VERSION, new org.apache.thrift.meta_data.FieldMetaData("clientVersion", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVersion_args.class, metaDataMap); } @@ -7339,57 +7852,56 @@ public class SatelliteServer { } public void unsetClientVersion() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CLIENTVERSION_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __CLIENTVERSION_ISSET_ID); } /** Returns true if field clientVersion is set (has been assigned a value) and false otherwise */ public boolean isSetClientVersion() { - return EncodingUtils.testBit(__isset_bitfield, __CLIENTVERSION_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CLIENTVERSION_ISSET_ID); } public void setClientVersionIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CLIENTVERSION_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CLIENTVERSION_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case CLIENT_VERSION: if (value == null) { unsetClientVersion(); } else { - setClientVersion((Long)value); + setClientVersion((java.lang.Long)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case CLIENT_VERSION: return getClientVersion(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case CLIENT_VERSION: return isSetClientVersion(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getVersion_args) return this.equals((getVersion_args)that); return false; @@ -7398,6 +7910,8 @@ public class SatelliteServer { public boolean equals(getVersion_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_clientVersion = true; boolean that_present_clientVersion = true; @@ -7413,14 +7927,11 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_clientVersion = true; - list.add(present_clientVersion); - if (present_clientVersion) - list.add(clientVersion); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(clientVersion); - return list.hashCode(); + return hashCode; } @Override @@ -7431,7 +7942,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetClientVersion()).compareTo(other.isSetClientVersion()); + lastComparison = java.lang.Boolean.compare(isSetClientVersion(), other.isSetClientVersion()); if (lastComparison != 0) { return lastComparison; } @@ -7444,21 +7955,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getVersion_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getVersion_args("); boolean first = true; sb.append("clientVersion:"); @@ -7481,7 +7993,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -7491,13 +8003,13 @@ public class SatelliteServer { } } - private static class getVersion_argsStandardSchemeFactory implements SchemeFactory { + private static class getVersion_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVersion_argsStandardScheme getScheme() { return new getVersion_argsStandardScheme(); } } - private static class getVersion_argsStandardScheme extends StandardScheme { + private static class getVersion_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getVersion_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -7541,18 +8053,18 @@ public class SatelliteServer { } - private static class getVersion_argsTupleSchemeFactory implements SchemeFactory { + private static class getVersion_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVersion_argsTupleScheme getScheme() { return new getVersion_argsTupleScheme(); } } - private static class getVersion_argsTupleScheme extends TupleScheme { + private static class getVersion_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getVersion_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetClientVersion()) { optionals.set(0); } @@ -7564,8 +8076,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVersion_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.clientVersion = iprot.readI64(); struct.setClientVersionIsSet(true); @@ -7573,6 +8085,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getVersion_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -7580,11 +8095,8 @@ public class SatelliteServer { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getVersion_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getVersion_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getVersion_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getVersion_resultTupleSchemeFactory(); public long success; // required @@ -7592,10 +8104,10 @@ public class SatelliteServer { public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -7603,6 +8115,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -7618,21 +8131,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -7641,7 +8155,7 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -7649,12 +8163,12 @@ public class SatelliteServer { // 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; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.I64 , "int"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVersion_result.class, metaDataMap); } @@ -7698,57 +8212,56 @@ public class SatelliteServer { } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Long)value); + setSuccess((java.lang.Long)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getVersion_result) return this.equals((getVersion_result)that); return false; @@ -7757,6 +8270,8 @@ public class SatelliteServer { public boolean equals(getVersion_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true; boolean that_present_success = true; @@ -7772,14 +8287,11 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true; - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(success); - return list.hashCode(); + return hashCode; } @Override @@ -7790,7 +8302,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -7803,21 +8315,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getVersion_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getVersion_result("); boolean first = true; sb.append("success:"); @@ -7840,7 +8353,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -7850,13 +8363,13 @@ public class SatelliteServer { } } - private static class getVersion_resultStandardSchemeFactory implements SchemeFactory { + private static class getVersion_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVersion_resultStandardScheme getScheme() { return new getVersion_resultStandardScheme(); } } - private static class getVersion_resultStandardScheme extends StandardScheme { + private static class getVersion_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getVersion_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -7902,18 +8415,18 @@ public class SatelliteServer { } - private static class getVersion_resultTupleSchemeFactory implements SchemeFactory { + private static class getVersion_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVersion_resultTupleScheme getScheme() { return new getVersion_resultTupleScheme(); } } - private static class getVersion_resultTupleScheme extends TupleScheme { + private static class getVersion_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getVersion_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -7925,8 +8438,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVersion_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = iprot.readI64(); struct.setSuccessIsSet(true); @@ -7934,27 +8447,27 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getSupportedFeatures_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("getSupportedFeatures_args"); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getSupportedFeatures_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getSupportedFeatures_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getSupportedFeatures_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getSupportedFeatures_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -7962,6 +8475,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: @@ -7975,21 +8489,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -7998,14 +8513,14 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSupportedFeatures_args.class, metaDataMap); } @@ -8026,32 +8541,31 @@ public class SatelliteServer { public void clear() { } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getSupportedFeatures_args) return this.equals((getSupportedFeatures_args)that); return false; @@ -8060,15 +8574,17 @@ public class SatelliteServer { public boolean equals(getSupportedFeatures_args that) { if (that == null) return false; + if (this == that) + return true; return true; } @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - return list.hashCode(); + return hashCode; } @Override @@ -8082,21 +8598,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getSupportedFeatures_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getSupportedFeatures_args("); boolean first = true; sb.append(")"); @@ -8116,7 +8633,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -8124,13 +8641,13 @@ public class SatelliteServer { } } - private static class getSupportedFeatures_argsStandardSchemeFactory implements SchemeFactory { + private static class getSupportedFeatures_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getSupportedFeatures_argsStandardScheme getScheme() { return new getSupportedFeatures_argsStandardScheme(); } } - private static class getSupportedFeatures_argsStandardScheme extends StandardScheme { + private static class getSupportedFeatures_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getSupportedFeatures_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -8163,25 +8680,28 @@ public class SatelliteServer { } - private static class getSupportedFeatures_argsTupleSchemeFactory implements SchemeFactory { + private static class getSupportedFeatures_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getSupportedFeatures_argsTupleScheme getScheme() { return new getSupportedFeatures_argsTupleScheme(); } } - private static class getSupportedFeatures_argsTupleScheme extends TupleScheme { + private static class getSupportedFeatures_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getSupportedFeatures_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getSupportedFeatures_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getSupportedFeatures_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -8189,22 +8709,19 @@ public class SatelliteServer { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getSupportedFeatures_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getSupportedFeatures_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getSupportedFeatures_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getSupportedFeatures_resultTupleSchemeFactory(); - public String success; // required + public @org.apache.thrift.annotation.Nullable java.lang.String 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 { SUCCESS((short)0, "success"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -8212,6 +8729,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -8227,21 +8745,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -8250,18 +8769,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSupportedFeatures_result.class, metaDataMap); } @@ -8269,7 +8788,7 @@ public class SatelliteServer { } public getSupportedFeatures_result( - String success) + java.lang.String success) { this(); this.success = success; @@ -8293,11 +8812,12 @@ public class SatelliteServer { this.success = null; } - public String getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getSuccess() { return this.success; } - public getSupportedFeatures_result setSuccess(String success) { + public getSupportedFeatures_result setSuccess(@org.apache.thrift.annotation.Nullable java.lang.String success) { this.success = success; return this; } @@ -8317,45 +8837,44 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((String)value); + setSuccess((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getSupportedFeatures_result) return this.equals((getSupportedFeatures_result)that); return false; @@ -8364,6 +8883,8 @@ public class SatelliteServer { public boolean equals(getSupportedFeatures_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -8379,14 +8900,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -8397,7 +8917,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -8410,21 +8930,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getSupportedFeatures_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getSupportedFeatures_result("); boolean first = true; sb.append("success:"); @@ -8451,7 +8972,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -8459,13 +8980,13 @@ public class SatelliteServer { } } - private static class getSupportedFeatures_resultStandardSchemeFactory implements SchemeFactory { + private static class getSupportedFeatures_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getSupportedFeatures_resultStandardScheme getScheme() { return new getSupportedFeatures_resultStandardScheme(); } } - private static class getSupportedFeatures_resultStandardScheme extends StandardScheme { + private static class getSupportedFeatures_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getSupportedFeatures_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -8511,18 +9032,18 @@ public class SatelliteServer { } - private static class getSupportedFeatures_resultTupleSchemeFactory implements SchemeFactory { + private static class getSupportedFeatures_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getSupportedFeatures_resultTupleScheme getScheme() { return new getSupportedFeatures_resultTupleScheme(); } } - private static class getSupportedFeatures_resultTupleScheme extends TupleScheme { + private static class getSupportedFeatures_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getSupportedFeatures_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -8534,8 +9055,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getSupportedFeatures_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); @@ -8543,27 +9064,27 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getConfiguration_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("getConfiguration_args"); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getConfiguration_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getConfiguration_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getConfiguration_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getConfiguration_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -8571,6 +9092,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: @@ -8584,21 +9106,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -8607,14 +9130,14 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getConfiguration_args.class, metaDataMap); } @@ -8635,32 +9158,31 @@ public class SatelliteServer { public void clear() { } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getConfiguration_args) return this.equals((getConfiguration_args)that); return false; @@ -8669,15 +9191,17 @@ public class SatelliteServer { public boolean equals(getConfiguration_args that) { if (that == null) return false; + if (this == that) + return true; return true; } @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - return list.hashCode(); + return hashCode; } @Override @@ -8691,21 +9215,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getConfiguration_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getConfiguration_args("); boolean first = true; sb.append(")"); @@ -8725,7 +9250,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -8733,13 +9258,13 @@ public class SatelliteServer { } } - private static class getConfiguration_argsStandardSchemeFactory implements SchemeFactory { + private static class getConfiguration_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getConfiguration_argsStandardScheme getScheme() { return new getConfiguration_argsStandardScheme(); } } - private static class getConfiguration_argsStandardScheme extends StandardScheme { + private static class getConfiguration_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getConfiguration_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -8772,25 +9297,28 @@ public class SatelliteServer { } - private static class getConfiguration_argsTupleSchemeFactory implements SchemeFactory { + private static class getConfiguration_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getConfiguration_argsTupleScheme getScheme() { return new getConfiguration_argsTupleScheme(); } } - private static class getConfiguration_argsTupleScheme extends TupleScheme { + private static class getConfiguration_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getConfiguration_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getConfiguration_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getConfiguration_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -8798,22 +9326,19 @@ public class SatelliteServer { 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 getConfiguration_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getConfiguration_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getConfiguration_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getConfiguration_resultTupleSchemeFactory(); - public SatelliteConfig success; // required + public @org.apache.thrift.annotation.Nullable SatelliteConfig 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 { SUCCESS((short)0, "success"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -8821,6 +9346,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -8836,21 +9362,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -8859,18 +9386,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, SatelliteConfig.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getConfiguration_result.class, metaDataMap); } @@ -8902,11 +9429,12 @@ public class SatelliteServer { this.success = null; } + @org.apache.thrift.annotation.Nullable public SatelliteConfig getSuccess() { return this.success; } - public getConfiguration_result setSuccess(SatelliteConfig success) { + public getConfiguration_result setSuccess(@org.apache.thrift.annotation.Nullable SatelliteConfig success) { this.success = success; return this; } @@ -8926,7 +9454,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -8939,32 +9467,31 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getConfiguration_result) return this.equals((getConfiguration_result)that); return false; @@ -8973,6 +9500,8 @@ public class SatelliteServer { public boolean equals(getConfiguration_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -8988,14 +9517,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -9006,7 +9534,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -9019,21 +9547,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getConfiguration_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getConfiguration_result("); boolean first = true; sb.append("success:"); @@ -9063,7 +9592,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -9071,13 +9600,13 @@ public class SatelliteServer { } } - private static class getConfiguration_resultStandardSchemeFactory implements SchemeFactory { + private static class getConfiguration_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getConfiguration_resultStandardScheme getScheme() { return new getConfiguration_resultStandardScheme(); } } - private static class getConfiguration_resultStandardScheme extends StandardScheme { + private static class getConfiguration_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getConfiguration_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -9124,18 +9653,18 @@ public class SatelliteServer { } - private static class getConfiguration_resultTupleSchemeFactory implements SchemeFactory { + private static class getConfiguration_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getConfiguration_resultTupleScheme getScheme() { return new getConfiguration_resultTupleScheme(); } } - private static class getConfiguration_resultTupleScheme extends TupleScheme { + private static class getConfiguration_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getConfiguration_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -9147,8 +9676,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getConfiguration_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = new SatelliteConfig(); struct.success.read(iprot); @@ -9157,6 +9686,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class requestImageVersionUpload_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -9168,17 +9700,14 @@ public class SatelliteServer { 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)4); private static final org.apache.thrift.protocol.TField MACHINE_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("machineDescription", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new requestImageVersionUpload_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new requestImageVersionUpload_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new requestImageVersionUpload_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new requestImageVersionUpload_argsTupleSchemeFactory(); - public String userToken; // required - public String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageBaseId; // required public long fileSize; // required - public List blockHashes; // required - public ByteBuffer machineDescription; // required + public @org.apache.thrift.annotation.Nullable java.util.List blockHashes; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer machineDescription; // 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 { @@ -9188,10 +9717,10 @@ public class SatelliteServer { BLOCK_HASHES((short)4, "blockHashes"), MACHINE_DESCRIPTION((short)5, "machineDescription"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -9199,6 +9728,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -9222,21 +9752,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -9245,7 +9776,7 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -9253,9 +9784,9 @@ public class SatelliteServer { // isset id assignments private static final int __FILESIZE_ISSET_ID = 0; private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, @@ -9267,7 +9798,7 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)))); tmpMap.put(_Fields.MACHINE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("machineDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestImageVersionUpload_args.class, metaDataMap); } @@ -9275,11 +9806,11 @@ public class SatelliteServer { } public requestImageVersionUpload_args( - String userToken, - String imageBaseId, + java.lang.String userToken, + java.lang.String imageBaseId, long fileSize, - List blockHashes, - ByteBuffer machineDescription) + java.util.List blockHashes, + java.nio.ByteBuffer machineDescription) { this(); this.userToken = userToken; @@ -9303,7 +9834,7 @@ public class SatelliteServer { } this.fileSize = other.fileSize; if (other.isSetBlockHashes()) { - List __this__blockHashes = new ArrayList(other.blockHashes); + java.util.List __this__blockHashes = new java.util.ArrayList(other.blockHashes); this.blockHashes = __this__blockHashes; } if (other.isSetMachineDescription()) { @@ -9325,11 +9856,12 @@ public class SatelliteServer { this.machineDescription = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public requestImageVersionUpload_args setUserToken(String userToken) { + public requestImageVersionUpload_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -9349,11 +9881,12 @@ public class SatelliteServer { } } - public String getImageBaseId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageBaseId() { return this.imageBaseId; } - public requestImageVersionUpload_args setImageBaseId(String imageBaseId) { + public requestImageVersionUpload_args setImageBaseId(@org.apache.thrift.annotation.Nullable java.lang.String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -9384,38 +9917,40 @@ public class SatelliteServer { } public void unsetFileSize() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID); } /** Returns true if field fileSize is set (has been assigned a value) and false otherwise */ public boolean isSetFileSize() { - return EncodingUtils.testBit(__isset_bitfield, __FILESIZE_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __FILESIZE_ISSET_ID); } public void setFileSizeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value); } public int getBlockHashesSize() { return (this.blockHashes == null) ? 0 : this.blockHashes.size(); } - public java.util.Iterator getBlockHashesIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getBlockHashesIterator() { return (this.blockHashes == null) ? null : this.blockHashes.iterator(); } - public void addToBlockHashes(ByteBuffer elem) { + public void addToBlockHashes(java.nio.ByteBuffer elem) { if (this.blockHashes == null) { - this.blockHashes = new ArrayList(); + this.blockHashes = new java.util.ArrayList(); } this.blockHashes.add(elem); } - public List getBlockHashes() { + @org.apache.thrift.annotation.Nullable + public java.util.List getBlockHashes() { return this.blockHashes; } - public requestImageVersionUpload_args setBlockHashes(List blockHashes) { + public requestImageVersionUpload_args setBlockHashes(@org.apache.thrift.annotation.Nullable java.util.List blockHashes) { this.blockHashes = blockHashes; return this; } @@ -9440,16 +9975,16 @@ public class SatelliteServer { return machineDescription == null ? null : machineDescription.array(); } - public ByteBuffer bufferForMachineDescription() { + public java.nio.ByteBuffer bufferForMachineDescription() { return org.apache.thrift.TBaseHelper.copyBinary(machineDescription); } public requestImageVersionUpload_args setMachineDescription(byte[] machineDescription) { - this.machineDescription = machineDescription == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(machineDescription, machineDescription.length)); + this.machineDescription = machineDescription == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(machineDescription.clone()); return this; } - public requestImageVersionUpload_args setMachineDescription(ByteBuffer machineDescription) { + public requestImageVersionUpload_args setMachineDescription(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer machineDescription) { this.machineDescription = org.apache.thrift.TBaseHelper.copyBinary(machineDescription); return this; } @@ -9469,13 +10004,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -9483,7 +10018,7 @@ public class SatelliteServer { if (value == null) { unsetImageBaseId(); } else { - setImageBaseId((String)value); + setImageBaseId((java.lang.String)value); } break; @@ -9491,7 +10026,7 @@ public class SatelliteServer { if (value == null) { unsetFileSize(); } else { - setFileSize((Long)value); + setFileSize((java.lang.Long)value); } break; @@ -9499,7 +10034,7 @@ public class SatelliteServer { if (value == null) { unsetBlockHashes(); } else { - setBlockHashes((List)value); + setBlockHashes((java.util.List)value); } break; @@ -9507,14 +10042,19 @@ public class SatelliteServer { if (value == null) { unsetMachineDescription(); } else { - setMachineDescription((ByteBuffer)value); + if (value instanceof byte[]) { + setMachineDescription((byte[])value); + } else { + setMachineDescription((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -9532,13 +10072,13 @@ public class SatelliteServer { return getMachineDescription(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -9553,13 +10093,11 @@ public class SatelliteServer { case MACHINE_DESCRIPTION: return isSetMachineDescription(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof requestImageVersionUpload_args) return this.equals((requestImageVersionUpload_args)that); return false; @@ -9568,6 +10106,8 @@ public class SatelliteServer { public boolean equals(requestImageVersionUpload_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -9619,34 +10159,27 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); - boolean present_fileSize = true; - list.add(present_fileSize); - if (present_fileSize) - list.add(fileSize); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(fileSize); - boolean present_blockHashes = true && (isSetBlockHashes()); - list.add(present_blockHashes); - if (present_blockHashes) - list.add(blockHashes); + hashCode = hashCode * 8191 + ((isSetBlockHashes()) ? 131071 : 524287); + if (isSetBlockHashes()) + hashCode = hashCode * 8191 + blockHashes.hashCode(); - boolean present_machineDescription = true && (isSetMachineDescription()); - list.add(present_machineDescription); - if (present_machineDescription) - list.add(machineDescription); + hashCode = hashCode * 8191 + ((isSetMachineDescription()) ? 131071 : 524287); + if (isSetMachineDescription()) + hashCode = hashCode * 8191 + machineDescription.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -9657,7 +10190,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -9667,7 +10200,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = java.lang.Boolean.compare(isSetImageBaseId(), other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } @@ -9677,7 +10210,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFileSize()).compareTo(other.isSetFileSize()); + lastComparison = java.lang.Boolean.compare(isSetFileSize(), other.isSetFileSize()); if (lastComparison != 0) { return lastComparison; } @@ -9687,7 +10220,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBlockHashes()).compareTo(other.isSetBlockHashes()); + lastComparison = java.lang.Boolean.compare(isSetBlockHashes(), other.isSetBlockHashes()); if (lastComparison != 0) { return lastComparison; } @@ -9697,7 +10230,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMachineDescription()).compareTo(other.isSetMachineDescription()); + lastComparison = java.lang.Boolean.compare(isSetMachineDescription(), other.isSetMachineDescription()); if (lastComparison != 0) { return lastComparison; } @@ -9710,21 +10243,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("requestImageVersionUpload_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("requestImageVersionUpload_args("); boolean first = true; sb.append("userToken:"); @@ -9779,7 +10313,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -9789,13 +10323,13 @@ public class SatelliteServer { } } - private static class requestImageVersionUpload_argsStandardSchemeFactory implements SchemeFactory { + private static class requestImageVersionUpload_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public requestImageVersionUpload_argsStandardScheme getScheme() { return new requestImageVersionUpload_argsStandardScheme(); } } - private static class requestImageVersionUpload_argsStandardScheme extends StandardScheme { + private static class requestImageVersionUpload_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageVersionUpload_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -9834,13 +10368,13 @@ public class SatelliteServer { case 4: // BLOCK_HASHES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list218 = iprot.readListBegin(); - struct.blockHashes = new ArrayList(_list218.size); - ByteBuffer _elem219; - for (int _i220 = 0; _i220 < _list218.size; ++_i220) + org.apache.thrift.protocol.TList _list298 = iprot.readListBegin(); + struct.blockHashes = new java.util.ArrayList(_list298.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem299; + for (int _i300 = 0; _i300 < _list298.size; ++_i300) { - _elem219 = iprot.readBinary(); - struct.blockHashes.add(_elem219); + _elem299 = iprot.readBinary(); + struct.blockHashes.add(_elem299); } iprot.readListEnd(); } @@ -9889,9 +10423,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 _iter221 : struct.blockHashes) + for (java.nio.ByteBuffer _iter301 : struct.blockHashes) { - oprot.writeBinary(_iter221); + oprot.writeBinary(_iter301); } oprot.writeListEnd(); } @@ -9908,18 +10442,18 @@ public class SatelliteServer { } - private static class requestImageVersionUpload_argsTupleSchemeFactory implements SchemeFactory { + private static class requestImageVersionUpload_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public requestImageVersionUpload_argsTupleScheme getScheme() { return new requestImageVersionUpload_argsTupleScheme(); } } - private static class requestImageVersionUpload_argsTupleScheme extends TupleScheme { + private static class requestImageVersionUpload_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, requestImageVersionUpload_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -9948,9 +10482,9 @@ public class SatelliteServer { if (struct.isSetBlockHashes()) { { oprot.writeI32(struct.blockHashes.size()); - for (ByteBuffer _iter222 : struct.blockHashes) + for (java.nio.ByteBuffer _iter302 : struct.blockHashes) { - oprot.writeBinary(_iter222); + oprot.writeBinary(_iter302); } } } @@ -9961,8 +10495,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, requestImageVersionUpload_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -9977,13 +10511,13 @@ public class SatelliteServer { } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.blockHashes = new ArrayList(_list223.size); - ByteBuffer _elem224; - for (int _i225 = 0; _i225 < _list223.size; ++_i225) + org.apache.thrift.protocol.TList _list303 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.blockHashes = new java.util.ArrayList(_list303.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem304; + for (int _i305 = 0; _i305 < _list303.size; ++_i305) { - _elem224 = iprot.readBinary(); - struct.blockHashes.add(_elem224); + _elem304 = iprot.readBinary(); + struct.blockHashes.add(_elem304); } } struct.setBlockHashesIsSet(true); @@ -9995,6 +10529,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class requestImageVersionUpload_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -10006,17 +10543,14 @@ public class SatelliteServer { 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)3); 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)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new requestImageVersionUpload_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new requestImageVersionUpload_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new requestImageVersionUpload_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new requestImageVersionUpload_resultTupleSchemeFactory(); - public TransferInformation success; // required - public TTransferRejectedException rejection; // required - public TAuthorizationException authError; // required - public TInvocationException ffff; // required - public TNotFoundException sdf; // required + public @org.apache.thrift.annotation.Nullable TransferInformation success; // required + public @org.apache.thrift.annotation.Nullable TTransferRejectedException rejection; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TInvocationException ffff; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException sdf; // 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 { @@ -10026,10 +10560,10 @@ public class SatelliteServer { FFFF((short)3, "ffff"), SDF((short)4, "sdf"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -10037,6 +10571,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -10060,21 +10595,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -10083,26 +10619,26 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); tmpMap.put(_Fields.REJECTION, new org.apache.thrift.meta_data.FieldMetaData("rejection", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTransferRejectedException.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); tmpMap.put(_Fields.SDF, new org.apache.thrift.meta_data.FieldMetaData("sdf", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestImageVersionUpload_result.class, metaDataMap); } @@ -10158,11 +10694,12 @@ public class SatelliteServer { this.sdf = null; } + @org.apache.thrift.annotation.Nullable public TransferInformation getSuccess() { return this.success; } - public requestImageVersionUpload_result setSuccess(TransferInformation success) { + public requestImageVersionUpload_result setSuccess(@org.apache.thrift.annotation.Nullable TransferInformation success) { this.success = success; return this; } @@ -10182,11 +10719,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TTransferRejectedException getRejection() { return this.rejection; } - public requestImageVersionUpload_result setRejection(TTransferRejectedException rejection) { + public requestImageVersionUpload_result setRejection(@org.apache.thrift.annotation.Nullable TTransferRejectedException rejection) { this.rejection = rejection; return this; } @@ -10206,11 +10744,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public requestImageVersionUpload_result setAuthError(TAuthorizationException authError) { + public requestImageVersionUpload_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -10230,11 +10769,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getFfff() { return this.ffff; } - public requestImageVersionUpload_result setFfff(TInvocationException ffff) { + public requestImageVersionUpload_result setFfff(@org.apache.thrift.annotation.Nullable TInvocationException ffff) { this.ffff = ffff; return this; } @@ -10254,11 +10794,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getSdf() { return this.sdf; } - public requestImageVersionUpload_result setSdf(TNotFoundException sdf) { + public requestImageVersionUpload_result setSdf(@org.apache.thrift.annotation.Nullable TNotFoundException sdf) { this.sdf = sdf; return this; } @@ -10278,7 +10819,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -10323,7 +10864,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -10341,13 +10883,13 @@ public class SatelliteServer { return getSdf(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -10362,13 +10904,11 @@ public class SatelliteServer { case SDF: return isSetSdf(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof requestImageVersionUpload_result) return this.equals((requestImageVersionUpload_result)that); return false; @@ -10377,6 +10917,8 @@ public class SatelliteServer { public boolean equals(requestImageVersionUpload_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -10428,34 +10970,29 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_rejection = true && (isSetRejection()); - list.add(present_rejection); - if (present_rejection) - list.add(rejection); + hashCode = hashCode * 8191 + ((isSetRejection()) ? 131071 : 524287); + if (isSetRejection()) + hashCode = hashCode * 8191 + rejection.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_ffff = true && (isSetFfff()); - list.add(present_ffff); - if (present_ffff) - list.add(ffff); + hashCode = hashCode * 8191 + ((isSetFfff()) ? 131071 : 524287); + if (isSetFfff()) + hashCode = hashCode * 8191 + ffff.hashCode(); - boolean present_sdf = true && (isSetSdf()); - list.add(present_sdf); - if (present_sdf) - list.add(sdf); + hashCode = hashCode * 8191 + ((isSetSdf()) ? 131071 : 524287); + if (isSetSdf()) + hashCode = hashCode * 8191 + sdf.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -10466,7 +11003,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -10476,7 +11013,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRejection()).compareTo(other.isSetRejection()); + lastComparison = java.lang.Boolean.compare(isSetRejection(), other.isSetRejection()); if (lastComparison != 0) { return lastComparison; } @@ -10486,7 +11023,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -10496,7 +11033,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFfff()).compareTo(other.isSetFfff()); + lastComparison = java.lang.Boolean.compare(isSetFfff(), other.isSetFfff()); if (lastComparison != 0) { return lastComparison; } @@ -10506,7 +11043,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSdf()).compareTo(other.isSetSdf()); + lastComparison = java.lang.Boolean.compare(isSetSdf(), other.isSetSdf()); if (lastComparison != 0) { return lastComparison; } @@ -10519,21 +11056,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("requestImageVersionUpload_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("requestImageVersionUpload_result("); boolean first = true; sb.append("success:"); @@ -10595,7 +11133,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -10603,13 +11141,13 @@ public class SatelliteServer { } } - private static class requestImageVersionUpload_resultStandardSchemeFactory implements SchemeFactory { + private static class requestImageVersionUpload_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public requestImageVersionUpload_resultStandardScheme getScheme() { return new requestImageVersionUpload_resultStandardScheme(); } } - private static class requestImageVersionUpload_resultStandardScheme extends StandardScheme { + private static class requestImageVersionUpload_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageVersionUpload_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -10712,18 +11250,18 @@ public class SatelliteServer { } - private static class requestImageVersionUpload_resultTupleSchemeFactory implements SchemeFactory { + private static class requestImageVersionUpload_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public requestImageVersionUpload_resultTupleScheme getScheme() { return new requestImageVersionUpload_resultTupleScheme(); } } - private static class requestImageVersionUpload_resultTupleScheme extends TupleScheme { + private static class requestImageVersionUpload_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, requestImageVersionUpload_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -10759,8 +11297,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, requestImageVersionUpload_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.success = new TransferInformation(); struct.success.read(iprot); @@ -10789,6 +11327,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class updateBlockHashes_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -10798,15 +11339,12 @@ public class SatelliteServer { 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)2); 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)3); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new updateBlockHashes_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateBlockHashes_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateBlockHashes_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateBlockHashes_argsTupleSchemeFactory(); - public String uploadToken; // required - public List blockHashes; // required - public String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String uploadToken; // required + public @org.apache.thrift.annotation.Nullable java.util.List blockHashes; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // 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 { @@ -10814,10 +11352,10 @@ public class SatelliteServer { BLOCK_HASHES((short)2, "blockHashes"), USER_TOKEN((short)3, "userToken"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -10825,6 +11363,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // UPLOAD_TOKEN @@ -10844,21 +11383,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -10867,15 +11407,15 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.UPLOAD_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("uploadToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); tmpMap.put(_Fields.BLOCK_HASHES, new org.apache.thrift.meta_data.FieldMetaData("blockHashes", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -10883,7 +11423,7 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)))); 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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBlockHashes_args.class, metaDataMap); } @@ -10891,9 +11431,9 @@ public class SatelliteServer { } public updateBlockHashes_args( - String uploadToken, - List blockHashes, - String userToken) + java.lang.String uploadToken, + java.util.List blockHashes, + java.lang.String userToken) { this(); this.uploadToken = uploadToken; @@ -10909,7 +11449,7 @@ public class SatelliteServer { this.uploadToken = other.uploadToken; } if (other.isSetBlockHashes()) { - List __this__blockHashes = new ArrayList(other.blockHashes); + java.util.List __this__blockHashes = new java.util.ArrayList(other.blockHashes); this.blockHashes = __this__blockHashes; } if (other.isSetUserToken()) { @@ -10928,11 +11468,12 @@ public class SatelliteServer { this.userToken = null; } - public String getUploadToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUploadToken() { return this.uploadToken; } - public updateBlockHashes_args setUploadToken(String uploadToken) { + public updateBlockHashes_args setUploadToken(@org.apache.thrift.annotation.Nullable java.lang.String uploadToken) { this.uploadToken = uploadToken; return this; } @@ -10956,22 +11497,24 @@ public class SatelliteServer { return (this.blockHashes == null) ? 0 : this.blockHashes.size(); } - public java.util.Iterator getBlockHashesIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getBlockHashesIterator() { return (this.blockHashes == null) ? null : this.blockHashes.iterator(); } - public void addToBlockHashes(ByteBuffer elem) { + public void addToBlockHashes(java.nio.ByteBuffer elem) { if (this.blockHashes == null) { - this.blockHashes = new ArrayList(); + this.blockHashes = new java.util.ArrayList(); } this.blockHashes.add(elem); } - public List getBlockHashes() { + @org.apache.thrift.annotation.Nullable + public java.util.List getBlockHashes() { return this.blockHashes; } - public updateBlockHashes_args setBlockHashes(List blockHashes) { + public updateBlockHashes_args setBlockHashes(@org.apache.thrift.annotation.Nullable java.util.List blockHashes) { this.blockHashes = blockHashes; return this; } @@ -10991,11 +11534,12 @@ public class SatelliteServer { } } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public updateBlockHashes_args setUserToken(String userToken) { + public updateBlockHashes_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -11015,13 +11559,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case UPLOAD_TOKEN: if (value == null) { unsetUploadToken(); } else { - setUploadToken((String)value); + setUploadToken((java.lang.String)value); } break; @@ -11029,7 +11573,7 @@ public class SatelliteServer { if (value == null) { unsetBlockHashes(); } else { - setBlockHashes((List)value); + setBlockHashes((java.util.List)value); } break; @@ -11037,14 +11581,15 @@ public class SatelliteServer { if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case UPLOAD_TOKEN: return getUploadToken(); @@ -11056,13 +11601,13 @@ public class SatelliteServer { return getUserToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -11073,13 +11618,11 @@ public class SatelliteServer { case USER_TOKEN: return isSetUserToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof updateBlockHashes_args) return this.equals((updateBlockHashes_args)that); return false; @@ -11088,6 +11631,8 @@ public class SatelliteServer { public boolean equals(updateBlockHashes_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_uploadToken = true && this.isSetUploadToken(); boolean that_present_uploadToken = true && that.isSetUploadToken(); @@ -11121,24 +11666,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_uploadToken = true && (isSetUploadToken()); - list.add(present_uploadToken); - if (present_uploadToken) - list.add(uploadToken); + hashCode = hashCode * 8191 + ((isSetUploadToken()) ? 131071 : 524287); + if (isSetUploadToken()) + hashCode = hashCode * 8191 + uploadToken.hashCode(); - boolean present_blockHashes = true && (isSetBlockHashes()); - list.add(present_blockHashes); - if (present_blockHashes) - list.add(blockHashes); + hashCode = hashCode * 8191 + ((isSetBlockHashes()) ? 131071 : 524287); + if (isSetBlockHashes()) + hashCode = hashCode * 8191 + blockHashes.hashCode(); - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -11149,7 +11691,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUploadToken()).compareTo(other.isSetUploadToken()); + lastComparison = java.lang.Boolean.compare(isSetUploadToken(), other.isSetUploadToken()); if (lastComparison != 0) { return lastComparison; } @@ -11159,7 +11701,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBlockHashes()).compareTo(other.isSetBlockHashes()); + lastComparison = java.lang.Boolean.compare(isSetBlockHashes(), other.isSetBlockHashes()); if (lastComparison != 0) { return lastComparison; } @@ -11169,7 +11711,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -11182,21 +11724,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("updateBlockHashes_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("updateBlockHashes_args("); boolean first = true; sb.append("uploadToken:"); @@ -11239,7 +11782,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -11247,13 +11790,13 @@ public class SatelliteServer { } } - private static class updateBlockHashes_argsStandardSchemeFactory implements SchemeFactory { + private static class updateBlockHashes_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateBlockHashes_argsStandardScheme getScheme() { return new updateBlockHashes_argsStandardScheme(); } } - private static class updateBlockHashes_argsStandardScheme extends StandardScheme { + private static class updateBlockHashes_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, updateBlockHashes_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -11276,13 +11819,13 @@ public class SatelliteServer { case 2: // BLOCK_HASHES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list226 = iprot.readListBegin(); - struct.blockHashes = new ArrayList(_list226.size); - ByteBuffer _elem227; - for (int _i228 = 0; _i228 < _list226.size; ++_i228) + org.apache.thrift.protocol.TList _list306 = iprot.readListBegin(); + struct.blockHashes = new java.util.ArrayList(_list306.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem307; + for (int _i308 = 0; _i308 < _list306.size; ++_i308) { - _elem227 = iprot.readBinary(); - struct.blockHashes.add(_elem227); + _elem307 = iprot.readBinary(); + struct.blockHashes.add(_elem307); } iprot.readListEnd(); } @@ -11323,9 +11866,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 _iter229 : struct.blockHashes) + for (java.nio.ByteBuffer _iter309 : struct.blockHashes) { - oprot.writeBinary(_iter229); + oprot.writeBinary(_iter309); } oprot.writeListEnd(); } @@ -11342,18 +11885,18 @@ public class SatelliteServer { } - private static class updateBlockHashes_argsTupleSchemeFactory implements SchemeFactory { + private static class updateBlockHashes_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateBlockHashes_argsTupleScheme getScheme() { return new updateBlockHashes_argsTupleScheme(); } } - private static class updateBlockHashes_argsTupleScheme extends TupleScheme { + private static class updateBlockHashes_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, updateBlockHashes_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUploadToken()) { optionals.set(0); } @@ -11370,9 +11913,9 @@ public class SatelliteServer { if (struct.isSetBlockHashes()) { { oprot.writeI32(struct.blockHashes.size()); - for (ByteBuffer _iter230 : struct.blockHashes) + for (java.nio.ByteBuffer _iter310 : struct.blockHashes) { - oprot.writeBinary(_iter230); + oprot.writeBinary(_iter310); } } } @@ -11383,21 +11926,21 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, updateBlockHashes_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.uploadToken = iprot.readString(); struct.setUploadTokenIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.blockHashes = new ArrayList(_list231.size); - ByteBuffer _elem232; - for (int _i233 = 0; _i233 < _list231.size; ++_i233) + org.apache.thrift.protocol.TList _list311 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.blockHashes = new java.util.ArrayList(_list311.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem312; + for (int _i313 = 0; _i313 < _list311.size; ++_i313) { - _elem232 = iprot.readBinary(); - struct.blockHashes.add(_elem232); + _elem312 = iprot.readBinary(); + struct.blockHashes.add(_elem312); } } struct.setBlockHashesIsSet(true); @@ -11409,6 +11952,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class updateBlockHashes_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -11416,22 +11962,19 @@ public class SatelliteServer { private static final org.apache.thrift.protocol.TField EX1_FIELD_DESC = new org.apache.thrift.protocol.TField("ex1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new updateBlockHashes_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateBlockHashes_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateBlockHashes_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateBlockHashes_resultTupleSchemeFactory(); - public TInvalidTokenException ex1; // required + public @org.apache.thrift.annotation.Nullable TInvalidTokenException ex1; // 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 { EX1((short)1, "ex1"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -11439,6 +11982,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX1 @@ -11454,21 +11998,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -11477,18 +12022,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX1, new org.apache.thrift.meta_data.FieldMetaData("ex1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidTokenException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBlockHashes_result.class, metaDataMap); } @@ -11520,11 +12065,12 @@ public class SatelliteServer { this.ex1 = null; } + @org.apache.thrift.annotation.Nullable public TInvalidTokenException getEx1() { return this.ex1; } - public updateBlockHashes_result setEx1(TInvalidTokenException ex1) { + public updateBlockHashes_result setEx1(@org.apache.thrift.annotation.Nullable TInvalidTokenException ex1) { this.ex1 = ex1; return this; } @@ -11544,7 +12090,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case EX1: if (value == null) { @@ -11557,32 +12103,31 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case EX1: return getEx1(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case EX1: return isSetEx1(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof updateBlockHashes_result) return this.equals((updateBlockHashes_result)that); return false; @@ -11591,6 +12136,8 @@ public class SatelliteServer { public boolean equals(updateBlockHashes_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_ex1 = true && this.isSetEx1(); boolean that_present_ex1 = true && that.isSetEx1(); @@ -11606,14 +12153,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_ex1 = true && (isSetEx1()); - list.add(present_ex1); - if (present_ex1) - list.add(ex1); + hashCode = hashCode * 8191 + ((isSetEx1()) ? 131071 : 524287); + if (isSetEx1()) + hashCode = hashCode * 8191 + ex1.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -11624,7 +12170,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetEx1()).compareTo(other.isSetEx1()); + lastComparison = java.lang.Boolean.compare(isSetEx1(), other.isSetEx1()); if (lastComparison != 0) { return lastComparison; } @@ -11637,21 +12183,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("updateBlockHashes_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("updateBlockHashes_result("); boolean first = true; sb.append("ex1:"); @@ -11678,7 +12225,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -11686,13 +12233,13 @@ public class SatelliteServer { } } - private static class updateBlockHashes_resultStandardSchemeFactory implements SchemeFactory { + private static class updateBlockHashes_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateBlockHashes_resultStandardScheme getScheme() { return new updateBlockHashes_resultStandardScheme(); } } - private static class updateBlockHashes_resultStandardScheme extends StandardScheme { + private static class updateBlockHashes_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, updateBlockHashes_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -11739,18 +12286,18 @@ public class SatelliteServer { } - private static class updateBlockHashes_resultTupleSchemeFactory implements SchemeFactory { + private static class updateBlockHashes_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateBlockHashes_resultTupleScheme getScheme() { return new updateBlockHashes_resultTupleScheme(); } } - private static class updateBlockHashes_resultTupleScheme extends TupleScheme { + private static class updateBlockHashes_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, updateBlockHashes_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetEx1()) { optionals.set(0); } @@ -11762,8 +12309,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, updateBlockHashes_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.ex1 = new TInvalidTokenException(); struct.ex1.read(iprot); @@ -11772,6 +12319,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class setUploadOptions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -11781,15 +12331,12 @@ public class SatelliteServer { private static final org.apache.thrift.protocol.TField UPLOAD_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("uploadToken", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField OPTIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("options", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new setUploadOptions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setUploadOptions_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setUploadOptions_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setUploadOptions_argsTupleSchemeFactory(); - public String userToken; // required - public String uploadToken; // required - public UploadOptions options; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String uploadToken; // required + public @org.apache.thrift.annotation.Nullable UploadOptions options; // 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 { @@ -11797,10 +12344,10 @@ public class SatelliteServer { UPLOAD_TOKEN((short)2, "uploadToken"), OPTIONS((short)3, "options"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -11808,6 +12355,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -11827,21 +12375,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -11850,22 +12399,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.UPLOAD_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("uploadToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); tmpMap.put(_Fields.OPTIONS, new org.apache.thrift.meta_data.FieldMetaData("options", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UploadOptions.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUploadOptions_args.class, metaDataMap); } @@ -11873,8 +12422,8 @@ public class SatelliteServer { } public setUploadOptions_args( - String userToken, - String uploadToken, + java.lang.String userToken, + java.lang.String uploadToken, UploadOptions options) { this(); @@ -11909,11 +12458,12 @@ public class SatelliteServer { this.options = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public setUploadOptions_args setUserToken(String userToken) { + public setUploadOptions_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -11933,11 +12483,12 @@ public class SatelliteServer { } } - public String getUploadToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUploadToken() { return this.uploadToken; } - public setUploadOptions_args setUploadToken(String uploadToken) { + public setUploadOptions_args setUploadToken(@org.apache.thrift.annotation.Nullable java.lang.String uploadToken) { this.uploadToken = uploadToken; return this; } @@ -11957,11 +12508,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public UploadOptions getOptions() { return this.options; } - public setUploadOptions_args setOptions(UploadOptions options) { + public setUploadOptions_args setOptions(@org.apache.thrift.annotation.Nullable UploadOptions options) { this.options = options; return this; } @@ -11981,13 +12533,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -11995,7 +12547,7 @@ public class SatelliteServer { if (value == null) { unsetUploadToken(); } else { - setUploadToken((String)value); + setUploadToken((java.lang.String)value); } break; @@ -12010,7 +12562,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -12022,13 +12575,13 @@ public class SatelliteServer { return getOptions(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -12039,13 +12592,11 @@ public class SatelliteServer { case OPTIONS: return isSetOptions(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof setUploadOptions_args) return this.equals((setUploadOptions_args)that); return false; @@ -12054,6 +12605,8 @@ public class SatelliteServer { public boolean equals(setUploadOptions_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -12087,24 +12640,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_uploadToken = true && (isSetUploadToken()); - list.add(present_uploadToken); - if (present_uploadToken) - list.add(uploadToken); + hashCode = hashCode * 8191 + ((isSetUploadToken()) ? 131071 : 524287); + if (isSetUploadToken()) + hashCode = hashCode * 8191 + uploadToken.hashCode(); - boolean present_options = true && (isSetOptions()); - list.add(present_options); - if (present_options) - list.add(options); + hashCode = hashCode * 8191 + ((isSetOptions()) ? 131071 : 524287); + if (isSetOptions()) + hashCode = hashCode * 8191 + options.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -12115,7 +12665,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -12125,7 +12675,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUploadToken()).compareTo(other.isSetUploadToken()); + lastComparison = java.lang.Boolean.compare(isSetUploadToken(), other.isSetUploadToken()); if (lastComparison != 0) { return lastComparison; } @@ -12135,7 +12685,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOptions()).compareTo(other.isSetOptions()); + lastComparison = java.lang.Boolean.compare(isSetOptions(), other.isSetOptions()); if (lastComparison != 0) { return lastComparison; } @@ -12148,21 +12698,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("setUploadOptions_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("setUploadOptions_args("); boolean first = true; sb.append("userToken:"); @@ -12208,7 +12759,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -12216,13 +12767,13 @@ public class SatelliteServer { } } - private static class setUploadOptions_argsStandardSchemeFactory implements SchemeFactory { + private static class setUploadOptions_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setUploadOptions_argsStandardScheme getScheme() { return new setUploadOptions_argsStandardScheme(); } } - private static class setUploadOptions_argsStandardScheme extends StandardScheme { + private static class setUploadOptions_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setUploadOptions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -12295,18 +12846,18 @@ public class SatelliteServer { } - private static class setUploadOptions_argsTupleSchemeFactory implements SchemeFactory { + private static class setUploadOptions_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setUploadOptions_argsTupleScheme getScheme() { return new setUploadOptions_argsTupleScheme(); } } - private static class setUploadOptions_argsTupleScheme extends TupleScheme { + private static class setUploadOptions_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setUploadOptions_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -12330,8 +12881,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, setUploadOptions_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -12348,6 +12899,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class setUploadOptions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -12357,15 +12911,12 @@ public class SatelliteServer { private static final org.apache.thrift.protocol.TField FROOTLOOPS_FIELD_DESC = new org.apache.thrift.protocol.TField("frootloops", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField IMCYBORGBUTTHATSOK_FIELD_DESC = new org.apache.thrift.protocol.TField("imcyborgbutthatsok", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new setUploadOptions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setUploadOptions_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setUploadOptions_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setUploadOptions_resultTupleSchemeFactory(); - public UploadOptions success; // required - public TAuthorizationException frootloops; // required - public TInvalidTokenException imcyborgbutthatsok; // required + public @org.apache.thrift.annotation.Nullable UploadOptions success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException frootloops; // required + public @org.apache.thrift.annotation.Nullable TInvalidTokenException imcyborgbutthatsok; // 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 { @@ -12373,10 +12924,10 @@ public class SatelliteServer { FROOTLOOPS((short)1, "frootloops"), IMCYBORGBUTTHATSOK((short)2, "imcyborgbutthatsok"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -12384,6 +12935,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -12403,21 +12955,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -12426,22 +12979,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, UploadOptions.class))); tmpMap.put(_Fields.FROOTLOOPS, new org.apache.thrift.meta_data.FieldMetaData("frootloops", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); tmpMap.put(_Fields.IMCYBORGBUTTHATSOK, new org.apache.thrift.meta_data.FieldMetaData("imcyborgbutthatsok", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidTokenException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUploadOptions_result.class, metaDataMap); } @@ -12485,11 +13038,12 @@ public class SatelliteServer { this.imcyborgbutthatsok = null; } + @org.apache.thrift.annotation.Nullable public UploadOptions getSuccess() { return this.success; } - public setUploadOptions_result setSuccess(UploadOptions success) { + public setUploadOptions_result setSuccess(@org.apache.thrift.annotation.Nullable UploadOptions success) { this.success = success; return this; } @@ -12509,11 +13063,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getFrootloops() { return this.frootloops; } - public setUploadOptions_result setFrootloops(TAuthorizationException frootloops) { + public setUploadOptions_result setFrootloops(@org.apache.thrift.annotation.Nullable TAuthorizationException frootloops) { this.frootloops = frootloops; return this; } @@ -12533,11 +13088,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvalidTokenException getImcyborgbutthatsok() { return this.imcyborgbutthatsok; } - public setUploadOptions_result setImcyborgbutthatsok(TInvalidTokenException imcyborgbutthatsok) { + public setUploadOptions_result setImcyborgbutthatsok(@org.apache.thrift.annotation.Nullable TInvalidTokenException imcyborgbutthatsok) { this.imcyborgbutthatsok = imcyborgbutthatsok; return this; } @@ -12557,7 +13113,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -12586,7 +13142,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -12598,13 +13155,13 @@ public class SatelliteServer { return getImcyborgbutthatsok(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -12615,13 +13172,11 @@ public class SatelliteServer { case IMCYBORGBUTTHATSOK: return isSetImcyborgbutthatsok(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof setUploadOptions_result) return this.equals((setUploadOptions_result)that); return false; @@ -12630,6 +13185,8 @@ public class SatelliteServer { public boolean equals(setUploadOptions_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -12663,24 +13220,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_frootloops = true && (isSetFrootloops()); - list.add(present_frootloops); - if (present_frootloops) - list.add(frootloops); + hashCode = hashCode * 8191 + ((isSetFrootloops()) ? 131071 : 524287); + if (isSetFrootloops()) + hashCode = hashCode * 8191 + frootloops.hashCode(); - boolean present_imcyborgbutthatsok = true && (isSetImcyborgbutthatsok()); - list.add(present_imcyborgbutthatsok); - if (present_imcyborgbutthatsok) - list.add(imcyborgbutthatsok); + hashCode = hashCode * 8191 + ((isSetImcyborgbutthatsok()) ? 131071 : 524287); + if (isSetImcyborgbutthatsok()) + hashCode = hashCode * 8191 + imcyborgbutthatsok.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -12691,7 +13245,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -12701,7 +13255,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFrootloops()).compareTo(other.isSetFrootloops()); + lastComparison = java.lang.Boolean.compare(isSetFrootloops(), other.isSetFrootloops()); if (lastComparison != 0) { return lastComparison; } @@ -12711,7 +13265,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImcyborgbutthatsok()).compareTo(other.isSetImcyborgbutthatsok()); + lastComparison = java.lang.Boolean.compare(isSetImcyborgbutthatsok(), other.isSetImcyborgbutthatsok()); if (lastComparison != 0) { return lastComparison; } @@ -12724,21 +13278,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("setUploadOptions_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("setUploadOptions_result("); boolean first = true; sb.append("success:"); @@ -12784,7 +13339,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -12792,13 +13347,13 @@ public class SatelliteServer { } } - private static class setUploadOptions_resultStandardSchemeFactory implements SchemeFactory { + private static class setUploadOptions_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setUploadOptions_resultStandardScheme getScheme() { return new setUploadOptions_resultStandardScheme(); } } - private static class setUploadOptions_resultStandardScheme extends StandardScheme { + private static class setUploadOptions_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setUploadOptions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -12873,18 +13428,18 @@ public class SatelliteServer { } - private static class setUploadOptions_resultTupleSchemeFactory implements SchemeFactory { + private static class setUploadOptions_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setUploadOptions_resultTupleScheme getScheme() { return new setUploadOptions_resultTupleScheme(); } } - private static class setUploadOptions_resultTupleScheme extends TupleScheme { + private static class setUploadOptions_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setUploadOptions_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -12908,8 +13463,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, setUploadOptions_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new UploadOptions(); struct.success.read(iprot); @@ -12928,6 +13483,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class cancelUpload_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -12935,22 +13493,19 @@ public class SatelliteServer { private static final org.apache.thrift.protocol.TField UPLOAD_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("uploadToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new cancelUpload_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new cancelUpload_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new cancelUpload_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new cancelUpload_argsTupleSchemeFactory(); - public String uploadToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String uploadToken; // 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 { UPLOAD_TOKEN((short)1, "uploadToken"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -12958,6 +13513,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // UPLOAD_TOKEN @@ -12973,21 +13529,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -12996,18 +13553,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.UPLOAD_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("uploadToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancelUpload_args.class, metaDataMap); } @@ -13015,7 +13572,7 @@ public class SatelliteServer { } public cancelUpload_args( - String uploadToken) + java.lang.String uploadToken) { this(); this.uploadToken = uploadToken; @@ -13039,11 +13596,12 @@ public class SatelliteServer { this.uploadToken = null; } - public String getUploadToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUploadToken() { return this.uploadToken; } - public cancelUpload_args setUploadToken(String uploadToken) { + public cancelUpload_args setUploadToken(@org.apache.thrift.annotation.Nullable java.lang.String uploadToken) { this.uploadToken = uploadToken; return this; } @@ -13063,45 +13621,44 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case UPLOAD_TOKEN: if (value == null) { unsetUploadToken(); } else { - setUploadToken((String)value); + setUploadToken((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case UPLOAD_TOKEN: return getUploadToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case UPLOAD_TOKEN: return isSetUploadToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof cancelUpload_args) return this.equals((cancelUpload_args)that); return false; @@ -13110,6 +13667,8 @@ public class SatelliteServer { public boolean equals(cancelUpload_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_uploadToken = true && this.isSetUploadToken(); boolean that_present_uploadToken = true && that.isSetUploadToken(); @@ -13125,14 +13684,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_uploadToken = true && (isSetUploadToken()); - list.add(present_uploadToken); - if (present_uploadToken) - list.add(uploadToken); + hashCode = hashCode * 8191 + ((isSetUploadToken()) ? 131071 : 524287); + if (isSetUploadToken()) + hashCode = hashCode * 8191 + uploadToken.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -13143,7 +13701,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUploadToken()).compareTo(other.isSetUploadToken()); + lastComparison = java.lang.Boolean.compare(isSetUploadToken(), other.isSetUploadToken()); if (lastComparison != 0) { return lastComparison; } @@ -13156,21 +13714,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("cancelUpload_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("cancelUpload_args("); boolean first = true; sb.append("uploadToken:"); @@ -13197,7 +13756,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -13205,13 +13764,13 @@ public class SatelliteServer { } } - private static class cancelUpload_argsStandardSchemeFactory implements SchemeFactory { + private static class cancelUpload_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public cancelUpload_argsStandardScheme getScheme() { return new cancelUpload_argsStandardScheme(); } } - private static class cancelUpload_argsStandardScheme extends StandardScheme { + private static class cancelUpload_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, cancelUpload_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -13257,18 +13816,18 @@ public class SatelliteServer { } - private static class cancelUpload_argsTupleSchemeFactory implements SchemeFactory { + private static class cancelUpload_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public cancelUpload_argsTupleScheme getScheme() { return new cancelUpload_argsTupleScheme(); } } - private static class cancelUpload_argsTupleScheme extends TupleScheme { + private static class cancelUpload_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, cancelUpload_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUploadToken()) { optionals.set(0); } @@ -13280,8 +13839,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, cancelUpload_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.uploadToken = iprot.readString(); struct.setUploadTokenIsSet(true); @@ -13289,6 +13848,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class cancelUpload_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -13296,22 +13858,19 @@ public class SatelliteServer { private static final org.apache.thrift.protocol.TField EX1_FIELD_DESC = new org.apache.thrift.protocol.TField("ex1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new cancelUpload_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new cancelUpload_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new cancelUpload_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new cancelUpload_resultTupleSchemeFactory(); - public TInvalidTokenException ex1; // required + public @org.apache.thrift.annotation.Nullable TInvalidTokenException ex1; // 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 { EX1((short)1, "ex1"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -13319,6 +13878,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX1 @@ -13334,21 +13894,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -13357,18 +13918,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX1, new org.apache.thrift.meta_data.FieldMetaData("ex1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidTokenException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancelUpload_result.class, metaDataMap); } @@ -13400,11 +13961,12 @@ public class SatelliteServer { this.ex1 = null; } + @org.apache.thrift.annotation.Nullable public TInvalidTokenException getEx1() { return this.ex1; } - public cancelUpload_result setEx1(TInvalidTokenException ex1) { + public cancelUpload_result setEx1(@org.apache.thrift.annotation.Nullable TInvalidTokenException ex1) { this.ex1 = ex1; return this; } @@ -13424,7 +13986,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case EX1: if (value == null) { @@ -13437,32 +13999,31 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case EX1: return getEx1(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case EX1: return isSetEx1(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof cancelUpload_result) return this.equals((cancelUpload_result)that); return false; @@ -13471,6 +14032,8 @@ public class SatelliteServer { public boolean equals(cancelUpload_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_ex1 = true && this.isSetEx1(); boolean that_present_ex1 = true && that.isSetEx1(); @@ -13486,14 +14049,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_ex1 = true && (isSetEx1()); - list.add(present_ex1); - if (present_ex1) - list.add(ex1); + hashCode = hashCode * 8191 + ((isSetEx1()) ? 131071 : 524287); + if (isSetEx1()) + hashCode = hashCode * 8191 + ex1.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -13504,7 +14066,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetEx1()).compareTo(other.isSetEx1()); + lastComparison = java.lang.Boolean.compare(isSetEx1(), other.isSetEx1()); if (lastComparison != 0) { return lastComparison; } @@ -13517,21 +14079,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("cancelUpload_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("cancelUpload_result("); boolean first = true; sb.append("ex1:"); @@ -13558,7 +14121,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -13566,13 +14129,13 @@ public class SatelliteServer { } } - private static class cancelUpload_resultStandardSchemeFactory implements SchemeFactory { + private static class cancelUpload_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public cancelUpload_resultStandardScheme getScheme() { return new cancelUpload_resultStandardScheme(); } } - private static class cancelUpload_resultStandardScheme extends StandardScheme { + private static class cancelUpload_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, cancelUpload_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -13619,18 +14182,18 @@ public class SatelliteServer { } - private static class cancelUpload_resultTupleSchemeFactory implements SchemeFactory { + private static class cancelUpload_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public cancelUpload_resultTupleScheme getScheme() { return new cancelUpload_resultTupleScheme(); } } - private static class cancelUpload_resultTupleScheme extends TupleScheme { + private static class cancelUpload_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, cancelUpload_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetEx1()) { optionals.set(0); } @@ -13642,8 +14205,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, cancelUpload_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.ex1 = new TInvalidTokenException(); struct.ex1.read(iprot); @@ -13652,6 +14215,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class queryUploadStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -13659,22 +14225,19 @@ public class SatelliteServer { private static final org.apache.thrift.protocol.TField UPLOAD_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("uploadToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new queryUploadStatus_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new queryUploadStatus_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new queryUploadStatus_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new queryUploadStatus_argsTupleSchemeFactory(); - public String uploadToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String uploadToken; // 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 { UPLOAD_TOKEN((short)1, "uploadToken"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -13682,6 +14245,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // UPLOAD_TOKEN @@ -13697,21 +14261,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -13720,18 +14285,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.UPLOAD_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("uploadToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryUploadStatus_args.class, metaDataMap); } @@ -13739,7 +14304,7 @@ public class SatelliteServer { } public queryUploadStatus_args( - String uploadToken) + java.lang.String uploadToken) { this(); this.uploadToken = uploadToken; @@ -13763,11 +14328,12 @@ public class SatelliteServer { this.uploadToken = null; } - public String getUploadToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUploadToken() { return this.uploadToken; } - public queryUploadStatus_args setUploadToken(String uploadToken) { + public queryUploadStatus_args setUploadToken(@org.apache.thrift.annotation.Nullable java.lang.String uploadToken) { this.uploadToken = uploadToken; return this; } @@ -13787,45 +14353,44 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case UPLOAD_TOKEN: if (value == null) { unsetUploadToken(); } else { - setUploadToken((String)value); + setUploadToken((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case UPLOAD_TOKEN: return getUploadToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case UPLOAD_TOKEN: return isSetUploadToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof queryUploadStatus_args) return this.equals((queryUploadStatus_args)that); return false; @@ -13834,6 +14399,8 @@ public class SatelliteServer { public boolean equals(queryUploadStatus_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_uploadToken = true && this.isSetUploadToken(); boolean that_present_uploadToken = true && that.isSetUploadToken(); @@ -13849,14 +14416,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_uploadToken = true && (isSetUploadToken()); - list.add(present_uploadToken); - if (present_uploadToken) - list.add(uploadToken); + hashCode = hashCode * 8191 + ((isSetUploadToken()) ? 131071 : 524287); + if (isSetUploadToken()) + hashCode = hashCode * 8191 + uploadToken.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -13867,7 +14433,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUploadToken()).compareTo(other.isSetUploadToken()); + lastComparison = java.lang.Boolean.compare(isSetUploadToken(), other.isSetUploadToken()); if (lastComparison != 0) { return lastComparison; } @@ -13880,21 +14446,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("queryUploadStatus_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("queryUploadStatus_args("); boolean first = true; sb.append("uploadToken:"); @@ -13921,7 +14488,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -13929,13 +14496,13 @@ public class SatelliteServer { } } - private static class queryUploadStatus_argsStandardSchemeFactory implements SchemeFactory { + private static class queryUploadStatus_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public queryUploadStatus_argsStandardScheme getScheme() { return new queryUploadStatus_argsStandardScheme(); } } - private static class queryUploadStatus_argsStandardScheme extends StandardScheme { + private static class queryUploadStatus_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, queryUploadStatus_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -13981,18 +14548,18 @@ public class SatelliteServer { } - private static class queryUploadStatus_argsTupleSchemeFactory implements SchemeFactory { + private static class queryUploadStatus_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public queryUploadStatus_argsTupleScheme getScheme() { return new queryUploadStatus_argsTupleScheme(); } } - private static class queryUploadStatus_argsTupleScheme extends TupleScheme { + private static class queryUploadStatus_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUploadToken()) { optionals.set(0); } @@ -14004,8 +14571,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.uploadToken = iprot.readString(); struct.setUploadTokenIsSet(true); @@ -14013,6 +14580,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class queryUploadStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -14021,24 +14591,21 @@ public class SatelliteServer { 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 EX1_FIELD_DESC = new org.apache.thrift.protocol.TField("ex1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new queryUploadStatus_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new queryUploadStatus_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new queryUploadStatus_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new queryUploadStatus_resultTupleSchemeFactory(); - public TransferStatus success; // required - public TInvalidTokenException ex1; // required + public @org.apache.thrift.annotation.Nullable TransferStatus success; // required + public @org.apache.thrift.annotation.Nullable TInvalidTokenException ex1; // 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"), EX1((short)1, "ex1"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -14046,6 +14613,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -14063,21 +14631,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -14086,20 +14655,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, TransferStatus.class))); tmpMap.put(_Fields.EX1, new org.apache.thrift.meta_data.FieldMetaData("ex1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidTokenException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryUploadStatus_result.class, metaDataMap); } @@ -14137,11 +14706,12 @@ public class SatelliteServer { this.ex1 = null; } + @org.apache.thrift.annotation.Nullable public TransferStatus getSuccess() { return this.success; } - public queryUploadStatus_result setSuccess(TransferStatus success) { + public queryUploadStatus_result setSuccess(@org.apache.thrift.annotation.Nullable TransferStatus success) { this.success = success; return this; } @@ -14161,11 +14731,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvalidTokenException getEx1() { return this.ex1; } - public queryUploadStatus_result setEx1(TInvalidTokenException ex1) { + public queryUploadStatus_result setEx1(@org.apache.thrift.annotation.Nullable TInvalidTokenException ex1) { this.ex1 = ex1; return this; } @@ -14185,7 +14756,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -14206,7 +14777,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -14215,13 +14787,13 @@ public class SatelliteServer { return getEx1(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -14230,13 +14802,11 @@ public class SatelliteServer { case EX1: return isSetEx1(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof queryUploadStatus_result) return this.equals((queryUploadStatus_result)that); return false; @@ -14245,6 +14815,8 @@ public class SatelliteServer { public boolean equals(queryUploadStatus_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -14269,19 +14841,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_ex1 = true && (isSetEx1()); - list.add(present_ex1); - if (present_ex1) - list.add(ex1); + hashCode = hashCode * 8191 + ((isSetEx1()) ? 131071 : 524287); + if (isSetEx1()) + hashCode = hashCode * 8191 + ex1.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -14292,7 +14862,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -14302,7 +14872,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx1()).compareTo(other.isSetEx1()); + lastComparison = java.lang.Boolean.compare(isSetEx1(), other.isSetEx1()); if (lastComparison != 0) { return lastComparison; } @@ -14315,21 +14885,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("queryUploadStatus_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("queryUploadStatus_result("); boolean first = true; sb.append("success:"); @@ -14367,7 +14938,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -14375,13 +14946,13 @@ public class SatelliteServer { } } - private static class queryUploadStatus_resultStandardSchemeFactory implements SchemeFactory { + private static class queryUploadStatus_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public queryUploadStatus_resultStandardScheme getScheme() { return new queryUploadStatus_resultStandardScheme(); } } - private static class queryUploadStatus_resultStandardScheme extends StandardScheme { + private static class queryUploadStatus_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, queryUploadStatus_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -14442,18 +15013,18 @@ public class SatelliteServer { } - private static class queryUploadStatus_resultTupleSchemeFactory implements SchemeFactory { + private static class queryUploadStatus_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public queryUploadStatus_resultTupleScheme getScheme() { return new queryUploadStatus_resultTupleScheme(); } } - private static class queryUploadStatus_resultTupleScheme extends TupleScheme { + private static class queryUploadStatus_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -14471,8 +15042,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new TransferStatus(); struct.success.read(iprot); @@ -14486,6 +15057,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class requestDownload_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -14494,24 +15068,21 @@ public class SatelliteServer { 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 requestDownload_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new requestDownload_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new requestDownload_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new requestDownload_argsTupleSchemeFactory(); - public String userToken; // required - public String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.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"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -14519,6 +15090,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -14536,21 +15108,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -14559,20 +15132,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestDownload_args.class, metaDataMap); } @@ -14580,8 +15153,8 @@ public class SatelliteServer { } public requestDownload_args( - String userToken, - String imageVersionId) + java.lang.String userToken, + java.lang.String imageVersionId) { this(); this.userToken = userToken; @@ -14610,11 +15183,12 @@ public class SatelliteServer { this.imageVersionId = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public requestDownload_args setUserToken(String userToken) { + public requestDownload_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -14634,11 +15208,12 @@ public class SatelliteServer { } } - public String getImageVersionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageVersionId() { return this.imageVersionId; } - public requestDownload_args setImageVersionId(String imageVersionId) { + public requestDownload_args setImageVersionId(@org.apache.thrift.annotation.Nullable java.lang.String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -14658,13 +15233,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -14672,14 +15247,15 @@ public class SatelliteServer { if (value == null) { unsetImageVersionId(); } else { - setImageVersionId((String)value); + setImageVersionId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -14688,13 +15264,13 @@ public class SatelliteServer { return getImageVersionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -14703,13 +15279,11 @@ public class SatelliteServer { case IMAGE_VERSION_ID: return isSetImageVersionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof requestDownload_args) return this.equals((requestDownload_args)that); return false; @@ -14718,6 +15292,8 @@ public class SatelliteServer { public boolean equals(requestDownload_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -14742,19 +15318,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -14765,7 +15339,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -14775,7 +15349,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = java.lang.Boolean.compare(isSetImageVersionId(), other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } @@ -14788,21 +15362,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("requestDownload_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("requestDownload_args("); boolean first = true; sb.append("userToken:"); @@ -14837,7 +15412,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -14845,13 +15420,13 @@ public class SatelliteServer { } } - private static class requestDownload_argsStandardSchemeFactory implements SchemeFactory { + private static class requestDownload_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public requestDownload_argsStandardScheme getScheme() { return new requestDownload_argsStandardScheme(); } } - private static class requestDownload_argsStandardScheme extends StandardScheme { + private static class requestDownload_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, requestDownload_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -14910,18 +15485,18 @@ public class SatelliteServer { } - private static class requestDownload_argsTupleSchemeFactory implements SchemeFactory { + private static class requestDownload_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public requestDownload_argsTupleScheme getScheme() { return new requestDownload_argsTupleScheme(); } } - private static class requestDownload_argsTupleScheme extends TupleScheme { + private static class requestDownload_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, requestDownload_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -14939,8 +15514,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, requestDownload_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -14952,6 +15527,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class requestDownload_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -14963,17 +15541,14 @@ public class SatelliteServer { 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)3); 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)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new requestDownload_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new requestDownload_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new requestDownload_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new requestDownload_resultTupleSchemeFactory(); - public TransferInformation success; // required - public TTransferRejectedException rejection; // required - public TAuthorizationException authError; // required - public TInvocationException ffff; // required - public TNotFoundException sdf; // required + public @org.apache.thrift.annotation.Nullable TransferInformation success; // required + public @org.apache.thrift.annotation.Nullable TTransferRejectedException rejection; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TInvocationException ffff; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException sdf; // 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 { @@ -14983,10 +15558,10 @@ public class SatelliteServer { FFFF((short)3, "ffff"), SDF((short)4, "sdf"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -14994,6 +15569,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -15017,21 +15593,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -15040,26 +15617,26 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); tmpMap.put(_Fields.REJECTION, new org.apache.thrift.meta_data.FieldMetaData("rejection", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTransferRejectedException.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); tmpMap.put(_Fields.SDF, new org.apache.thrift.meta_data.FieldMetaData("sdf", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestDownload_result.class, metaDataMap); } @@ -15115,11 +15692,12 @@ public class SatelliteServer { this.sdf = null; } + @org.apache.thrift.annotation.Nullable public TransferInformation getSuccess() { return this.success; } - public requestDownload_result setSuccess(TransferInformation success) { + public requestDownload_result setSuccess(@org.apache.thrift.annotation.Nullable TransferInformation success) { this.success = success; return this; } @@ -15139,11 +15717,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TTransferRejectedException getRejection() { return this.rejection; } - public requestDownload_result setRejection(TTransferRejectedException rejection) { + public requestDownload_result setRejection(@org.apache.thrift.annotation.Nullable TTransferRejectedException rejection) { this.rejection = rejection; return this; } @@ -15163,11 +15742,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public requestDownload_result setAuthError(TAuthorizationException authError) { + public requestDownload_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -15187,11 +15767,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getFfff() { return this.ffff; } - public requestDownload_result setFfff(TInvocationException ffff) { + public requestDownload_result setFfff(@org.apache.thrift.annotation.Nullable TInvocationException ffff) { this.ffff = ffff; return this; } @@ -15211,11 +15792,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getSdf() { return this.sdf; } - public requestDownload_result setSdf(TNotFoundException sdf) { + public requestDownload_result setSdf(@org.apache.thrift.annotation.Nullable TNotFoundException sdf) { this.sdf = sdf; return this; } @@ -15235,7 +15817,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -15280,7 +15862,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -15298,13 +15881,13 @@ public class SatelliteServer { return getSdf(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -15319,13 +15902,11 @@ public class SatelliteServer { case SDF: return isSetSdf(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof requestDownload_result) return this.equals((requestDownload_result)that); return false; @@ -15334,6 +15915,8 @@ public class SatelliteServer { public boolean equals(requestDownload_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -15385,34 +15968,29 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_rejection = true && (isSetRejection()); - list.add(present_rejection); - if (present_rejection) - list.add(rejection); + hashCode = hashCode * 8191 + ((isSetRejection()) ? 131071 : 524287); + if (isSetRejection()) + hashCode = hashCode * 8191 + rejection.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_ffff = true && (isSetFfff()); - list.add(present_ffff); - if (present_ffff) - list.add(ffff); + hashCode = hashCode * 8191 + ((isSetFfff()) ? 131071 : 524287); + if (isSetFfff()) + hashCode = hashCode * 8191 + ffff.hashCode(); - boolean present_sdf = true && (isSetSdf()); - list.add(present_sdf); - if (present_sdf) - list.add(sdf); + hashCode = hashCode * 8191 + ((isSetSdf()) ? 131071 : 524287); + if (isSetSdf()) + hashCode = hashCode * 8191 + sdf.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -15423,7 +16001,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -15433,7 +16011,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRejection()).compareTo(other.isSetRejection()); + lastComparison = java.lang.Boolean.compare(isSetRejection(), other.isSetRejection()); if (lastComparison != 0) { return lastComparison; } @@ -15443,7 +16021,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -15453,7 +16031,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFfff()).compareTo(other.isSetFfff()); + lastComparison = java.lang.Boolean.compare(isSetFfff(), other.isSetFfff()); if (lastComparison != 0) { return lastComparison; } @@ -15463,7 +16041,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSdf()).compareTo(other.isSetSdf()); + lastComparison = java.lang.Boolean.compare(isSetSdf(), other.isSetSdf()); if (lastComparison != 0) { return lastComparison; } @@ -15476,21 +16054,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("requestDownload_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("requestDownload_result("); boolean first = true; sb.append("success:"); @@ -15552,7 +16131,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -15560,13 +16139,13 @@ public class SatelliteServer { } } - private static class requestDownload_resultStandardSchemeFactory implements SchemeFactory { + private static class requestDownload_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public requestDownload_resultStandardScheme getScheme() { return new requestDownload_resultStandardScheme(); } } - private static class requestDownload_resultStandardScheme extends StandardScheme { + private static class requestDownload_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, requestDownload_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -15669,18 +16248,18 @@ public class SatelliteServer { } - private static class requestDownload_resultTupleSchemeFactory implements SchemeFactory { + private static class requestDownload_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public requestDownload_resultTupleScheme getScheme() { return new requestDownload_resultTupleScheme(); } } - private static class requestDownload_resultTupleScheme extends TupleScheme { + private static class requestDownload_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, requestDownload_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -15716,8 +16295,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, requestDownload_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.success = new TransferInformation(); struct.success.read(iprot); @@ -15746,6 +16325,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class cancelDownload_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -15753,22 +16335,19 @@ public class SatelliteServer { private static final org.apache.thrift.protocol.TField DOWNLOAD_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("downloadToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new cancelDownload_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new cancelDownload_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new cancelDownload_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new cancelDownload_argsTupleSchemeFactory(); - public String downloadToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String downloadToken; // 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 { DOWNLOAD_TOKEN((short)1, "downloadToken"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -15776,6 +16355,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // DOWNLOAD_TOKEN @@ -15791,21 +16371,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -15814,18 +16395,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.DOWNLOAD_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("downloadToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancelDownload_args.class, metaDataMap); } @@ -15833,7 +16414,7 @@ public class SatelliteServer { } public cancelDownload_args( - String downloadToken) + java.lang.String downloadToken) { this(); this.downloadToken = downloadToken; @@ -15857,11 +16438,12 @@ public class SatelliteServer { this.downloadToken = null; } - public String getDownloadToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getDownloadToken() { return this.downloadToken; } - public cancelDownload_args setDownloadToken(String downloadToken) { + public cancelDownload_args setDownloadToken(@org.apache.thrift.annotation.Nullable java.lang.String downloadToken) { this.downloadToken = downloadToken; return this; } @@ -15881,45 +16463,44 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case DOWNLOAD_TOKEN: if (value == null) { unsetDownloadToken(); } else { - setDownloadToken((String)value); + setDownloadToken((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case DOWNLOAD_TOKEN: return getDownloadToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case DOWNLOAD_TOKEN: return isSetDownloadToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof cancelDownload_args) return this.equals((cancelDownload_args)that); return false; @@ -15928,6 +16509,8 @@ public class SatelliteServer { public boolean equals(cancelDownload_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_downloadToken = true && this.isSetDownloadToken(); boolean that_present_downloadToken = true && that.isSetDownloadToken(); @@ -15943,14 +16526,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_downloadToken = true && (isSetDownloadToken()); - list.add(present_downloadToken); - if (present_downloadToken) - list.add(downloadToken); + hashCode = hashCode * 8191 + ((isSetDownloadToken()) ? 131071 : 524287); + if (isSetDownloadToken()) + hashCode = hashCode * 8191 + downloadToken.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -15961,7 +16543,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDownloadToken()).compareTo(other.isSetDownloadToken()); + lastComparison = java.lang.Boolean.compare(isSetDownloadToken(), other.isSetDownloadToken()); if (lastComparison != 0) { return lastComparison; } @@ -15974,21 +16556,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("cancelDownload_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("cancelDownload_args("); boolean first = true; sb.append("downloadToken:"); @@ -16015,7 +16598,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -16023,13 +16606,13 @@ public class SatelliteServer { } } - private static class cancelDownload_argsStandardSchemeFactory implements SchemeFactory { + private static class cancelDownload_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public cancelDownload_argsStandardScheme getScheme() { return new cancelDownload_argsStandardScheme(); } } - private static class cancelDownload_argsStandardScheme extends StandardScheme { + private static class cancelDownload_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, cancelDownload_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -16075,18 +16658,18 @@ public class SatelliteServer { } - private static class cancelDownload_argsTupleSchemeFactory implements SchemeFactory { + private static class cancelDownload_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public cancelDownload_argsTupleScheme getScheme() { return new cancelDownload_argsTupleScheme(); } } - private static class cancelDownload_argsTupleScheme extends TupleScheme { + private static class cancelDownload_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, cancelDownload_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetDownloadToken()) { optionals.set(0); } @@ -16098,8 +16681,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, cancelDownload_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.downloadToken = iprot.readString(); struct.setDownloadTokenIsSet(true); @@ -16107,6 +16690,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class cancelDownload_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -16114,22 +16700,19 @@ public class SatelliteServer { private static final org.apache.thrift.protocol.TField EX1_FIELD_DESC = new org.apache.thrift.protocol.TField("ex1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new cancelDownload_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new cancelDownload_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new cancelDownload_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new cancelDownload_resultTupleSchemeFactory(); - public TInvalidTokenException ex1; // required + public @org.apache.thrift.annotation.Nullable TInvalidTokenException ex1; // 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 { EX1((short)1, "ex1"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -16137,6 +16720,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX1 @@ -16152,21 +16736,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -16175,18 +16760,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX1, new org.apache.thrift.meta_data.FieldMetaData("ex1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidTokenException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancelDownload_result.class, metaDataMap); } @@ -16218,11 +16803,12 @@ public class SatelliteServer { this.ex1 = null; } + @org.apache.thrift.annotation.Nullable public TInvalidTokenException getEx1() { return this.ex1; } - public cancelDownload_result setEx1(TInvalidTokenException ex1) { + public cancelDownload_result setEx1(@org.apache.thrift.annotation.Nullable TInvalidTokenException ex1) { this.ex1 = ex1; return this; } @@ -16242,7 +16828,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case EX1: if (value == null) { @@ -16255,32 +16841,31 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case EX1: return getEx1(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case EX1: return isSetEx1(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof cancelDownload_result) return this.equals((cancelDownload_result)that); return false; @@ -16289,6 +16874,8 @@ public class SatelliteServer { public boolean equals(cancelDownload_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_ex1 = true && this.isSetEx1(); boolean that_present_ex1 = true && that.isSetEx1(); @@ -16304,14 +16891,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_ex1 = true && (isSetEx1()); - list.add(present_ex1); - if (present_ex1) - list.add(ex1); + hashCode = hashCode * 8191 + ((isSetEx1()) ? 131071 : 524287); + if (isSetEx1()) + hashCode = hashCode * 8191 + ex1.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -16322,7 +16908,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetEx1()).compareTo(other.isSetEx1()); + lastComparison = java.lang.Boolean.compare(isSetEx1(), other.isSetEx1()); if (lastComparison != 0) { return lastComparison; } @@ -16335,21 +16921,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("cancelDownload_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("cancelDownload_result("); boolean first = true; sb.append("ex1:"); @@ -16376,7 +16963,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -16384,13 +16971,13 @@ public class SatelliteServer { } } - private static class cancelDownload_resultStandardSchemeFactory implements SchemeFactory { + private static class cancelDownload_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public cancelDownload_resultStandardScheme getScheme() { return new cancelDownload_resultStandardScheme(); } } - private static class cancelDownload_resultStandardScheme extends StandardScheme { + private static class cancelDownload_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, cancelDownload_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -16437,18 +17024,18 @@ public class SatelliteServer { } - private static class cancelDownload_resultTupleSchemeFactory implements SchemeFactory { + private static class cancelDownload_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public cancelDownload_resultTupleScheme getScheme() { return new cancelDownload_resultTupleScheme(); } } - private static class cancelDownload_resultTupleScheme extends TupleScheme { + private static class cancelDownload_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, cancelDownload_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetEx1()) { optionals.set(0); } @@ -16460,8 +17047,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, cancelDownload_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.ex1 = new TInvalidTokenException(); struct.ex1.read(iprot); @@ -16470,6 +17057,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class isAuthenticated_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -16477,22 +17067,19 @@ public class SatelliteServer { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isAuthenticated_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isAuthenticated_argsTupleSchemeFactory(); - public String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // 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"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -16500,6 +17087,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -16515,21 +17103,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -16538,18 +17127,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAuthenticated_args.class, metaDataMap); } @@ -16557,7 +17146,7 @@ public class SatelliteServer { } public isAuthenticated_args( - String userToken) + java.lang.String userToken) { this(); this.userToken = userToken; @@ -16581,11 +17170,12 @@ public class SatelliteServer { this.userToken = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public isAuthenticated_args setUserToken(String userToken) { + public isAuthenticated_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -16605,45 +17195,44 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case USER_TOKEN: return isSetUserToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof isAuthenticated_args) return this.equals((isAuthenticated_args)that); return false; @@ -16652,6 +17241,8 @@ public class SatelliteServer { public boolean equals(isAuthenticated_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -16667,14 +17258,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -16685,7 +17275,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -16698,21 +17288,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("isAuthenticated_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("isAuthenticated_args("); boolean first = true; sb.append("userToken:"); @@ -16739,7 +17330,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -16747,13 +17338,13 @@ public class SatelliteServer { } } - private static class isAuthenticated_argsStandardSchemeFactory implements SchemeFactory { + private static class isAuthenticated_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isAuthenticated_argsStandardScheme getScheme() { return new isAuthenticated_argsStandardScheme(); } } - private static class isAuthenticated_argsStandardScheme extends StandardScheme { + private static class isAuthenticated_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, isAuthenticated_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -16799,18 +17390,18 @@ public class SatelliteServer { } - private static class isAuthenticated_argsTupleSchemeFactory implements SchemeFactory { + private static class isAuthenticated_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isAuthenticated_argsTupleScheme getScheme() { return new isAuthenticated_argsTupleScheme(); } } - private static class isAuthenticated_argsTupleScheme extends TupleScheme { + private static class isAuthenticated_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -16822,8 +17413,8 @@ public class SatelliteServer { @Override 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(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -16831,6 +17422,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class isAuthenticated_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -16839,24 +17433,21 @@ public class SatelliteServer { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isAuthenticated_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isAuthenticated_resultTupleSchemeFactory(); - public TAuthorizationException authError; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable 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"), SERVER_ERROR((short)2, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -16864,6 +17455,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // AUTH_ERROR @@ -16881,21 +17473,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -16904,20 +17497,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAuthenticated_result.class, metaDataMap); } @@ -16955,11 +17548,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public isAuthenticated_result setAuthError(TAuthorizationException authError) { + public isAuthenticated_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -16979,11 +17573,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public isAuthenticated_result setServerError(TInvocationException serverError) { + public isAuthenticated_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -17003,7 +17598,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case AUTH_ERROR: if (value == null) { @@ -17024,7 +17619,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AUTH_ERROR: return getAuthError(); @@ -17033,13 +17629,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -17048,13 +17644,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof isAuthenticated_result) return this.equals((isAuthenticated_result)that); return false; @@ -17063,6 +17657,8 @@ public class SatelliteServer { public boolean equals(isAuthenticated_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); @@ -17087,19 +17683,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -17110,7 +17704,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -17120,7 +17714,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -17133,21 +17727,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("isAuthenticated_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("isAuthenticated_result("); boolean first = true; sb.append("authError:"); @@ -17182,7 +17777,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -17190,13 +17785,13 @@ public class SatelliteServer { } } - private static class isAuthenticated_resultStandardSchemeFactory implements SchemeFactory { + private static class isAuthenticated_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isAuthenticated_resultStandardScheme getScheme() { return new isAuthenticated_resultStandardScheme(); } } - private static class isAuthenticated_resultStandardScheme extends StandardScheme { + private static class isAuthenticated_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, isAuthenticated_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -17257,18 +17852,18 @@ public class SatelliteServer { } - private static class isAuthenticated_resultTupleSchemeFactory implements SchemeFactory { + private static class isAuthenticated_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public isAuthenticated_resultTupleScheme getScheme() { return new isAuthenticated_resultTupleScheme(); } } - private static class isAuthenticated_resultTupleScheme extends TupleScheme { + private static class isAuthenticated_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuthError()) { optionals.set(0); } @@ -17286,8 +17881,8 @@ public class SatelliteServer { @Override 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(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -17301,6 +17896,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class whoami_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -17308,22 +17906,19 @@ public class SatelliteServer { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new whoami_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new whoami_argsTupleSchemeFactory(); - public String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // 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"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -17331,6 +17926,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -17346,21 +17942,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -17369,18 +17966,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(whoami_args.class, metaDataMap); } @@ -17388,7 +17985,7 @@ public class SatelliteServer { } public whoami_args( - String userToken) + java.lang.String userToken) { this(); this.userToken = userToken; @@ -17412,11 +18009,12 @@ public class SatelliteServer { this.userToken = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public whoami_args setUserToken(String userToken) { + public whoami_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -17436,45 +18034,44 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case USER_TOKEN: return isSetUserToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof whoami_args) return this.equals((whoami_args)that); return false; @@ -17483,6 +18080,8 @@ public class SatelliteServer { public boolean equals(whoami_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -17498,14 +18097,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -17516,7 +18114,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -17529,21 +18127,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("whoami_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("whoami_args("); boolean first = true; sb.append("userToken:"); @@ -17570,7 +18169,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -17578,13 +18177,13 @@ public class SatelliteServer { } } - private static class whoami_argsStandardSchemeFactory implements SchemeFactory { + private static class whoami_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public whoami_argsStandardScheme getScheme() { return new whoami_argsStandardScheme(); } } - private static class whoami_argsStandardScheme extends StandardScheme { + private static class whoami_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, whoami_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -17630,18 +18229,18 @@ public class SatelliteServer { } - private static class whoami_argsTupleSchemeFactory implements SchemeFactory { + private static class whoami_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public whoami_argsTupleScheme getScheme() { return new whoami_argsTupleScheme(); } } - private static class whoami_argsTupleScheme extends TupleScheme { + private static class whoami_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -17653,8 +18252,8 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -17662,6 +18261,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class whoami_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -17671,15 +18273,12 @@ public class SatelliteServer { 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 whoami_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new whoami_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new whoami_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new whoami_resultTupleSchemeFactory(); - public WhoamiInfo success; // required - public TAuthorizationException authError; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable WhoamiInfo success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -17687,10 +18286,10 @@ public class SatelliteServer { AUTH_ERROR((short)1, "authError"), SERVER_ERROR((short)2, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -17698,6 +18297,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -17717,21 +18317,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -17740,22 +18341,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(whoami_result.class, metaDataMap); } @@ -17799,11 +18400,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public WhoamiInfo getSuccess() { return this.success; } - public whoami_result setSuccess(WhoamiInfo success) { + public whoami_result setSuccess(@org.apache.thrift.annotation.Nullable WhoamiInfo success) { this.success = success; return this; } @@ -17823,11 +18425,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public whoami_result setAuthError(TAuthorizationException authError) { + public whoami_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -17847,11 +18450,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public whoami_result setServerError(TInvocationException serverError) { + public whoami_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -17871,7 +18475,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -17900,7 +18504,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -17912,13 +18517,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -17929,13 +18534,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof whoami_result) return this.equals((whoami_result)that); return false; @@ -17944,6 +18547,8 @@ public class SatelliteServer { public boolean equals(whoami_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -17977,24 +18582,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -18005,7 +18607,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -18015,7 +18617,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -18025,7 +18627,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -18038,21 +18640,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("whoami_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("whoami_result("); boolean first = true; sb.append("success:"); @@ -18098,7 +18701,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -18106,13 +18709,13 @@ public class SatelliteServer { } } - private static class whoami_resultStandardSchemeFactory implements SchemeFactory { + private static class whoami_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public whoami_resultStandardScheme getScheme() { return new whoami_resultStandardScheme(); } } - private static class whoami_resultStandardScheme extends StandardScheme { + private static class whoami_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, whoami_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -18187,18 +18790,18 @@ public class SatelliteServer { } - private static class whoami_resultTupleSchemeFactory implements SchemeFactory { + private static class whoami_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public whoami_resultTupleScheme getScheme() { return new whoami_resultTupleScheme(); } } - private static class whoami_resultTupleScheme extends TupleScheme { + private static class whoami_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -18222,8 +18825,8 @@ public class SatelliteServer { @Override 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(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new WhoamiInfo(); struct.success.read(iprot); @@ -18242,6 +18845,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class invalidateSession_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -18249,22 +18855,19 @@ public class SatelliteServer { 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 invalidateSession_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new invalidateSession_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new invalidateSession_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new invalidateSession_argsTupleSchemeFactory(); - public String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // 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"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -18272,6 +18875,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -18287,21 +18891,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -18310,18 +18915,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_args.class, metaDataMap); } @@ -18329,7 +18934,7 @@ public class SatelliteServer { } public invalidateSession_args( - String userToken) + java.lang.String userToken) { this(); this.userToken = userToken; @@ -18353,11 +18958,12 @@ public class SatelliteServer { this.userToken = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public invalidateSession_args setUserToken(String userToken) { + public invalidateSession_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -18377,45 +18983,44 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case USER_TOKEN: return isSetUserToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof invalidateSession_args) return this.equals((invalidateSession_args)that); return false; @@ -18424,6 +19029,8 @@ public class SatelliteServer { public boolean equals(invalidateSession_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -18439,14 +19046,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -18457,7 +19063,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -18470,21 +19076,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("invalidateSession_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("invalidateSession_args("); boolean first = true; sb.append("userToken:"); @@ -18511,7 +19118,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -18519,13 +19126,13 @@ public class SatelliteServer { } } - private static class invalidateSession_argsStandardSchemeFactory implements SchemeFactory { + private static class invalidateSession_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public invalidateSession_argsStandardScheme getScheme() { return new invalidateSession_argsStandardScheme(); } } - private static class invalidateSession_argsStandardScheme extends StandardScheme { + private static class invalidateSession_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -18571,18 +19178,18 @@ public class SatelliteServer { } - private static class invalidateSession_argsTupleSchemeFactory implements SchemeFactory { + private static class invalidateSession_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public invalidateSession_argsTupleScheme getScheme() { return new invalidateSession_argsTupleScheme(); } } - private static class invalidateSession_argsTupleScheme extends TupleScheme { + private static class invalidateSession_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -18594,8 +19201,8 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -18603,6 +19210,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class invalidateSession_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -18610,22 +19220,19 @@ public class SatelliteServer { 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 invalidateSession_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new invalidateSession_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new invalidateSession_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new invalidateSession_resultTupleSchemeFactory(); - public TInvalidTokenException ex; // required + public @org.apache.thrift.annotation.Nullable 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 { EX((short)1, "ex"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -18633,6 +19240,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX @@ -18648,21 +19256,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -18671,18 +19280,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidTokenException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_result.class, metaDataMap); } @@ -18714,11 +19323,12 @@ public class SatelliteServer { this.ex = null; } + @org.apache.thrift.annotation.Nullable public TInvalidTokenException getEx() { return this.ex; } - public invalidateSession_result setEx(TInvalidTokenException ex) { + public invalidateSession_result setEx(@org.apache.thrift.annotation.Nullable TInvalidTokenException ex) { this.ex = ex; return this; } @@ -18738,7 +19348,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case EX: if (value == null) { @@ -18751,32 +19361,31 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof invalidateSession_result) return this.equals((invalidateSession_result)that); return false; @@ -18785,6 +19394,8 @@ public class SatelliteServer { public boolean equals(invalidateSession_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); @@ -18800,14 +19411,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_ex = true && (isSetEx()); - list.add(present_ex); - if (present_ex) - list.add(ex); + hashCode = hashCode * 8191 + ((isSetEx()) ? 131071 : 524287); + if (isSetEx()) + hashCode = hashCode * 8191 + ex.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -18818,7 +19428,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = java.lang.Boolean.compare(isSetEx(), other.isSetEx()); if (lastComparison != 0) { return lastComparison; } @@ -18831,21 +19441,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("invalidateSession_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("invalidateSession_result("); boolean first = true; sb.append("ex:"); @@ -18872,7 +19483,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -18880,13 +19491,13 @@ public class SatelliteServer { } } - private static class invalidateSession_resultStandardSchemeFactory implements SchemeFactory { + private static class invalidateSession_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public invalidateSession_resultStandardScheme getScheme() { return new invalidateSession_resultStandardScheme(); } } - private static class invalidateSession_resultStandardScheme extends StandardScheme { + private static class invalidateSession_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -18933,18 +19544,18 @@ public class SatelliteServer { } - private static class invalidateSession_resultTupleSchemeFactory implements SchemeFactory { + private static class invalidateSession_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public invalidateSession_resultTupleScheme getScheme() { return new invalidateSession_resultTupleScheme(); } } - private static class invalidateSession_resultTupleScheme extends TupleScheme { + private static class invalidateSession_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetEx()) { optionals.set(0); } @@ -18956,8 +19567,8 @@ public class SatelliteServer { @Override 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(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.ex = new TInvalidTokenException(); struct.ex.read(iprot); @@ -18966,6 +19577,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getUserList_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -18974,13 +19588,10 @@ public class SatelliteServer { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getUserList_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getUserList_argsTupleSchemeFactory(); - public String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required public int page; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -18988,10 +19599,10 @@ public class SatelliteServer { USER_TOKEN((short)1, "userToken"), PAGE((short)2, "page"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -18999,6 +19610,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -19016,21 +19628,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -19039,7 +19652,7 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -19047,14 +19660,14 @@ 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; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserList_args.class, metaDataMap); } @@ -19062,7 +19675,7 @@ public class SatelliteServer { } public getUserList_args( - String userToken, + java.lang.String userToken, int page) { this(); @@ -19093,11 +19706,12 @@ public class SatelliteServer { this.page = 0; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public getUserList_args setUserToken(String userToken) { + public getUserList_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -19128,25 +19742,25 @@ public class SatelliteServer { } public void unsetPage() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID); } public void setPageIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -19154,14 +19768,15 @@ public class SatelliteServer { if (value == null) { unsetPage(); } else { - setPage((Integer)value); + setPage((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -19170,13 +19785,13 @@ public class SatelliteServer { return getPage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -19185,13 +19800,11 @@ public class SatelliteServer { case PAGE: return isSetPage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getUserList_args) return this.equals((getUserList_args)that); return false; @@ -19200,6 +19813,8 @@ public class SatelliteServer { public boolean equals(getUserList_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -19224,19 +19839,15 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_page = true; - list.add(present_page); - if (present_page) - list.add(page); + hashCode = hashCode * 8191 + page; - return list.hashCode(); + return hashCode; } @Override @@ -19247,7 +19858,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -19257,7 +19868,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage()); + lastComparison = java.lang.Boolean.compare(isSetPage(), other.isSetPage()); if (lastComparison != 0) { return lastComparison; } @@ -19270,21 +19881,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getUserList_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getUserList_args("); boolean first = true; sb.append("userToken:"); @@ -19315,7 +19927,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -19325,13 +19937,13 @@ public class SatelliteServer { } } - private static class getUserList_argsStandardSchemeFactory implements SchemeFactory { + private static class getUserList_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUserList_argsStandardScheme getScheme() { return new getUserList_argsStandardScheme(); } } - private static class getUserList_argsStandardScheme extends StandardScheme { + private static class getUserList_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getUserList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -19388,18 +20000,18 @@ public class SatelliteServer { } - private static class getUserList_argsTupleSchemeFactory implements SchemeFactory { + private static class getUserList_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUserList_argsTupleScheme getScheme() { return new getUserList_argsTupleScheme(); } } - private static class getUserList_argsTupleScheme extends TupleScheme { + private static class getUserList_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -19417,8 +20029,8 @@ public class SatelliteServer { @Override 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(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -19430,6 +20042,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getUserList_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -19439,15 +20054,12 @@ public class SatelliteServer { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getUserList_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getUserList_resultTupleSchemeFactory(); - public List success; // required - public TAuthorizationException failure; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -19455,10 +20067,10 @@ public class SatelliteServer { FAILURE((short)1, "failure"), SERVER_ERROR((short)2, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -19466,6 +20078,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -19485,21 +20098,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -19508,23 +20122,23 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserList_result.class, metaDataMap); } @@ -19532,7 +20146,7 @@ public class SatelliteServer { } public getUserList_result( - List success, + java.util.List success, TAuthorizationException failure, TInvocationException serverError) { @@ -19547,7 +20161,7 @@ public class SatelliteServer { */ public getUserList_result(getUserList_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (UserInfo other_element : other.success) { __this__success.add(new UserInfo(other_element)); } @@ -19576,22 +20190,24 @@ public class SatelliteServer { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getUserList_result setSuccess(List success) { + public getUserList_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -19611,11 +20227,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getFailure() { return this.failure; } - public getUserList_result setFailure(TAuthorizationException failure) { + public getUserList_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) { this.failure = failure; return this; } @@ -19635,11 +20252,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getUserList_result setServerError(TInvocationException serverError) { + public getUserList_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -19659,13 +20277,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -19688,7 +20306,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -19700,13 +20319,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -19717,13 +20336,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getUserList_result) return this.equals((getUserList_result)that); return false; @@ -19732,6 +20349,8 @@ public class SatelliteServer { public boolean equals(getUserList_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -19765,24 +20384,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_failure = true && (isSetFailure()); - list.add(present_failure); - if (present_failure) - list.add(failure); + hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287); + if (isSetFailure()) + hashCode = hashCode * 8191 + failure.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -19793,7 +20409,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -19803,7 +20419,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } @@ -19813,7 +20429,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -19826,21 +20442,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getUserList_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getUserList_result("); boolean first = true; sb.append("success:"); @@ -19883,7 +20500,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -19891,13 +20508,13 @@ public class SatelliteServer { } } - private static class getUserList_resultStandardSchemeFactory implements SchemeFactory { + private static class getUserList_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUserList_resultStandardScheme getScheme() { return new getUserList_resultStandardScheme(); } } - private static class getUserList_resultStandardScheme extends StandardScheme { + private static class getUserList_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getUserList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -19912,14 +20529,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list234 = iprot.readListBegin(); - struct.success = new ArrayList(_list234.size); - UserInfo _elem235; - for (int _i236 = 0; _i236 < _list234.size; ++_i236) + org.apache.thrift.protocol.TList _list314 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list314.size); + @org.apache.thrift.annotation.Nullable UserInfo _elem315; + for (int _i316 = 0; _i316 < _list314.size; ++_i316) { - _elem235 = new UserInfo(); - _elem235.read(iprot); - struct.success.add(_elem235); + _elem315 = new UserInfo(); + _elem315.read(iprot); + struct.success.add(_elem315); } iprot.readListEnd(); } @@ -19965,9 +20582,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 (UserInfo _iter237 : struct.success) + for (UserInfo _iter317 : struct.success) { - _iter237.write(oprot); + _iter317.write(oprot); } oprot.writeListEnd(); } @@ -19989,18 +20606,18 @@ public class SatelliteServer { } - private static class getUserList_resultTupleSchemeFactory implements SchemeFactory { + private static class getUserList_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUserList_resultTupleScheme getScheme() { return new getUserList_resultTupleScheme(); } } - private static class getUserList_resultTupleScheme extends TupleScheme { + private static class getUserList_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -20014,9 +20631,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (UserInfo _iter238 : struct.success) + for (UserInfo _iter318 : struct.success) { - _iter238.write(oprot); + _iter318.write(oprot); } } } @@ -20030,18 +20647,18 @@ public class SatelliteServer { @Override 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(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list239.size); - UserInfo _elem240; - for (int _i241 = 0; _i241 < _list239.size; ++_i241) + org.apache.thrift.protocol.TList _list319 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list319.size); + @org.apache.thrift.annotation.Nullable UserInfo _elem320; + for (int _i321 = 0; _i321 < _list319.size; ++_i321) { - _elem240 = new UserInfo(); - _elem240.read(iprot); - struct.success.add(_elem240); + _elem320 = new UserInfo(); + _elem320.read(iprot); + struct.success.add(_elem320); } } struct.setSuccessIsSet(true); @@ -20059,6 +20676,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getUserConfig_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -20066,22 +20686,19 @@ public class SatelliteServer { 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 getUserConfig_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserConfig_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getUserConfig_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getUserConfig_argsTupleSchemeFactory(); - public String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // 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"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -20089,6 +20706,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -20104,21 +20722,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -20127,18 +20746,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserConfig_args.class, metaDataMap); } @@ -20146,7 +20765,7 @@ public class SatelliteServer { } public getUserConfig_args( - String userToken) + java.lang.String userToken) { this(); this.userToken = userToken; @@ -20170,11 +20789,12 @@ public class SatelliteServer { this.userToken = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public getUserConfig_args setUserToken(String userToken) { + public getUserConfig_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -20194,45 +20814,44 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case USER_TOKEN: return isSetUserToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getUserConfig_args) return this.equals((getUserConfig_args)that); return false; @@ -20241,6 +20860,8 @@ public class SatelliteServer { public boolean equals(getUserConfig_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -20256,14 +20877,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -20274,7 +20894,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -20287,21 +20907,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getUserConfig_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getUserConfig_args("); boolean first = true; sb.append("userToken:"); @@ -20328,7 +20949,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -20336,13 +20957,13 @@ public class SatelliteServer { } } - private static class getUserConfig_argsStandardSchemeFactory implements SchemeFactory { + private static class getUserConfig_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUserConfig_argsStandardScheme getScheme() { return new getUserConfig_argsStandardScheme(); } } - private static class getUserConfig_argsStandardScheme extends StandardScheme { + private static class getUserConfig_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getUserConfig_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -20388,18 +21009,18 @@ public class SatelliteServer { } - private static class getUserConfig_argsTupleSchemeFactory implements SchemeFactory { + private static class getUserConfig_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUserConfig_argsTupleScheme getScheme() { return new getUserConfig_argsTupleScheme(); } } - private static class getUserConfig_argsTupleScheme extends TupleScheme { + private static class getUserConfig_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -20411,8 +21032,8 @@ public class SatelliteServer { @Override 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(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -20420,6 +21041,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getUserConfig_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -20429,15 +21053,12 @@ public class SatelliteServer { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getUserConfig_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getUserConfig_resultTupleSchemeFactory(); - public SatelliteUserConfig success; // required - public TAuthorizationException failure; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable SatelliteUserConfig success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -20445,10 +21066,10 @@ public class SatelliteServer { FAILURE((short)1, "failure"), SERVER_ERROR((short)2, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -20456,6 +21077,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -20475,21 +21097,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -20498,22 +21121,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserConfig_result.class, metaDataMap); } @@ -20557,11 +21180,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public SatelliteUserConfig getSuccess() { return this.success; } - public getUserConfig_result setSuccess(SatelliteUserConfig success) { + public getUserConfig_result setSuccess(@org.apache.thrift.annotation.Nullable SatelliteUserConfig success) { this.success = success; return this; } @@ -20581,11 +21205,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getFailure() { return this.failure; } - public getUserConfig_result setFailure(TAuthorizationException failure) { + public getUserConfig_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) { this.failure = failure; return this; } @@ -20605,11 +21230,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getUserConfig_result setServerError(TInvocationException serverError) { + public getUserConfig_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -20629,7 +21255,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -20658,7 +21284,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -20670,13 +21297,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -20687,13 +21314,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getUserConfig_result) return this.equals((getUserConfig_result)that); return false; @@ -20702,6 +21327,8 @@ public class SatelliteServer { public boolean equals(getUserConfig_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -20735,24 +21362,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_failure = true && (isSetFailure()); - list.add(present_failure); - if (present_failure) - list.add(failure); + hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287); + if (isSetFailure()) + hashCode = hashCode * 8191 + failure.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -20763,7 +21387,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -20773,7 +21397,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } @@ -20783,7 +21407,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -20796,21 +21420,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getUserConfig_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getUserConfig_result("); boolean first = true; sb.append("success:"); @@ -20856,7 +21481,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -20864,13 +21489,13 @@ public class SatelliteServer { } } - private static class getUserConfig_resultStandardSchemeFactory implements SchemeFactory { + private static class getUserConfig_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUserConfig_resultStandardScheme getScheme() { return new getUserConfig_resultStandardScheme(); } } - private static class getUserConfig_resultStandardScheme extends StandardScheme { + private static class getUserConfig_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getUserConfig_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -20945,18 +21570,18 @@ public class SatelliteServer { } - private static class getUserConfig_resultTupleSchemeFactory implements SchemeFactory { + private static class getUserConfig_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getUserConfig_resultTupleScheme getScheme() { return new getUserConfig_resultTupleScheme(); } } - private static class getUserConfig_resultTupleScheme extends TupleScheme { + private static class getUserConfig_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -20980,8 +21605,8 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new SatelliteUserConfig(); struct.success.read(iprot); @@ -21000,6 +21625,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class setUserConfig_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -21008,24 +21636,21 @@ public class SatelliteServer { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setUserConfig_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setUserConfig_argsTupleSchemeFactory(); - public String userToken; // required - public SatelliteUserConfig config; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable 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(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -21033,6 +21658,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -21050,21 +21676,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -21073,20 +21700,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserConfig_args.class, metaDataMap); } @@ -21094,7 +21721,7 @@ public class SatelliteServer { } public setUserConfig_args( - String userToken, + java.lang.String userToken, SatelliteUserConfig config) { this(); @@ -21124,11 +21751,12 @@ public class SatelliteServer { this.config = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public setUserConfig_args setUserToken(String userToken) { + public setUserConfig_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -21148,11 +21776,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public SatelliteUserConfig getConfig() { return this.config; } - public setUserConfig_args setConfig(SatelliteUserConfig config) { + public setUserConfig_args setConfig(@org.apache.thrift.annotation.Nullable SatelliteUserConfig config) { this.config = config; return this; } @@ -21172,13 +21801,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -21193,7 +21822,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -21202,13 +21832,13 @@ public class SatelliteServer { return getConfig(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -21217,13 +21847,11 @@ public class SatelliteServer { case CONFIG: return isSetConfig(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof setUserConfig_args) return this.equals((setUserConfig_args)that); return false; @@ -21232,6 +21860,8 @@ public class SatelliteServer { public boolean equals(setUserConfig_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -21256,19 +21886,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_config = true && (isSetConfig()); - list.add(present_config); - if (present_config) - list.add(config); + hashCode = hashCode * 8191 + ((isSetConfig()) ? 131071 : 524287); + if (isSetConfig()) + hashCode = hashCode * 8191 + config.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -21279,7 +21907,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -21289,7 +21917,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConfig()).compareTo(other.isSetConfig()); + lastComparison = java.lang.Boolean.compare(isSetConfig(), other.isSetConfig()); if (lastComparison != 0) { return lastComparison; } @@ -21302,21 +21930,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("setUserConfig_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("setUserConfig_args("); boolean first = true; sb.append("userToken:"); @@ -21354,7 +21983,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -21362,13 +21991,13 @@ public class SatelliteServer { } } - private static class setUserConfig_argsStandardSchemeFactory implements SchemeFactory { + private static class setUserConfig_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setUserConfig_argsStandardScheme getScheme() { return new setUserConfig_argsStandardScheme(); } } - private static class setUserConfig_argsStandardScheme extends StandardScheme { + private static class setUserConfig_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setUserConfig_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -21428,18 +22057,18 @@ public class SatelliteServer { } - private static class setUserConfig_argsTupleSchemeFactory implements SchemeFactory { + private static class setUserConfig_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setUserConfig_argsTupleScheme getScheme() { return new setUserConfig_argsTupleScheme(); } } - private static class setUserConfig_argsTupleScheme extends TupleScheme { + private static class setUserConfig_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -21457,8 +22086,8 @@ public class SatelliteServer { @Override 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(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -21471,6 +22100,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class setUserConfig_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -21479,24 +22111,21 @@ public class SatelliteServer { 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 setUserConfig_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setUserConfig_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setUserConfig_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setUserConfig_resultTupleSchemeFactory(); - public TAuthorizationException failure; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException failure; // required + public @org.apache.thrift.annotation.Nullable 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 { FAILURE((short)1, "failure"), SERVER_ERROR((short)2, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -21504,6 +22133,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // FAILURE @@ -21521,21 +22151,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -21544,20 +22175,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserConfig_result.class, metaDataMap); } @@ -21595,11 +22226,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getFailure() { return this.failure; } - public setUserConfig_result setFailure(TAuthorizationException failure) { + public setUserConfig_result setFailure(@org.apache.thrift.annotation.Nullable TAuthorizationException failure) { this.failure = failure; return this; } @@ -21619,11 +22251,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public setUserConfig_result setServerError(TInvocationException serverError) { + public setUserConfig_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -21643,7 +22276,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case FAILURE: if (value == null) { @@ -21664,7 +22297,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case FAILURE: return getFailure(); @@ -21673,13 +22307,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -21688,13 +22322,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof setUserConfig_result) return this.equals((setUserConfig_result)that); return false; @@ -21703,6 +22335,8 @@ public class SatelliteServer { public boolean equals(setUserConfig_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_failure = true && this.isSetFailure(); boolean that_present_failure = true && that.isSetFailure(); @@ -21727,19 +22361,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_failure = true && (isSetFailure()); - list.add(present_failure); - if (present_failure) - list.add(failure); + hashCode = hashCode * 8191 + ((isSetFailure()) ? 131071 : 524287); + if (isSetFailure()) + hashCode = hashCode * 8191 + failure.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -21750,7 +22382,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + lastComparison = java.lang.Boolean.compare(isSetFailure(), other.isSetFailure()); if (lastComparison != 0) { return lastComparison; } @@ -21760,7 +22392,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -21773,21 +22405,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("setUserConfig_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("setUserConfig_result("); boolean first = true; sb.append("failure:"); @@ -21822,7 +22455,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -21830,13 +22463,13 @@ public class SatelliteServer { } } - private static class setUserConfig_resultStandardSchemeFactory implements SchemeFactory { + private static class setUserConfig_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setUserConfig_resultStandardScheme getScheme() { return new setUserConfig_resultStandardScheme(); } } - private static class setUserConfig_resultStandardScheme extends StandardScheme { + private static class setUserConfig_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setUserConfig_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -21897,18 +22530,18 @@ public class SatelliteServer { } - private static class setUserConfig_resultTupleSchemeFactory implements SchemeFactory { + private static class setUserConfig_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setUserConfig_resultTupleScheme getScheme() { return new setUserConfig_resultTupleScheme(); } } - private static class setUserConfig_resultTupleScheme extends TupleScheme { + private static class setUserConfig_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetFailure()) { optionals.set(0); } @@ -21926,8 +22559,8 @@ public class SatelliteServer { @Override 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(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.failure = new TAuthorizationException(); struct.failure.read(iprot); @@ -21941,27 +22574,27 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getOperatingSystems_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOperatingSystems_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getOperatingSystems_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getOperatingSystems_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -21969,6 +22602,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: @@ -21982,21 +22616,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -22005,14 +22640,14 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_args.class, metaDataMap); } @@ -22033,32 +22668,31 @@ public class SatelliteServer { public void clear() { } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getOperatingSystems_args) return this.equals((getOperatingSystems_args)that); return false; @@ -22067,15 +22701,17 @@ public class SatelliteServer { public boolean equals(getOperatingSystems_args that) { if (that == null) return false; + if (this == that) + return true; return true; } @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - return list.hashCode(); + return hashCode; } @Override @@ -22089,21 +22725,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getOperatingSystems_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getOperatingSystems_args("); boolean first = true; sb.append(")"); @@ -22123,7 +22760,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -22131,13 +22768,13 @@ public class SatelliteServer { } } - private static class getOperatingSystems_argsStandardSchemeFactory implements SchemeFactory { + private static class getOperatingSystems_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getOperatingSystems_argsStandardScheme getScheme() { return new getOperatingSystems_argsStandardScheme(); } } - private static class getOperatingSystems_argsStandardScheme extends StandardScheme { + private static class getOperatingSystems_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -22170,25 +22807,28 @@ public class SatelliteServer { } - private static class getOperatingSystems_argsTupleSchemeFactory implements SchemeFactory { + private static class getOperatingSystems_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getOperatingSystems_argsTupleScheme getScheme() { return new getOperatingSystems_argsTupleScheme(); } } - private static class getOperatingSystems_argsTupleScheme extends TupleScheme { + private static class getOperatingSystems_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getOperatingSystems_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -22196,22 +22836,19 @@ public class SatelliteServer { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getOperatingSystems_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getOperatingSystems_resultTupleSchemeFactory(); - public List success; // required + public @org.apache.thrift.annotation.Nullable java.util.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 { SUCCESS((short)0, "success"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -22219,6 +22856,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -22234,21 +22872,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -22257,19 +22896,19 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_result.class, metaDataMap); } @@ -22277,7 +22916,7 @@ public class SatelliteServer { } public getOperatingSystems_result( - List success) + java.util.List success) { this(); this.success = success; @@ -22288,7 +22927,7 @@ public class SatelliteServer { */ public getOperatingSystems_result(getOperatingSystems_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (OperatingSystem other_element : other.success) { __this__success.add(new OperatingSystem(other_element)); } @@ -22309,22 +22948,24 @@ public class SatelliteServer { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(OperatingSystem elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getOperatingSystems_result setSuccess(List success) { + public getOperatingSystems_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -22344,45 +22985,44 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getOperatingSystems_result) return this.equals((getOperatingSystems_result)that); return false; @@ -22391,6 +23031,8 @@ public class SatelliteServer { public boolean equals(getOperatingSystems_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -22406,14 +23048,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -22424,7 +23065,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -22437,21 +23078,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getOperatingSystems_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getOperatingSystems_result("); boolean first = true; sb.append("success:"); @@ -22478,7 +23120,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -22486,13 +23128,13 @@ public class SatelliteServer { } } - private static class getOperatingSystems_resultStandardSchemeFactory implements SchemeFactory { + private static class getOperatingSystems_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getOperatingSystems_resultStandardScheme getScheme() { return new getOperatingSystems_resultStandardScheme(); } } - private static class getOperatingSystems_resultStandardScheme extends StandardScheme { + private static class getOperatingSystems_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -22507,14 +23149,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list242 = iprot.readListBegin(); - struct.success = new ArrayList(_list242.size); - OperatingSystem _elem243; - for (int _i244 = 0; _i244 < _list242.size; ++_i244) + org.apache.thrift.protocol.TList _list322 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list322.size); + @org.apache.thrift.annotation.Nullable OperatingSystem _elem323; + for (int _i324 = 0; _i324 < _list322.size; ++_i324) { - _elem243 = new OperatingSystem(); - _elem243.read(iprot); - struct.success.add(_elem243); + _elem323 = new OperatingSystem(); + _elem323.read(iprot); + struct.success.add(_elem323); } iprot.readListEnd(); } @@ -22542,9 +23184,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 _iter245 : struct.success) + for (OperatingSystem _iter325 : struct.success) { - _iter245.write(oprot); + _iter325.write(oprot); } oprot.writeListEnd(); } @@ -22556,18 +23198,18 @@ public class SatelliteServer { } - private static class getOperatingSystems_resultTupleSchemeFactory implements SchemeFactory { + private static class getOperatingSystems_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getOperatingSystems_resultTupleScheme getScheme() { return new getOperatingSystems_resultTupleScheme(); } } - private static class getOperatingSystems_resultTupleScheme extends TupleScheme { + private static class getOperatingSystems_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -22575,9 +23217,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (OperatingSystem _iter246 : struct.success) + for (OperatingSystem _iter326 : struct.success) { - _iter246.write(oprot); + _iter326.write(oprot); } } } @@ -22585,18 +23227,18 @@ public class SatelliteServer { @Override 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(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list247.size); - OperatingSystem _elem248; - for (int _i249 = 0; _i249 < _list247.size; ++_i249) + org.apache.thrift.protocol.TList _list327 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list327.size); + @org.apache.thrift.annotation.Nullable OperatingSystem _elem328; + for (int _i329 = 0; _i329 < _list327.size; ++_i329) { - _elem248 = new OperatingSystem(); - _elem248.read(iprot); - struct.success.add(_elem248); + _elem328 = new OperatingSystem(); + _elem328.read(iprot); + struct.success.add(_elem328); } } struct.setSuccessIsSet(true); @@ -22604,27 +23246,27 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 getVirtualizers_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getVirtualizers_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getVirtualizers_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getVirtualizers_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -22632,6 +23274,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: @@ -22645,21 +23288,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -22668,14 +23312,14 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_args.class, metaDataMap); } @@ -22696,32 +23340,31 @@ public class SatelliteServer { public void clear() { } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getVirtualizers_args) return this.equals((getVirtualizers_args)that); return false; @@ -22730,15 +23373,17 @@ public class SatelliteServer { public boolean equals(getVirtualizers_args that) { if (that == null) return false; + if (this == that) + return true; return true; } @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - return list.hashCode(); + return hashCode; } @Override @@ -22752,21 +23397,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getVirtualizers_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getVirtualizers_args("); boolean first = true; sb.append(")"); @@ -22786,7 +23432,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -22794,13 +23440,13 @@ public class SatelliteServer { } } - private static class getVirtualizers_argsStandardSchemeFactory implements SchemeFactory { + private static class getVirtualizers_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVirtualizers_argsStandardScheme getScheme() { return new getVirtualizers_argsStandardScheme(); } } - private static class getVirtualizers_argsStandardScheme extends StandardScheme { + private static class getVirtualizers_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -22833,25 +23479,28 @@ public class SatelliteServer { } - private static class getVirtualizers_argsTupleSchemeFactory implements SchemeFactory { + private static class getVirtualizers_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVirtualizers_argsTupleScheme getScheme() { return new getVirtualizers_argsTupleScheme(); } } - private static class getVirtualizers_argsTupleScheme extends TupleScheme { + private static class getVirtualizers_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getVirtualizers_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -22859,22 +23508,19 @@ public class SatelliteServer { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getVirtualizers_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getVirtualizers_resultTupleSchemeFactory(); - public List success; // required + public @org.apache.thrift.annotation.Nullable java.util.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 { SUCCESS((short)0, "success"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -22882,6 +23528,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -22897,21 +23544,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -22920,19 +23568,19 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_result.class, metaDataMap); } @@ -22940,7 +23588,7 @@ public class SatelliteServer { } public getVirtualizers_result( - List success) + java.util.List success) { this(); this.success = success; @@ -22951,7 +23599,7 @@ public class SatelliteServer { */ public getVirtualizers_result(getVirtualizers_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (Virtualizer other_element : other.success) { __this__success.add(new Virtualizer(other_element)); } @@ -22972,22 +23620,24 @@ public class SatelliteServer { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(Virtualizer elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getVirtualizers_result setSuccess(List success) { + public getVirtualizers_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -23007,45 +23657,44 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getVirtualizers_result) return this.equals((getVirtualizers_result)that); return false; @@ -23054,6 +23703,8 @@ public class SatelliteServer { public boolean equals(getVirtualizers_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -23069,14 +23720,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -23087,7 +23737,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -23100,21 +23750,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getVirtualizers_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getVirtualizers_result("); boolean first = true; sb.append("success:"); @@ -23141,7 +23792,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -23149,13 +23800,13 @@ public class SatelliteServer { } } - private static class getVirtualizers_resultStandardSchemeFactory implements SchemeFactory { + private static class getVirtualizers_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVirtualizers_resultStandardScheme getScheme() { return new getVirtualizers_resultStandardScheme(); } } - private static class getVirtualizers_resultStandardScheme extends StandardScheme { + private static class getVirtualizers_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -23170,14 +23821,14 @@ public class SatelliteServer { 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); - Virtualizer _elem251; - for (int _i252 = 0; _i252 < _list250.size; ++_i252) + org.apache.thrift.protocol.TList _list330 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list330.size); + @org.apache.thrift.annotation.Nullable Virtualizer _elem331; + for (int _i332 = 0; _i332 < _list330.size; ++_i332) { - _elem251 = new Virtualizer(); - _elem251.read(iprot); - struct.success.add(_elem251); + _elem331 = new Virtualizer(); + _elem331.read(iprot); + struct.success.add(_elem331); } iprot.readListEnd(); } @@ -23205,9 +23856,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 _iter253 : struct.success) + for (Virtualizer _iter333 : struct.success) { - _iter253.write(oprot); + _iter333.write(oprot); } oprot.writeListEnd(); } @@ -23219,18 +23870,18 @@ public class SatelliteServer { } - private static class getVirtualizers_resultTupleSchemeFactory implements SchemeFactory { + private static class getVirtualizers_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getVirtualizers_resultTupleScheme getScheme() { return new getVirtualizers_resultTupleScheme(); } } - private static class getVirtualizers_resultTupleScheme extends TupleScheme { + private static class getVirtualizers_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -23238,9 +23889,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Virtualizer _iter254 : struct.success) + for (Virtualizer _iter334 : struct.success) { - _iter254.write(oprot); + _iter334.write(oprot); } } } @@ -23248,18 +23899,18 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); 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); - Virtualizer _elem256; - for (int _i257 = 0; _i257 < _list255.size; ++_i257) + org.apache.thrift.protocol.TList _list335 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list335.size); + @org.apache.thrift.annotation.Nullable Virtualizer _elem336; + for (int _i337 = 0; _i337 < _list335.size; ++_i337) { - _elem256 = new Virtualizer(); - _elem256.read(iprot); - struct.success.add(_elem256); + _elem336 = new Virtualizer(); + _elem336.read(iprot); + struct.success.add(_elem336); } } struct.setSuccessIsSet(true); @@ -23267,27 +23918,27 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 getAllOrganizations_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOrganizations_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getAllOrganizations_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getAllOrganizations_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -23295,6 +23946,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: @@ -23308,21 +23960,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -23331,14 +23984,14 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrganizations_args.class, metaDataMap); } @@ -23359,32 +24012,31 @@ public class SatelliteServer { public void clear() { } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getAllOrganizations_args) return this.equals((getAllOrganizations_args)that); return false; @@ -23393,15 +24045,17 @@ public class SatelliteServer { public boolean equals(getAllOrganizations_args that) { if (that == null) return false; + if (this == that) + return true; return true; } @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - return list.hashCode(); + return hashCode; } @Override @@ -23415,21 +24069,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getAllOrganizations_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getAllOrganizations_args("); boolean first = true; sb.append(")"); @@ -23449,7 +24104,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -23457,13 +24112,13 @@ public class SatelliteServer { } } - private static class getAllOrganizations_argsStandardSchemeFactory implements SchemeFactory { + private static class getAllOrganizations_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getAllOrganizations_argsStandardScheme getScheme() { return new getAllOrganizations_argsStandardScheme(); } } - private static class getAllOrganizations_argsStandardScheme extends StandardScheme { + private static class getAllOrganizations_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOrganizations_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -23496,25 +24151,28 @@ public class SatelliteServer { } - private static class getAllOrganizations_argsTupleSchemeFactory implements SchemeFactory { + private static class getAllOrganizations_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getAllOrganizations_argsTupleScheme getScheme() { return new getAllOrganizations_argsTupleScheme(); } } - private static class getAllOrganizations_argsTupleScheme extends TupleScheme { + private static class getAllOrganizations_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getAllOrganizations_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -23522,22 +24180,19 @@ public class SatelliteServer { 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 getAllOrganizations_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOrganizations_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getAllOrganizations_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getAllOrganizations_resultTupleSchemeFactory(); - public List success; // required + public @org.apache.thrift.annotation.Nullable java.util.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 { SUCCESS((short)0, "success"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -23545,6 +24200,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -23560,21 +24216,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -23583,19 +24240,19 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrganizations_result.class, metaDataMap); } @@ -23603,7 +24260,7 @@ public class SatelliteServer { } public getAllOrganizations_result( - List success) + java.util.List success) { this(); this.success = success; @@ -23614,7 +24271,7 @@ public class SatelliteServer { */ public getAllOrganizations_result(getAllOrganizations_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (Organization other_element : other.success) { __this__success.add(new Organization(other_element)); } @@ -23635,22 +24292,24 @@ public class SatelliteServer { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getAllOrganizations_result setSuccess(List success) { + public getAllOrganizations_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -23670,45 +24329,44 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getAllOrganizations_result) return this.equals((getAllOrganizations_result)that); return false; @@ -23717,6 +24375,8 @@ public class SatelliteServer { public boolean equals(getAllOrganizations_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -23732,14 +24392,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -23750,7 +24409,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -23763,21 +24422,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getAllOrganizations_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getAllOrganizations_result("); boolean first = true; sb.append("success:"); @@ -23804,7 +24464,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -23812,13 +24472,13 @@ public class SatelliteServer { } } - private static class getAllOrganizations_resultStandardSchemeFactory implements SchemeFactory { + private static class getAllOrganizations_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getAllOrganizations_resultStandardScheme getScheme() { return new getAllOrganizations_resultStandardScheme(); } } - private static class getAllOrganizations_resultStandardScheme extends StandardScheme { + private static class getAllOrganizations_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOrganizations_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -23833,14 +24493,14 @@ public class SatelliteServer { 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); - Organization _elem259; - for (int _i260 = 0; _i260 < _list258.size; ++_i260) + org.apache.thrift.protocol.TList _list338 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list338.size); + @org.apache.thrift.annotation.Nullable Organization _elem339; + for (int _i340 = 0; _i340 < _list338.size; ++_i340) { - _elem259 = new Organization(); - _elem259.read(iprot); - struct.success.add(_elem259); + _elem339 = new Organization(); + _elem339.read(iprot); + struct.success.add(_elem339); } iprot.readListEnd(); } @@ -23868,9 +24528,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 (Organization _iter261 : struct.success) + for (Organization _iter341 : struct.success) { - _iter261.write(oprot); + _iter341.write(oprot); } oprot.writeListEnd(); } @@ -23882,18 +24542,18 @@ public class SatelliteServer { } - private static class getAllOrganizations_resultTupleSchemeFactory implements SchemeFactory { + private static class getAllOrganizations_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getAllOrganizations_resultTupleScheme getScheme() { return new getAllOrganizations_resultTupleScheme(); } } - private static class getAllOrganizations_resultTupleScheme extends TupleScheme { + private static class getAllOrganizations_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -23901,9 +24561,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Organization _iter262 : struct.success) + for (Organization _iter342 : struct.success) { - _iter262.write(oprot); + _iter342.write(oprot); } } } @@ -23911,18 +24571,18 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); 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); - Organization _elem264; - for (int _i265 = 0; _i265 < _list263.size; ++_i265) + org.apache.thrift.protocol.TList _list343 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list343.size); + @org.apache.thrift.annotation.Nullable Organization _elem344; + for (int _i345 = 0; _i345 < _list343.size; ++_i345) { - _elem264 = new Organization(); - _elem264.read(iprot); - struct.success.add(_elem264); + _elem344 = new Organization(); + _elem344.read(iprot); + struct.success.add(_elem344); } } struct.setSuccessIsSet(true); @@ -23930,27 +24590,27 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getLocations_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("getLocations_args"); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getLocations_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLocations_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getLocations_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getLocations_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -23958,6 +24618,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: @@ -23971,21 +24632,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -23994,14 +24656,14 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocations_args.class, metaDataMap); } @@ -24022,32 +24684,31 @@ public class SatelliteServer { public void clear() { } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getLocations_args) return this.equals((getLocations_args)that); return false; @@ -24056,15 +24717,17 @@ public class SatelliteServer { public boolean equals(getLocations_args that) { if (that == null) return false; + if (this == that) + return true; return true; } @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - return list.hashCode(); + return hashCode; } @Override @@ -24078,21 +24741,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getLocations_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getLocations_args("); boolean first = true; sb.append(")"); @@ -24112,7 +24776,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -24120,13 +24784,13 @@ public class SatelliteServer { } } - private static class getLocations_argsStandardSchemeFactory implements SchemeFactory { + private static class getLocations_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLocations_argsStandardScheme getScheme() { return new getLocations_argsStandardScheme(); } } - private static class getLocations_argsStandardScheme extends StandardScheme { + private static class getLocations_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getLocations_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -24159,25 +24823,28 @@ public class SatelliteServer { } - private static class getLocations_argsTupleSchemeFactory implements SchemeFactory { + private static class getLocations_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLocations_argsTupleScheme getScheme() { return new getLocations_argsTupleScheme(); } } - private static class getLocations_argsTupleScheme extends TupleScheme { + private static class getLocations_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getLocations_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getLocations_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getLocations_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -24185,22 +24852,19 @@ public class SatelliteServer { 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 getLocations_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLocations_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getLocations_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getLocations_resultTupleSchemeFactory(); - public List success; // required + public @org.apache.thrift.annotation.Nullable java.util.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 { SUCCESS((short)0, "success"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -24208,6 +24872,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -24223,21 +24888,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -24246,19 +24912,19 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, Location.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocations_result.class, metaDataMap); } @@ -24266,7 +24932,7 @@ public class SatelliteServer { } public getLocations_result( - List success) + java.util.List success) { this(); this.success = success; @@ -24277,7 +24943,7 @@ public class SatelliteServer { */ public getLocations_result(getLocations_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (Location other_element : other.success) { __this__success.add(new Location(other_element)); } @@ -24298,22 +24964,24 @@ public class SatelliteServer { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(Location elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getLocations_result setSuccess(List success) { + public getLocations_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -24333,45 +25001,44 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getLocations_result) return this.equals((getLocations_result)that); return false; @@ -24380,6 +25047,8 @@ public class SatelliteServer { public boolean equals(getLocations_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -24395,14 +25064,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -24413,7 +25081,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -24426,21 +25094,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getLocations_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getLocations_result("); boolean first = true; sb.append("success:"); @@ -24467,7 +25136,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -24475,13 +25144,13 @@ public class SatelliteServer { } } - private static class getLocations_resultStandardSchemeFactory implements SchemeFactory { + private static class getLocations_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLocations_resultStandardScheme getScheme() { return new getLocations_resultStandardScheme(); } } - private static class getLocations_resultStandardScheme extends StandardScheme { + private static class getLocations_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getLocations_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -24496,14 +25165,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list266 = iprot.readListBegin(); - struct.success = new ArrayList(_list266.size); - Location _elem267; - for (int _i268 = 0; _i268 < _list266.size; ++_i268) + org.apache.thrift.protocol.TList _list346 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list346.size); + @org.apache.thrift.annotation.Nullable Location _elem347; + for (int _i348 = 0; _i348 < _list346.size; ++_i348) { - _elem267 = new Location(); - _elem267.read(iprot); - struct.success.add(_elem267); + _elem347 = new Location(); + _elem347.read(iprot); + struct.success.add(_elem347); } iprot.readListEnd(); } @@ -24531,9 +25200,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 (Location _iter269 : struct.success) + for (Location _iter349 : struct.success) { - _iter269.write(oprot); + _iter349.write(oprot); } oprot.writeListEnd(); } @@ -24545,18 +25214,18 @@ public class SatelliteServer { } - private static class getLocations_resultTupleSchemeFactory implements SchemeFactory { + private static class getLocations_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLocations_resultTupleScheme getScheme() { return new getLocations_resultTupleScheme(); } } - private static class getLocations_resultTupleScheme extends TupleScheme { + private static class getLocations_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getLocations_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -24564,9 +25233,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Location _iter270 : struct.success) + for (Location _iter350 : struct.success) { - _iter270.write(oprot); + _iter350.write(oprot); } } } @@ -24574,18 +25243,18 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getLocations_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - 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); - Location _elem272; - for (int _i273 = 0; _i273 < _list271.size; ++_i273) + org.apache.thrift.protocol.TList _list351 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list351.size); + @org.apache.thrift.annotation.Nullable Location _elem352; + for (int _i353 = 0; _i353 < _list351.size; ++_i353) { - _elem272 = new Location(); - _elem272.read(iprot); - struct.success.add(_elem272); + _elem352 = new Location(); + _elem352.read(iprot); + struct.success.add(_elem352); } } struct.setSuccessIsSet(true); @@ -24593,27 +25262,27 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 getStatus_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getStatus_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getStatus_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getStatus_argsTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -24621,6 +25290,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: @@ -24634,21 +25304,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -24657,14 +25328,14 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStatus_args.class, metaDataMap); } @@ -24685,32 +25356,31 @@ public class SatelliteServer { public void clear() { } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getStatus_args) return this.equals((getStatus_args)that); return false; @@ -24719,15 +25389,17 @@ public class SatelliteServer { public boolean equals(getStatus_args that) { if (that == null) return false; + if (this == that) + return true; return true; } @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - return list.hashCode(); + return hashCode; } @Override @@ -24741,21 +25413,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getStatus_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getStatus_args("); boolean first = true; sb.append(")"); @@ -24775,7 +25448,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -24783,13 +25456,13 @@ public class SatelliteServer { } } - private static class getStatus_argsStandardSchemeFactory implements SchemeFactory { + private static class getStatus_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getStatus_argsStandardScheme getScheme() { return new getStatus_argsStandardScheme(); } } - private static class getStatus_argsStandardScheme extends StandardScheme { + private static class getStatus_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getStatus_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -24822,25 +25495,28 @@ public class SatelliteServer { } - private static class getStatus_argsTupleSchemeFactory implements SchemeFactory { + private static class getStatus_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getStatus_argsTupleScheme getScheme() { return new getStatus_argsTupleScheme(); } } - private static class getStatus_argsTupleScheme extends TupleScheme { + private static class getStatus_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getStatus_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getStatus_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -24848,22 +25524,19 @@ public class SatelliteServer { 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 getStatus_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getStatus_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getStatus_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getStatus_resultTupleSchemeFactory(); - public SatelliteStatus success; // required + public @org.apache.thrift.annotation.Nullable 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 { SUCCESS((short)0, "success"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -24871,6 +25544,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -24886,21 +25560,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -24909,18 +25584,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStatus_result.class, metaDataMap); } @@ -24952,11 +25627,12 @@ public class SatelliteServer { this.success = null; } + @org.apache.thrift.annotation.Nullable public SatelliteStatus getSuccess() { return this.success; } - public getStatus_result setSuccess(SatelliteStatus success) { + public getStatus_result setSuccess(@org.apache.thrift.annotation.Nullable SatelliteStatus success) { this.success = success; return this; } @@ -24976,7 +25652,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -24989,32 +25665,31 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getStatus_result) return this.equals((getStatus_result)that); return false; @@ -25023,6 +25698,8 @@ public class SatelliteServer { public boolean equals(getStatus_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -25038,14 +25715,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -25056,7 +25732,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -25069,21 +25745,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getStatus_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getStatus_result("); boolean first = true; sb.append("success:"); @@ -25113,7 +25790,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -25121,13 +25798,13 @@ public class SatelliteServer { } } - private static class getStatus_resultStandardSchemeFactory implements SchemeFactory { + private static class getStatus_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getStatus_resultStandardScheme getScheme() { return new getStatus_resultStandardScheme(); } } - private static class getStatus_resultStandardScheme extends StandardScheme { + private static class getStatus_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getStatus_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -25174,18 +25851,18 @@ public class SatelliteServer { } - private static class getStatus_resultTupleSchemeFactory implements SchemeFactory { + private static class getStatus_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getStatus_resultTupleScheme getScheme() { return new getStatus_resultTupleScheme(); } } - private static class getStatus_resultTupleScheme extends TupleScheme { + private static class getStatus_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -25197,8 +25874,8 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = new SatelliteStatus(); struct.success.read(iprot); @@ -25207,6 +25884,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getImageList_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -25216,14 +25896,11 @@ public class SatelliteServer { 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 getImageList_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageList_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImageList_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImageList_argsTupleSchemeFactory(); - public String userToken; // required - public List tagSearch; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.util.List tagSearch; // required public int page; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -25232,10 +25909,10 @@ public class SatelliteServer { TAG_SEARCH((short)2, "tagSearch"), PAGE((short)3, "page"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -25243,6 +25920,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -25262,21 +25940,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -25285,7 +25964,7 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -25293,9 +25972,9 @@ 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; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, @@ -25303,7 +25982,7 @@ public class SatelliteServer { 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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_args.class, metaDataMap); } @@ -25311,8 +25990,8 @@ public class SatelliteServer { } public getImageList_args( - String userToken, - List tagSearch, + java.lang.String userToken, + java.util.List tagSearch, int page) { this(); @@ -25331,7 +26010,7 @@ public class SatelliteServer { this.userToken = other.userToken; } if (other.isSetTagSearch()) { - List __this__tagSearch = new ArrayList(other.tagSearch); + java.util.List __this__tagSearch = new java.util.ArrayList(other.tagSearch); this.tagSearch = __this__tagSearch; } this.page = other.page; @@ -25349,11 +26028,12 @@ public class SatelliteServer { this.page = 0; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public getImageList_args setUserToken(String userToken) { + public getImageList_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -25377,22 +26057,24 @@ public class SatelliteServer { return (this.tagSearch == null) ? 0 : this.tagSearch.size(); } - public java.util.Iterator getTagSearchIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getTagSearchIterator() { return (this.tagSearch == null) ? null : this.tagSearch.iterator(); } - public void addToTagSearch(String elem) { + public void addToTagSearch(java.lang.String elem) { if (this.tagSearch == null) { - this.tagSearch = new ArrayList(); + this.tagSearch = new java.util.ArrayList(); } this.tagSearch.add(elem); } - public List getTagSearch() { + @org.apache.thrift.annotation.Nullable + public java.util.List getTagSearch() { return this.tagSearch; } - public getImageList_args setTagSearch(List tagSearch) { + public getImageList_args setTagSearch(@org.apache.thrift.annotation.Nullable java.util.List tagSearch) { this.tagSearch = tagSearch; return this; } @@ -25423,25 +26105,25 @@ public class SatelliteServer { } public void unsetPage() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID); } public void setPageIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -25449,7 +26131,7 @@ public class SatelliteServer { if (value == null) { unsetTagSearch(); } else { - setTagSearch((List)value); + setTagSearch((java.util.List)value); } break; @@ -25457,14 +26139,15 @@ public class SatelliteServer { if (value == null) { unsetPage(); } else { - setPage((Integer)value); + setPage((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -25476,13 +26159,13 @@ public class SatelliteServer { return getPage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -25493,13 +26176,11 @@ public class SatelliteServer { case PAGE: return isSetPage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getImageList_args) return this.equals((getImageList_args)that); return false; @@ -25508,6 +26189,8 @@ public class SatelliteServer { public boolean equals(getImageList_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -25541,24 +26224,19 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_tagSearch = true && (isSetTagSearch()); - list.add(present_tagSearch); - if (present_tagSearch) - list.add(tagSearch); + hashCode = hashCode * 8191 + ((isSetTagSearch()) ? 131071 : 524287); + if (isSetTagSearch()) + hashCode = hashCode * 8191 + tagSearch.hashCode(); - boolean present_page = true; - list.add(present_page); - if (present_page) - list.add(page); + hashCode = hashCode * 8191 + page; - return list.hashCode(); + return hashCode; } @Override @@ -25569,7 +26247,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -25579,7 +26257,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTagSearch()).compareTo(other.isSetTagSearch()); + lastComparison = java.lang.Boolean.compare(isSetTagSearch(), other.isSetTagSearch()); if (lastComparison != 0) { return lastComparison; } @@ -25589,7 +26267,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage()); + lastComparison = java.lang.Boolean.compare(isSetPage(), other.isSetPage()); if (lastComparison != 0) { return lastComparison; } @@ -25602,21 +26280,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getImageList_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getImageList_args("); boolean first = true; sb.append("userToken:"); @@ -25655,7 +26334,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -25665,13 +26344,13 @@ public class SatelliteServer { } } - private static class getImageList_argsStandardSchemeFactory implements SchemeFactory { + private static class getImageList_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageList_argsStandardScheme getScheme() { return new getImageList_argsStandardScheme(); } } - private static class getImageList_argsStandardScheme extends StandardScheme { + private static class getImageList_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -25694,13 +26373,13 @@ public class SatelliteServer { case 2: // TAG_SEARCH if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list274 = iprot.readListBegin(); - struct.tagSearch = new ArrayList(_list274.size); - String _elem275; - for (int _i276 = 0; _i276 < _list274.size; ++_i276) + org.apache.thrift.protocol.TList _list354 = iprot.readListBegin(); + struct.tagSearch = new java.util.ArrayList(_list354.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem355; + for (int _i356 = 0; _i356 < _list354.size; ++_i356) { - _elem275 = iprot.readString(); - struct.tagSearch.add(_elem275); + _elem355 = iprot.readString(); + struct.tagSearch.add(_elem355); } iprot.readListEnd(); } @@ -25741,9 +26420,9 @@ public class SatelliteServer { 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 _iter277 : struct.tagSearch) + for (java.lang.String _iter357 : struct.tagSearch) { - oprot.writeString(_iter277); + oprot.writeString(_iter357); } oprot.writeListEnd(); } @@ -25758,18 +26437,18 @@ public class SatelliteServer { } - private static class getImageList_argsTupleSchemeFactory implements SchemeFactory { + private static class getImageList_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageList_argsTupleScheme getScheme() { return new getImageList_argsTupleScheme(); } } - private static class getImageList_argsTupleScheme extends TupleScheme { + private static class getImageList_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -25786,9 +26465,9 @@ public class SatelliteServer { if (struct.isSetTagSearch()) { { oprot.writeI32(struct.tagSearch.size()); - for (String _iter278 : struct.tagSearch) + for (java.lang.String _iter358 : struct.tagSearch) { - oprot.writeString(_iter278); + oprot.writeString(_iter358); } } } @@ -25799,21 +26478,21 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.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 _list279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tagSearch = new ArrayList(_list279.size); - String _elem280; - for (int _i281 = 0; _i281 < _list279.size; ++_i281) + org.apache.thrift.protocol.TList _list359 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.tagSearch = new java.util.ArrayList(_list359.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem360; + for (int _i361 = 0; _i361 < _list359.size; ++_i361) { - _elem280 = iprot.readString(); - struct.tagSearch.add(_elem280); + _elem360 = iprot.readString(); + struct.tagSearch.add(_elem360); } } struct.setTagSearchIsSet(true); @@ -25825,6 +26504,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getImageList_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -25834,15 +26516,12 @@ public class SatelliteServer { 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 getImageList_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageList_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImageList_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImageList_resultTupleSchemeFactory(); - public List success; // required - public TAuthorizationException authError; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -25850,10 +26529,10 @@ public class SatelliteServer { AUTH_ERROR((short)1, "authError"), SERVER_ERROR((short)2, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -25861,6 +26540,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -25880,21 +26560,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -25903,23 +26584,23 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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)))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_result.class, metaDataMap); } @@ -25927,7 +26608,7 @@ public class SatelliteServer { } public getImageList_result( - List success, + java.util.List success, TAuthorizationException authError, TInvocationException serverError) { @@ -25942,7 +26623,7 @@ public class SatelliteServer { */ public getImageList_result(getImageList_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (ImageSummaryRead other_element : other.success) { __this__success.add(new ImageSummaryRead(other_element)); } @@ -25971,22 +26652,24 @@ public class SatelliteServer { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable 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 = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getImageList_result setSuccess(List success) { + public getImageList_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -26006,11 +26689,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public getImageList_result setAuthError(TAuthorizationException authError) { + public getImageList_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -26030,11 +26714,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getImageList_result setServerError(TInvocationException serverError) { + public getImageList_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -26054,13 +26739,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -26083,7 +26768,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -26095,13 +26781,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -26112,13 +26798,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getImageList_result) return this.equals((getImageList_result)that); return false; @@ -26127,6 +26811,8 @@ public class SatelliteServer { public boolean equals(getImageList_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -26160,24 +26846,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -26188,7 +26871,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -26198,7 +26881,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -26208,7 +26891,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -26221,21 +26904,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getImageList_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getImageList_result("); boolean first = true; sb.append("success:"); @@ -26278,7 +26962,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -26286,13 +26970,13 @@ public class SatelliteServer { } } - private static class getImageList_resultStandardSchemeFactory implements SchemeFactory { + private static class getImageList_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageList_resultStandardScheme getScheme() { return new getImageList_resultStandardScheme(); } } - private static class getImageList_resultStandardScheme extends StandardScheme { + private static class getImageList_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -26307,14 +26991,14 @@ public class SatelliteServer { 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); - ImageSummaryRead _elem283; - for (int _i284 = 0; _i284 < _list282.size; ++_i284) + org.apache.thrift.protocol.TList _list362 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list362.size); + @org.apache.thrift.annotation.Nullable ImageSummaryRead _elem363; + for (int _i364 = 0; _i364 < _list362.size; ++_i364) { - _elem283 = new ImageSummaryRead(); - _elem283.read(iprot); - struct.success.add(_elem283); + _elem363 = new ImageSummaryRead(); + _elem363.read(iprot); + struct.success.add(_elem363); } iprot.readListEnd(); } @@ -26360,9 +27044,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 (ImageSummaryRead _iter285 : struct.success) + for (ImageSummaryRead _iter365 : struct.success) { - _iter285.write(oprot); + _iter365.write(oprot); } oprot.writeListEnd(); } @@ -26384,18 +27068,18 @@ public class SatelliteServer { } - private static class getImageList_resultTupleSchemeFactory implements SchemeFactory { + private static class getImageList_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageList_resultTupleScheme getScheme() { return new getImageList_resultTupleScheme(); } } - private static class getImageList_resultTupleScheme extends TupleScheme { + private static class getImageList_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -26409,9 +27093,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (ImageSummaryRead _iter286 : struct.success) + for (ImageSummaryRead _iter366 : struct.success) { - _iter286.write(oprot); + _iter366.write(oprot); } } } @@ -26425,18 +27109,18 @@ public class SatelliteServer { @Override 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(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); 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); - ImageSummaryRead _elem288; - for (int _i289 = 0; _i289 < _list287.size; ++_i289) + org.apache.thrift.protocol.TList _list367 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list367.size); + @org.apache.thrift.annotation.Nullable ImageSummaryRead _elem368; + for (int _i369 = 0; _i369 < _list367.size; ++_i369) { - _elem288 = new ImageSummaryRead(); - _elem288.read(iprot); - struct.success.add(_elem288); + _elem368 = new ImageSummaryRead(); + _elem368.read(iprot); + struct.success.add(_elem368); } } struct.setSuccessIsSet(true); @@ -26454,6 +27138,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getImageDetails_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -26462,24 +27149,21 @@ public class SatelliteServer { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getImageDetails_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageDetails_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImageDetails_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImageDetails_argsTupleSchemeFactory(); - public String userToken; // required - public String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.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_BASE_ID((short)2, "imageBaseId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -26487,6 +27171,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -26504,21 +27189,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -26527,20 +27213,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_args.class, metaDataMap); } @@ -26548,8 +27234,8 @@ public class SatelliteServer { } public getImageDetails_args( - String userToken, - String imageBaseId) + java.lang.String userToken, + java.lang.String imageBaseId) { this(); this.userToken = userToken; @@ -26578,11 +27264,12 @@ public class SatelliteServer { this.imageBaseId = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public getImageDetails_args setUserToken(String userToken) { + public getImageDetails_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -26602,11 +27289,12 @@ public class SatelliteServer { } } - public String getImageBaseId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageBaseId() { return this.imageBaseId; } - public getImageDetails_args setImageBaseId(String imageBaseId) { + public getImageDetails_args setImageBaseId(@org.apache.thrift.annotation.Nullable java.lang.String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -26626,13 +27314,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -26640,14 +27328,15 @@ public class SatelliteServer { if (value == null) { unsetImageBaseId(); } else { - setImageBaseId((String)value); + setImageBaseId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -26656,13 +27345,13 @@ public class SatelliteServer { return getImageBaseId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -26671,13 +27360,11 @@ public class SatelliteServer { case IMAGE_BASE_ID: return isSetImageBaseId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getImageDetails_args) return this.equals((getImageDetails_args)that); return false; @@ -26686,6 +27373,8 @@ public class SatelliteServer { public boolean equals(getImageDetails_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -26710,19 +27399,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -26733,7 +27420,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -26743,7 +27430,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = java.lang.Boolean.compare(isSetImageBaseId(), other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } @@ -26756,21 +27443,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getImageDetails_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getImageDetails_args("); boolean first = true; sb.append("userToken:"); @@ -26805,7 +27493,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -26813,13 +27501,13 @@ public class SatelliteServer { } } - private static class getImageDetails_argsStandardSchemeFactory implements SchemeFactory { + private static class getImageDetails_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageDetails_argsStandardScheme getScheme() { return new getImageDetails_argsStandardScheme(); } } - private static class getImageDetails_argsStandardScheme extends StandardScheme { + private static class getImageDetails_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -26878,18 +27566,18 @@ public class SatelliteServer { } - private static class getImageDetails_argsTupleSchemeFactory implements SchemeFactory { + private static class getImageDetails_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageDetails_argsTupleScheme getScheme() { return new getImageDetails_argsTupleScheme(); } } - private static class getImageDetails_argsTupleScheme extends TupleScheme { + private static class getImageDetails_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -26907,8 +27595,8 @@ public class SatelliteServer { @Override 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(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -26920,6 +27608,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getImageDetails_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -26930,16 +27621,13 @@ public class SatelliteServer { 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 getImageDetails_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageDetails_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImageDetails_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImageDetails_resultTupleSchemeFactory(); - public ImageDetailsRead success; // required - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable ImageDetailsRead success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -26948,10 +27636,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -26959,6 +27647,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -26980,21 +27669,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -27003,24 +27693,24 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_result.class, metaDataMap); } @@ -27070,11 +27760,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public ImageDetailsRead getSuccess() { return this.success; } - public getImageDetails_result setSuccess(ImageDetailsRead success) { + public getImageDetails_result setSuccess(@org.apache.thrift.annotation.Nullable ImageDetailsRead success) { this.success = success; return this; } @@ -27094,11 +27785,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public getImageDetails_result setAuthError(TAuthorizationException authError) { + public getImageDetails_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -27118,11 +27810,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public getImageDetails_result setNotFound(TNotFoundException notFound) { + public getImageDetails_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -27142,11 +27835,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getImageDetails_result setServerError(TInvocationException serverError) { + public getImageDetails_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -27166,7 +27860,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -27203,7 +27897,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -27218,13 +27913,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -27237,13 +27932,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getImageDetails_result) return this.equals((getImageDetails_result)that); return false; @@ -27252,6 +27945,8 @@ public class SatelliteServer { public boolean equals(getImageDetails_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -27294,29 +27989,25 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -27327,7 +28018,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -27337,7 +28028,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -27347,7 +28038,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -27357,7 +28048,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -27370,21 +28061,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getImageDetails_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getImageDetails_result("); boolean first = true; sb.append("success:"); @@ -27438,7 +28130,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -27446,13 +28138,13 @@ public class SatelliteServer { } } - private static class getImageDetails_resultStandardSchemeFactory implements SchemeFactory { + private static class getImageDetails_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageDetails_resultStandardScheme getScheme() { return new getImageDetails_resultStandardScheme(); } } - private static class getImageDetails_resultStandardScheme extends StandardScheme { + private static class getImageDetails_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -27541,18 +28233,18 @@ public class SatelliteServer { } - private static class getImageDetails_resultTupleSchemeFactory implements SchemeFactory { + private static class getImageDetails_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageDetails_resultTupleScheme getScheme() { return new getImageDetails_resultTupleScheme(); } } - private static class getImageDetails_resultTupleScheme extends TupleScheme { + private static class getImageDetails_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -27582,8 +28274,8 @@ public class SatelliteServer { @Override 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(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new ImageDetailsRead(); struct.success.read(iprot); @@ -27607,6 +28299,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class createImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -27615,24 +28310,21 @@ public class SatelliteServer { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new createImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createImage_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new createImage_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createImage_argsTupleSchemeFactory(); - public String userToken; // required - public String imageName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.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_NAME((short)2, "imageName"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -27640,6 +28332,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -27657,21 +28350,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -27680,20 +28374,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createImage_args.class, metaDataMap); } @@ -27701,8 +28395,8 @@ public class SatelliteServer { } public createImage_args( - String userToken, - String imageName) + java.lang.String userToken, + java.lang.String imageName) { this(); this.userToken = userToken; @@ -27731,11 +28425,12 @@ public class SatelliteServer { this.imageName = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public createImage_args setUserToken(String userToken) { + public createImage_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -27755,11 +28450,12 @@ public class SatelliteServer { } } - public String getImageName() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageName() { return this.imageName; } - public createImage_args setImageName(String imageName) { + public createImage_args setImageName(@org.apache.thrift.annotation.Nullable java.lang.String imageName) { this.imageName = imageName; return this; } @@ -27779,13 +28475,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -27793,14 +28489,15 @@ public class SatelliteServer { if (value == null) { unsetImageName(); } else { - setImageName((String)value); + setImageName((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -27809,13 +28506,13 @@ public class SatelliteServer { return getImageName(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -27824,13 +28521,11 @@ public class SatelliteServer { case IMAGE_NAME: return isSetImageName(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof createImage_args) return this.equals((createImage_args)that); return false; @@ -27839,6 +28534,8 @@ public class SatelliteServer { public boolean equals(createImage_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -27863,19 +28560,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageName = true && (isSetImageName()); - list.add(present_imageName); - if (present_imageName) - list.add(imageName); + hashCode = hashCode * 8191 + ((isSetImageName()) ? 131071 : 524287); + if (isSetImageName()) + hashCode = hashCode * 8191 + imageName.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -27886,7 +28581,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -27896,7 +28591,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageName()).compareTo(other.isSetImageName()); + lastComparison = java.lang.Boolean.compare(isSetImageName(), other.isSetImageName()); if (lastComparison != 0) { return lastComparison; } @@ -27909,21 +28604,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("createImage_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("createImage_args("); boolean first = true; sb.append("userToken:"); @@ -27958,7 +28654,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -27966,13 +28662,13 @@ public class SatelliteServer { } } - private static class createImage_argsStandardSchemeFactory implements SchemeFactory { + private static class createImage_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createImage_argsStandardScheme getScheme() { return new createImage_argsStandardScheme(); } } - private static class createImage_argsStandardScheme extends StandardScheme { + private static class createImage_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, createImage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -28031,18 +28727,18 @@ public class SatelliteServer { } - private static class createImage_argsTupleSchemeFactory implements SchemeFactory { + private static class createImage_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createImage_argsTupleScheme getScheme() { return new createImage_argsTupleScheme(); } } - private static class createImage_argsTupleScheme extends TupleScheme { + private static class createImage_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -28060,8 +28756,8 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -28073,6 +28769,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class createImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -28082,15 +28781,12 @@ public class SatelliteServer { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new createImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createImage_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new createImage_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createImage_resultTupleSchemeFactory(); - public String success; // required - public TAuthorizationException authError; // required - public TInvocationException error; // required + public @org.apache.thrift.annotation.Nullable java.lang.String success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -28098,10 +28794,10 @@ public class SatelliteServer { AUTH_ERROR((short)1, "authError"), ERROR((short)2, "error"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -28109,6 +28805,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -28128,21 +28825,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -28151,22 +28849,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createImage_result.class, metaDataMap); } @@ -28174,7 +28872,7 @@ public class SatelliteServer { } public createImage_result( - String success, + java.lang.String success, TAuthorizationException authError, TInvocationException error) { @@ -28210,11 +28908,12 @@ public class SatelliteServer { this.error = null; } - public String getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getSuccess() { return this.success; } - public createImage_result setSuccess(String success) { + public createImage_result setSuccess(@org.apache.thrift.annotation.Nullable java.lang.String success) { this.success = success; return this; } @@ -28234,11 +28933,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public createImage_result setAuthError(TAuthorizationException authError) { + public createImage_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -28258,11 +28958,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getError() { return this.error; } - public createImage_result setError(TInvocationException error) { + public createImage_result setError(@org.apache.thrift.annotation.Nullable TInvocationException error) { this.error = error; return this; } @@ -28282,13 +28983,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((String)value); + setSuccess((java.lang.String)value); } break; @@ -28311,7 +29012,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -28323,13 +29025,13 @@ public class SatelliteServer { return getError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -28340,13 +29042,11 @@ public class SatelliteServer { case ERROR: return isSetError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof createImage_result) return this.equals((createImage_result)that); return false; @@ -28355,6 +29055,8 @@ public class SatelliteServer { public boolean equals(createImage_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -28388,24 +29090,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_error = true && (isSetError()); - list.add(present_error); - if (present_error) - list.add(error); + hashCode = hashCode * 8191 + ((isSetError()) ? 131071 : 524287); + if (isSetError()) + hashCode = hashCode * 8191 + error.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -28416,7 +29115,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -28426,7 +29125,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -28436,7 +29135,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); + lastComparison = java.lang.Boolean.compare(isSetError(), other.isSetError()); if (lastComparison != 0) { return lastComparison; } @@ -28449,21 +29148,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("createImage_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("createImage_result("); boolean first = true; sb.append("success:"); @@ -28506,7 +29206,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -28514,13 +29214,13 @@ public class SatelliteServer { } } - private static class createImage_resultStandardSchemeFactory implements SchemeFactory { + private static class createImage_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createImage_resultStandardScheme getScheme() { return new createImage_resultStandardScheme(); } } - private static class createImage_resultStandardScheme extends StandardScheme { + private static class createImage_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, createImage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -28594,18 +29294,18 @@ public class SatelliteServer { } - private static class createImage_resultTupleSchemeFactory implements SchemeFactory { + private static class createImage_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createImage_resultTupleScheme getScheme() { return new createImage_resultTupleScheme(); } } - private static class createImage_resultTupleScheme extends TupleScheme { + private static class createImage_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -28629,8 +29329,8 @@ public class SatelliteServer { @Override 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(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); @@ -28648,6 +29348,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class updateImageBase_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -28657,15 +29360,12 @@ public class SatelliteServer { 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 updateImageBase_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageBase_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateImageBase_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateImageBase_argsTupleSchemeFactory(); - public String userToken; // required - public String imageBaseId; // required - public ImageBaseWrite image; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -28673,10 +29373,10 @@ public class SatelliteServer { IMAGE_BASE_ID((short)2, "imageBaseId"), IMAGE((short)3, "image"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -28684,6 +29384,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -28703,21 +29404,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -28726,22 +29428,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, 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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageBase_args.class, metaDataMap); } @@ -28749,8 +29451,8 @@ public class SatelliteServer { } public updateImageBase_args( - String userToken, - String imageBaseId, + java.lang.String userToken, + java.lang.String imageBaseId, ImageBaseWrite image) { this(); @@ -28785,11 +29487,12 @@ public class SatelliteServer { this.image = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public updateImageBase_args setUserToken(String userToken) { + public updateImageBase_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -28809,11 +29512,12 @@ public class SatelliteServer { } } - public String getImageBaseId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageBaseId() { return this.imageBaseId; } - public updateImageBase_args setImageBaseId(String imageBaseId) { + public updateImageBase_args setImageBaseId(@org.apache.thrift.annotation.Nullable java.lang.String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -28833,11 +29537,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public ImageBaseWrite getImage() { return this.image; } - public updateImageBase_args setImage(ImageBaseWrite image) { + public updateImageBase_args setImage(@org.apache.thrift.annotation.Nullable ImageBaseWrite image) { this.image = image; return this; } @@ -28857,13 +29562,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -28871,7 +29576,7 @@ public class SatelliteServer { if (value == null) { unsetImageBaseId(); } else { - setImageBaseId((String)value); + setImageBaseId((java.lang.String)value); } break; @@ -28886,7 +29591,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -28898,13 +29604,13 @@ public class SatelliteServer { return getImage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -28915,13 +29621,11 @@ public class SatelliteServer { case IMAGE: return isSetImage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof updateImageBase_args) return this.equals((updateImageBase_args)that); return false; @@ -28930,6 +29634,8 @@ public class SatelliteServer { public boolean equals(updateImageBase_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -28963,24 +29669,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); - boolean present_image = true && (isSetImage()); - list.add(present_image); - if (present_image) - list.add(image); + hashCode = hashCode * 8191 + ((isSetImage()) ? 131071 : 524287); + if (isSetImage()) + hashCode = hashCode * 8191 + image.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -28991,7 +29694,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -29001,7 +29704,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = java.lang.Boolean.compare(isSetImageBaseId(), other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } @@ -29011,7 +29714,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImage()).compareTo(other.isSetImage()); + lastComparison = java.lang.Boolean.compare(isSetImage(), other.isSetImage()); if (lastComparison != 0) { return lastComparison; } @@ -29024,21 +29727,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("updateImageBase_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("updateImageBase_args("); boolean first = true; sb.append("userToken:"); @@ -29084,7 +29788,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -29092,13 +29796,13 @@ public class SatelliteServer { } } - private static class updateImageBase_argsStandardSchemeFactory implements SchemeFactory { + private static class updateImageBase_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateImageBase_argsStandardScheme getScheme() { return new updateImageBase_argsStandardScheme(); } } - private static class updateImageBase_argsStandardScheme extends StandardScheme { + private static class updateImageBase_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageBase_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -29171,18 +29875,18 @@ public class SatelliteServer { } - private static class updateImageBase_argsTupleSchemeFactory implements SchemeFactory { + private static class updateImageBase_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateImageBase_argsTupleScheme getScheme() { return new updateImageBase_argsTupleScheme(); } } - private static class updateImageBase_argsTupleScheme extends TupleScheme { + private static class updateImageBase_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -29206,8 +29910,8 @@ public class SatelliteServer { @Override 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(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -29224,6 +29928,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class updateImageBase_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -29233,15 +29940,12 @@ public class SatelliteServer { 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 updateImageBase_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageBase_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateImageBase_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateImageBase_resultTupleSchemeFactory(); - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException imgError; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -29249,10 +29953,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), IMG_ERROR((short)3, "imgError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -29260,6 +29964,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // AUTH_ERROR @@ -29279,21 +29984,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -29302,22 +30008,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageBase_result.class, metaDataMap); } @@ -29361,11 +30067,12 @@ public class SatelliteServer { this.imgError = null; } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public updateImageBase_result setAuthError(TAuthorizationException authError) { + public updateImageBase_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -29385,11 +30092,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public updateImageBase_result setNotFound(TNotFoundException notFound) { + public updateImageBase_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -29409,11 +30117,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getImgError() { return this.imgError; } - public updateImageBase_result setImgError(TInvocationException imgError) { + public updateImageBase_result setImgError(@org.apache.thrift.annotation.Nullable TInvocationException imgError) { this.imgError = imgError; return this; } @@ -29433,7 +30142,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case AUTH_ERROR: if (value == null) { @@ -29462,7 +30171,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AUTH_ERROR: return getAuthError(); @@ -29474,13 +30184,13 @@ public class SatelliteServer { return getImgError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -29491,13 +30201,11 @@ public class SatelliteServer { case IMG_ERROR: return isSetImgError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof updateImageBase_result) return this.equals((updateImageBase_result)that); return false; @@ -29506,6 +30214,8 @@ public class SatelliteServer { public boolean equals(updateImageBase_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); @@ -29539,24 +30249,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_imgError = true && (isSetImgError()); - list.add(present_imgError); - if (present_imgError) - list.add(imgError); + hashCode = hashCode * 8191 + ((isSetImgError()) ? 131071 : 524287); + if (isSetImgError()) + hashCode = hashCode * 8191 + imgError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -29567,7 +30274,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -29577,7 +30284,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -29587,7 +30294,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImgError()).compareTo(other.isSetImgError()); + lastComparison = java.lang.Boolean.compare(isSetImgError(), other.isSetImgError()); if (lastComparison != 0) { return lastComparison; } @@ -29600,21 +30307,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("updateImageBase_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("updateImageBase_result("); boolean first = true; sb.append("authError:"); @@ -29657,7 +30365,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -29665,13 +30373,13 @@ public class SatelliteServer { } } - private static class updateImageBase_resultStandardSchemeFactory implements SchemeFactory { + private static class updateImageBase_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateImageBase_resultStandardScheme getScheme() { return new updateImageBase_resultStandardScheme(); } } - private static class updateImageBase_resultStandardScheme extends StandardScheme { + private static class updateImageBase_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageBase_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -29746,18 +30454,18 @@ public class SatelliteServer { } - private static class updateImageBase_resultTupleSchemeFactory implements SchemeFactory { + private static class updateImageBase_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateImageBase_resultTupleScheme getScheme() { return new updateImageBase_resultTupleScheme(); } } - private static class updateImageBase_resultTupleScheme extends TupleScheme { + private static class updateImageBase_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuthError()) { optionals.set(0); } @@ -29781,8 +30489,8 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -29801,6 +30509,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class updateImageVersion_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -29810,15 +30521,12 @@ public class SatelliteServer { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateImageVersion_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateImageVersion_argsTupleSchemeFactory(); - public String userToken; // required - public String imageVersionId; // required - public ImageVersionWrite image; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -29826,10 +30534,10 @@ public class SatelliteServer { IMAGE_VERSION_ID((short)2, "imageVersionId"), IMAGE((short)3, "image"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -29837,6 +30545,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -29856,21 +30565,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -29879,22 +30589,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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"))); 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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_args.class, metaDataMap); } @@ -29902,8 +30612,8 @@ public class SatelliteServer { } public updateImageVersion_args( - String userToken, - String imageVersionId, + java.lang.String userToken, + java.lang.String imageVersionId, ImageVersionWrite image) { this(); @@ -29938,11 +30648,12 @@ public class SatelliteServer { this.image = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public updateImageVersion_args setUserToken(String userToken) { + public updateImageVersion_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -29962,11 +30673,12 @@ public class SatelliteServer { } } - public String getImageVersionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageVersionId() { return this.imageVersionId; } - public updateImageVersion_args setImageVersionId(String imageVersionId) { + public updateImageVersion_args setImageVersionId(@org.apache.thrift.annotation.Nullable java.lang.String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -29986,11 +30698,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public ImageVersionWrite getImage() { return this.image; } - public updateImageVersion_args setImage(ImageVersionWrite image) { + public updateImageVersion_args setImage(@org.apache.thrift.annotation.Nullable ImageVersionWrite image) { this.image = image; return this; } @@ -30010,13 +30723,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -30024,7 +30737,7 @@ public class SatelliteServer { if (value == null) { unsetImageVersionId(); } else { - setImageVersionId((String)value); + setImageVersionId((java.lang.String)value); } break; @@ -30039,7 +30752,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -30051,13 +30765,13 @@ public class SatelliteServer { return getImage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -30068,13 +30782,11 @@ public class SatelliteServer { case IMAGE: return isSetImage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof updateImageVersion_args) return this.equals((updateImageVersion_args)that); return false; @@ -30083,6 +30795,8 @@ public class SatelliteServer { public boolean equals(updateImageVersion_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -30116,24 +30830,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); - boolean present_image = true && (isSetImage()); - list.add(present_image); - if (present_image) - list.add(image); + hashCode = hashCode * 8191 + ((isSetImage()) ? 131071 : 524287); + if (isSetImage()) + hashCode = hashCode * 8191 + image.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -30144,7 +30855,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -30154,7 +30865,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = java.lang.Boolean.compare(isSetImageVersionId(), other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } @@ -30164,7 +30875,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImage()).compareTo(other.isSetImage()); + lastComparison = java.lang.Boolean.compare(isSetImage(), other.isSetImage()); if (lastComparison != 0) { return lastComparison; } @@ -30177,21 +30888,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("updateImageVersion_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("updateImageVersion_args("); boolean first = true; sb.append("userToken:"); @@ -30237,7 +30949,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -30245,13 +30957,13 @@ public class SatelliteServer { } } - private static class updateImageVersion_argsStandardSchemeFactory implements SchemeFactory { + private static class updateImageVersion_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateImageVersion_argsStandardScheme getScheme() { return new updateImageVersion_argsStandardScheme(); } } - private static class updateImageVersion_argsStandardScheme extends StandardScheme { + private static class updateImageVersion_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageVersion_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -30324,18 +31036,18 @@ public class SatelliteServer { } - private static class updateImageVersion_argsTupleSchemeFactory implements SchemeFactory { + private static class updateImageVersion_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateImageVersion_argsTupleScheme getScheme() { return new updateImageVersion_argsTupleScheme(); } } - private static class updateImageVersion_argsTupleScheme extends TupleScheme { + private static class updateImageVersion_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -30359,8 +31071,8 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -30377,6 +31089,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class updateImageVersion_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -30386,15 +31101,12 @@ public class SatelliteServer { 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 updateImageVersion_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageVersion_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateImageVersion_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateImageVersion_resultTupleSchemeFactory(); - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException imgError; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -30402,10 +31114,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), IMG_ERROR((short)3, "imgError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -30413,6 +31125,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // AUTH_ERROR @@ -30432,21 +31145,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -30455,22 +31169,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_result.class, metaDataMap); } @@ -30514,11 +31228,12 @@ public class SatelliteServer { this.imgError = null; } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public updateImageVersion_result setAuthError(TAuthorizationException authError) { + public updateImageVersion_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -30538,11 +31253,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public updateImageVersion_result setNotFound(TNotFoundException notFound) { + public updateImageVersion_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -30562,11 +31278,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getImgError() { return this.imgError; } - public updateImageVersion_result setImgError(TInvocationException imgError) { + public updateImageVersion_result setImgError(@org.apache.thrift.annotation.Nullable TInvocationException imgError) { this.imgError = imgError; return this; } @@ -30586,7 +31303,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case AUTH_ERROR: if (value == null) { @@ -30615,7 +31332,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AUTH_ERROR: return getAuthError(); @@ -30627,13 +31345,13 @@ public class SatelliteServer { return getImgError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -30644,13 +31362,11 @@ public class SatelliteServer { case IMG_ERROR: return isSetImgError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof updateImageVersion_result) return this.equals((updateImageVersion_result)that); return false; @@ -30659,6 +31375,8 @@ public class SatelliteServer { public boolean equals(updateImageVersion_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); @@ -30692,24 +31410,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_imgError = true && (isSetImgError()); - list.add(present_imgError); - if (present_imgError) - list.add(imgError); + hashCode = hashCode * 8191 + ((isSetImgError()) ? 131071 : 524287); + if (isSetImgError()) + hashCode = hashCode * 8191 + imgError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -30720,7 +31435,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -30730,7 +31445,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -30740,7 +31455,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImgError()).compareTo(other.isSetImgError()); + lastComparison = java.lang.Boolean.compare(isSetImgError(), other.isSetImgError()); if (lastComparison != 0) { return lastComparison; } @@ -30753,21 +31468,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("updateImageVersion_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("updateImageVersion_result("); boolean first = true; sb.append("authError:"); @@ -30810,7 +31526,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -30818,13 +31534,13 @@ public class SatelliteServer { } } - private static class updateImageVersion_resultStandardSchemeFactory implements SchemeFactory { + private static class updateImageVersion_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateImageVersion_resultStandardScheme getScheme() { return new updateImageVersion_resultStandardScheme(); } } - private static class updateImageVersion_resultStandardScheme extends StandardScheme { + private static class updateImageVersion_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageVersion_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -30899,18 +31615,18 @@ public class SatelliteServer { } - private static class updateImageVersion_resultTupleSchemeFactory implements SchemeFactory { + private static class updateImageVersion_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateImageVersion_resultTupleScheme getScheme() { return new updateImageVersion_resultTupleScheme(); } } - private static class updateImageVersion_resultTupleScheme extends TupleScheme { + private static class updateImageVersion_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuthError()) { optionals.set(0); } @@ -30934,8 +31650,8 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -30954,6 +31670,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteImageVersion_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -30962,24 +31681,21 @@ public class SatelliteServer { 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 deleteImageVersion_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageVersion_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteImageVersion_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteImageVersion_argsTupleSchemeFactory(); - public String userToken; // required - public String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.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"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -30987,6 +31703,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -31004,21 +31721,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -31027,20 +31745,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_args.class, metaDataMap); } @@ -31048,8 +31766,8 @@ public class SatelliteServer { } public deleteImageVersion_args( - String userToken, - String imageVersionId) + java.lang.String userToken, + java.lang.String imageVersionId) { this(); this.userToken = userToken; @@ -31078,11 +31796,12 @@ public class SatelliteServer { this.imageVersionId = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public deleteImageVersion_args setUserToken(String userToken) { + public deleteImageVersion_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -31102,11 +31821,12 @@ public class SatelliteServer { } } - public String getImageVersionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageVersionId() { return this.imageVersionId; } - public deleteImageVersion_args setImageVersionId(String imageVersionId) { + public deleteImageVersion_args setImageVersionId(@org.apache.thrift.annotation.Nullable java.lang.String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -31126,13 +31846,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -31140,14 +31860,15 @@ public class SatelliteServer { if (value == null) { unsetImageVersionId(); } else { - setImageVersionId((String)value); + setImageVersionId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -31156,13 +31877,13 @@ public class SatelliteServer { return getImageVersionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -31171,13 +31892,11 @@ public class SatelliteServer { case IMAGE_VERSION_ID: return isSetImageVersionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof deleteImageVersion_args) return this.equals((deleteImageVersion_args)that); return false; @@ -31186,6 +31905,8 @@ public class SatelliteServer { public boolean equals(deleteImageVersion_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -31210,19 +31931,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -31233,7 +31952,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -31243,7 +31962,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = java.lang.Boolean.compare(isSetImageVersionId(), other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } @@ -31256,21 +31975,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteImageVersion_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteImageVersion_args("); boolean first = true; sb.append("userToken:"); @@ -31305,7 +32025,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -31313,13 +32033,13 @@ public class SatelliteServer { } } - private static class deleteImageVersion_argsStandardSchemeFactory implements SchemeFactory { + private static class deleteImageVersion_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteImageVersion_argsStandardScheme getScheme() { return new deleteImageVersion_argsStandardScheme(); } } - private static class deleteImageVersion_argsStandardScheme extends StandardScheme { + private static class deleteImageVersion_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageVersion_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -31378,18 +32098,18 @@ public class SatelliteServer { } - private static class deleteImageVersion_argsTupleSchemeFactory implements SchemeFactory { + private static class deleteImageVersion_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteImageVersion_argsTupleScheme getScheme() { return new deleteImageVersion_argsTupleScheme(); } } - private static class deleteImageVersion_argsTupleScheme extends TupleScheme { + private static class deleteImageVersion_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -31407,8 +32127,8 @@ public class SatelliteServer { @Override 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(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -31420,6 +32140,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteImageVersion_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -31429,15 +32152,12 @@ public class SatelliteServer { 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 deleteImageVersion_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageVersion_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteImageVersion_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteImageVersion_resultTupleSchemeFactory(); - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -31445,10 +32165,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -31456,6 +32176,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // AUTH_ERROR @@ -31475,21 +32196,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -31498,22 +32220,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_result.class, metaDataMap); } @@ -31557,11 +32279,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public deleteImageVersion_result setAuthError(TAuthorizationException authError) { + public deleteImageVersion_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -31581,11 +32304,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public deleteImageVersion_result setNotFound(TNotFoundException notFound) { + public deleteImageVersion_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -31605,11 +32329,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public deleteImageVersion_result setServerError(TInvocationException serverError) { + public deleteImageVersion_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -31629,7 +32354,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case AUTH_ERROR: if (value == null) { @@ -31658,7 +32383,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AUTH_ERROR: return getAuthError(); @@ -31670,13 +32396,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -31687,13 +32413,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof deleteImageVersion_result) return this.equals((deleteImageVersion_result)that); return false; @@ -31702,6 +32426,8 @@ public class SatelliteServer { public boolean equals(deleteImageVersion_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); @@ -31735,24 +32461,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -31763,7 +32486,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -31773,7 +32496,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -31783,7 +32506,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -31796,21 +32519,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteImageVersion_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteImageVersion_result("); boolean first = true; sb.append("authError:"); @@ -31853,7 +32577,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -31861,13 +32585,13 @@ public class SatelliteServer { } } - private static class deleteImageVersion_resultStandardSchemeFactory implements SchemeFactory { + private static class deleteImageVersion_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteImageVersion_resultStandardScheme getScheme() { return new deleteImageVersion_resultStandardScheme(); } } - private static class deleteImageVersion_resultStandardScheme extends StandardScheme { + private static class deleteImageVersion_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageVersion_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -31942,18 +32666,18 @@ public class SatelliteServer { } - private static class deleteImageVersion_resultTupleSchemeFactory implements SchemeFactory { + private static class deleteImageVersion_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteImageVersion_resultTupleScheme getScheme() { return new deleteImageVersion_resultTupleScheme(); } } - private static class deleteImageVersion_resultTupleScheme extends TupleScheme { + private static class deleteImageVersion_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuthError()) { optionals.set(0); } @@ -31977,8 +32701,8 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -31997,6 +32721,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteImageBase_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -32005,24 +32732,21 @@ public class SatelliteServer { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteImageBase_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageBase_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteImageBase_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteImageBase_argsTupleSchemeFactory(); - public String userToken; // required - public String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.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_BASE_ID((short)2, "imageBaseId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -32030,6 +32754,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -32047,21 +32772,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -32070,20 +32796,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageBase_args.class, metaDataMap); } @@ -32091,8 +32817,8 @@ public class SatelliteServer { } public deleteImageBase_args( - String userToken, - String imageBaseId) + java.lang.String userToken, + java.lang.String imageBaseId) { this(); this.userToken = userToken; @@ -32121,11 +32847,12 @@ public class SatelliteServer { this.imageBaseId = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public deleteImageBase_args setUserToken(String userToken) { + public deleteImageBase_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -32145,11 +32872,12 @@ public class SatelliteServer { } } - public String getImageBaseId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageBaseId() { return this.imageBaseId; } - public deleteImageBase_args setImageBaseId(String imageBaseId) { + public deleteImageBase_args setImageBaseId(@org.apache.thrift.annotation.Nullable java.lang.String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -32169,13 +32897,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -32183,14 +32911,15 @@ public class SatelliteServer { if (value == null) { unsetImageBaseId(); } else { - setImageBaseId((String)value); + setImageBaseId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -32199,13 +32928,13 @@ public class SatelliteServer { return getImageBaseId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -32214,13 +32943,11 @@ public class SatelliteServer { case IMAGE_BASE_ID: return isSetImageBaseId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof deleteImageBase_args) return this.equals((deleteImageBase_args)that); return false; @@ -32229,6 +32956,8 @@ public class SatelliteServer { public boolean equals(deleteImageBase_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -32253,19 +32982,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -32276,7 +33003,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -32286,7 +33013,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = java.lang.Boolean.compare(isSetImageBaseId(), other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } @@ -32299,21 +33026,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteImageBase_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteImageBase_args("); boolean first = true; sb.append("userToken:"); @@ -32348,7 +33076,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -32356,13 +33084,13 @@ public class SatelliteServer { } } - private static class deleteImageBase_argsStandardSchemeFactory implements SchemeFactory { + private static class deleteImageBase_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteImageBase_argsStandardScheme getScheme() { return new deleteImageBase_argsStandardScheme(); } } - private static class deleteImageBase_argsStandardScheme extends StandardScheme { + private static class deleteImageBase_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageBase_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -32421,18 +33149,18 @@ public class SatelliteServer { } - private static class deleteImageBase_argsTupleSchemeFactory implements SchemeFactory { + private static class deleteImageBase_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteImageBase_argsTupleScheme getScheme() { return new deleteImageBase_argsTupleScheme(); } } - private static class deleteImageBase_argsTupleScheme extends TupleScheme { + private static class deleteImageBase_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -32450,8 +33178,8 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -32463,6 +33191,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteImageBase_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -32472,15 +33203,12 @@ public class SatelliteServer { 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 deleteImageBase_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageBase_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteImageBase_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteImageBase_resultTupleSchemeFactory(); - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -32488,10 +33216,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -32499,6 +33227,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // AUTH_ERROR @@ -32518,21 +33247,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -32541,22 +33271,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageBase_result.class, metaDataMap); } @@ -32600,11 +33330,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public deleteImageBase_result setAuthError(TAuthorizationException authError) { + public deleteImageBase_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -32624,11 +33355,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public deleteImageBase_result setNotFound(TNotFoundException notFound) { + public deleteImageBase_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -32648,11 +33380,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public deleteImageBase_result setServerError(TInvocationException serverError) { + public deleteImageBase_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -32672,7 +33405,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case AUTH_ERROR: if (value == null) { @@ -32701,7 +33434,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AUTH_ERROR: return getAuthError(); @@ -32713,13 +33447,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -32730,13 +33464,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof deleteImageBase_result) return this.equals((deleteImageBase_result)that); return false; @@ -32745,6 +33477,8 @@ public class SatelliteServer { public boolean equals(deleteImageBase_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); @@ -32778,24 +33512,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -32806,7 +33537,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -32816,7 +33547,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -32826,7 +33557,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -32839,21 +33570,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteImageBase_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteImageBase_result("); boolean first = true; sb.append("authError:"); @@ -32896,7 +33628,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -32904,13 +33636,13 @@ public class SatelliteServer { } } - private static class deleteImageBase_resultStandardSchemeFactory implements SchemeFactory { + private static class deleteImageBase_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteImageBase_resultStandardScheme getScheme() { return new deleteImageBase_resultStandardScheme(); } } - private static class deleteImageBase_resultStandardScheme extends StandardScheme { + private static class deleteImageBase_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageBase_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -32985,18 +33717,18 @@ public class SatelliteServer { } - private static class deleteImageBase_resultTupleSchemeFactory implements SchemeFactory { + private static class deleteImageBase_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteImageBase_resultTupleScheme getScheme() { return new deleteImageBase_resultTupleScheme(); } } - private static class deleteImageBase_resultTupleScheme extends TupleScheme { + private static class deleteImageBase_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuthError()) { optionals.set(0); } @@ -33020,8 +33752,8 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -33040,6 +33772,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class writeImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -33049,15 +33784,12 @@ public class SatelliteServer { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new writeImagePermissions_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new writeImagePermissions_argsTupleSchemeFactory(); - public String userToken; // required - public String imageBaseId; // required - public Map permissions; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.util.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 { @@ -33065,10 +33797,10 @@ public class SatelliteServer { IMAGE_BASE_ID((short)2, "imageBaseId"), PERMISSIONS((short)3, "permissions"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -33076,6 +33808,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -33095,21 +33828,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -33118,15 +33852,15 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, @@ -33135,7 +33869,7 @@ public class SatelliteServer { 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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_args.class, metaDataMap); } @@ -33143,9 +33877,9 @@ public class SatelliteServer { } public writeImagePermissions_args( - String userToken, - String imageBaseId, - Map permissions) + java.lang.String userToken, + java.lang.String imageBaseId, + java.util.Map permissions) { this(); this.userToken = userToken; @@ -33164,13 +33898,13 @@ public class SatelliteServer { this.imageBaseId = other.imageBaseId; } if (other.isSetPermissions()) { - Map __this__permissions = new HashMap(other.permissions.size()); - for (Map.Entry other_element : other.permissions.entrySet()) { + java.util.Map __this__permissions = new java.util.HashMap(other.permissions.size()); + for (java.util.Map.Entry other_element : other.permissions.entrySet()) { - String other_element_key = other_element.getKey(); + java.lang.String other_element_key = other_element.getKey(); ImagePermissions other_element_value = other_element.getValue(); - String __this__permissions_copy_key = other_element_key; + java.lang.String __this__permissions_copy_key = other_element_key; ImagePermissions __this__permissions_copy_value = new ImagePermissions(other_element_value); @@ -33191,11 +33925,12 @@ public class SatelliteServer { this.permissions = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public writeImagePermissions_args setUserToken(String userToken) { + public writeImagePermissions_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -33215,11 +33950,12 @@ public class SatelliteServer { } } - public String getImageBaseId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageBaseId() { return this.imageBaseId; } - public writeImagePermissions_args setImageBaseId(String imageBaseId) { + public writeImagePermissions_args setImageBaseId(@org.apache.thrift.annotation.Nullable java.lang.String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -33243,18 +33979,19 @@ public class SatelliteServer { return (this.permissions == null) ? 0 : this.permissions.size(); } - public void putToPermissions(String key, ImagePermissions val) { + public void putToPermissions(java.lang.String key, ImagePermissions val) { if (this.permissions == null) { - this.permissions = new HashMap(); + this.permissions = new java.util.HashMap(); } this.permissions.put(key, val); } - public Map getPermissions() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getPermissions() { return this.permissions; } - public writeImagePermissions_args setPermissions(Map permissions) { + public writeImagePermissions_args setPermissions(@org.apache.thrift.annotation.Nullable java.util.Map permissions) { this.permissions = permissions; return this; } @@ -33274,13 +34011,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -33288,7 +34025,7 @@ public class SatelliteServer { if (value == null) { unsetImageBaseId(); } else { - setImageBaseId((String)value); + setImageBaseId((java.lang.String)value); } break; @@ -33296,14 +34033,15 @@ public class SatelliteServer { if (value == null) { unsetPermissions(); } else { - setPermissions((Map)value); + setPermissions((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -33315,13 +34053,13 @@ public class SatelliteServer { return getPermissions(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -33332,13 +34070,11 @@ public class SatelliteServer { case PERMISSIONS: return isSetPermissions(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof writeImagePermissions_args) return this.equals((writeImagePermissions_args)that); return false; @@ -33347,6 +34083,8 @@ public class SatelliteServer { public boolean equals(writeImagePermissions_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -33380,24 +34118,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); - boolean present_permissions = true && (isSetPermissions()); - list.add(present_permissions); - if (present_permissions) - list.add(permissions); + hashCode = hashCode * 8191 + ((isSetPermissions()) ? 131071 : 524287); + if (isSetPermissions()) + hashCode = hashCode * 8191 + permissions.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -33408,7 +34143,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -33418,7 +34153,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = java.lang.Boolean.compare(isSetImageBaseId(), other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } @@ -33428,7 +34163,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPermissions()).compareTo(other.isSetPermissions()); + lastComparison = java.lang.Boolean.compare(isSetPermissions(), other.isSetPermissions()); if (lastComparison != 0) { return lastComparison; } @@ -33441,21 +34176,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("writeImagePermissions_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("writeImagePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -33498,7 +34234,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -33506,13 +34242,13 @@ public class SatelliteServer { } } - private static class writeImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + private static class writeImagePermissions_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public writeImagePermissions_argsStandardScheme getScheme() { return new writeImagePermissions_argsStandardScheme(); } } - private static class writeImagePermissions_argsStandardScheme extends StandardScheme { + private static class writeImagePermissions_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -33543,16 +34279,16 @@ public class SatelliteServer { case 3: // PERMISSIONS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map290 = iprot.readMapBegin(); - struct.permissions = new HashMap(2*_map290.size); - String _key291; - ImagePermissions _val292; - for (int _i293 = 0; _i293 < _map290.size; ++_i293) + org.apache.thrift.protocol.TMap _map370 = iprot.readMapBegin(); + struct.permissions = new java.util.HashMap(2*_map370.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key371; + @org.apache.thrift.annotation.Nullable ImagePermissions _val372; + for (int _i373 = 0; _i373 < _map370.size; ++_i373) { - _key291 = iprot.readString(); - _val292 = new ImagePermissions(); - _val292.read(iprot); - struct.permissions.put(_key291, _val292); + _key371 = iprot.readString(); + _val372 = new ImagePermissions(); + _val372.read(iprot); + struct.permissions.put(_key371, _val372); } iprot.readMapEnd(); } @@ -33590,10 +34326,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 _iter294 : struct.permissions.entrySet()) + for (java.util.Map.Entry _iter374 : struct.permissions.entrySet()) { - oprot.writeString(_iter294.getKey()); - _iter294.getValue().write(oprot); + oprot.writeString(_iter374.getKey()); + _iter374.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -33605,18 +34341,18 @@ public class SatelliteServer { } - private static class writeImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + private static class writeImagePermissions_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public writeImagePermissions_argsTupleScheme getScheme() { return new writeImagePermissions_argsTupleScheme(); } } - private static class writeImagePermissions_argsTupleScheme extends TupleScheme { + private static class writeImagePermissions_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -33636,10 +34372,10 @@ public class SatelliteServer { if (struct.isSetPermissions()) { { oprot.writeI32(struct.permissions.size()); - for (Map.Entry _iter295 : struct.permissions.entrySet()) + for (java.util.Map.Entry _iter375 : struct.permissions.entrySet()) { - oprot.writeString(_iter295.getKey()); - _iter295.getValue().write(oprot); + oprot.writeString(_iter375.getKey()); + _iter375.getValue().write(oprot); } } } @@ -33647,8 +34383,8 @@ public class SatelliteServer { @Override 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(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -33659,16 +34395,16 @@ public class SatelliteServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map296 = 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*_map296.size); - String _key297; - ImagePermissions _val298; - for (int _i299 = 0; _i299 < _map296.size; ++_i299) + org.apache.thrift.protocol.TMap _map376 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT); + struct.permissions = new java.util.HashMap(2*_map376.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key377; + @org.apache.thrift.annotation.Nullable ImagePermissions _val378; + for (int _i379 = 0; _i379 < _map376.size; ++_i379) { - _key297 = iprot.readString(); - _val298 = new ImagePermissions(); - _val298.read(iprot); - struct.permissions.put(_key297, _val298); + _key377 = iprot.readString(); + _val378 = new ImagePermissions(); + _val378.read(iprot); + struct.permissions.put(_key377, _val378); } } struct.setPermissionsIsSet(true); @@ -33676,6 +34412,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class writeImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -33685,15 +34424,12 @@ public class SatelliteServer { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new writeImagePermissions_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new writeImagePermissions_resultTupleSchemeFactory(); - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -33701,10 +34437,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -33712,6 +34448,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // AUTH_ERROR @@ -33731,21 +34468,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -33754,22 +34492,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_result.class, metaDataMap); } @@ -33813,11 +34551,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public writeImagePermissions_result setAuthError(TAuthorizationException authError) { + public writeImagePermissions_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -33837,11 +34576,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public writeImagePermissions_result setNotFound(TNotFoundException notFound) { + public writeImagePermissions_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -33861,11 +34601,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public writeImagePermissions_result setServerError(TInvocationException serverError) { + public writeImagePermissions_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -33885,7 +34626,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case AUTH_ERROR: if (value == null) { @@ -33914,7 +34655,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AUTH_ERROR: return getAuthError(); @@ -33926,13 +34668,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -33943,13 +34685,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof writeImagePermissions_result) return this.equals((writeImagePermissions_result)that); return false; @@ -33958,6 +34698,8 @@ public class SatelliteServer { public boolean equals(writeImagePermissions_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); @@ -33991,24 +34733,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -34019,7 +34758,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -34029,7 +34768,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -34039,7 +34778,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -34052,21 +34791,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("writeImagePermissions_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("writeImagePermissions_result("); boolean first = true; sb.append("authError:"); @@ -34109,7 +34849,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -34117,13 +34857,13 @@ public class SatelliteServer { } } - private static class writeImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + private static class writeImagePermissions_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public writeImagePermissions_resultStandardScheme getScheme() { return new writeImagePermissions_resultStandardScheme(); } } - private static class writeImagePermissions_resultStandardScheme extends StandardScheme { + private static class writeImagePermissions_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -34198,18 +34938,18 @@ public class SatelliteServer { } - private static class writeImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + private static class writeImagePermissions_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public writeImagePermissions_resultTupleScheme getScheme() { return new writeImagePermissions_resultTupleScheme(); } } - private static class writeImagePermissions_resultTupleScheme extends TupleScheme { + private static class writeImagePermissions_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuthError()) { optionals.set(0); } @@ -34233,8 +34973,8 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -34253,6 +34993,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -34261,24 +35004,21 @@ public class SatelliteServer { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getImagePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImagePermissions_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImagePermissions_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImagePermissions_argsTupleSchemeFactory(); - public String userToken; // required - public String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.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_BASE_ID((short)2, "imageBaseId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -34286,6 +35026,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -34303,21 +35044,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -34326,20 +35068,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_args.class, metaDataMap); } @@ -34347,8 +35089,8 @@ public class SatelliteServer { } public getImagePermissions_args( - String userToken, - String imageBaseId) + java.lang.String userToken, + java.lang.String imageBaseId) { this(); this.userToken = userToken; @@ -34377,11 +35119,12 @@ public class SatelliteServer { this.imageBaseId = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public getImagePermissions_args setUserToken(String userToken) { + public getImagePermissions_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -34401,11 +35144,12 @@ public class SatelliteServer { } } - public String getImageBaseId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageBaseId() { return this.imageBaseId; } - public getImagePermissions_args setImageBaseId(String imageBaseId) { + public getImagePermissions_args setImageBaseId(@org.apache.thrift.annotation.Nullable java.lang.String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -34425,13 +35169,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -34439,14 +35183,15 @@ public class SatelliteServer { if (value == null) { unsetImageBaseId(); } else { - setImageBaseId((String)value); + setImageBaseId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -34455,13 +35200,13 @@ public class SatelliteServer { return getImageBaseId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -34470,13 +35215,11 @@ public class SatelliteServer { case IMAGE_BASE_ID: return isSetImageBaseId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getImagePermissions_args) return this.equals((getImagePermissions_args)that); return false; @@ -34485,6 +35228,8 @@ public class SatelliteServer { public boolean equals(getImagePermissions_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -34509,19 +35254,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -34532,7 +35275,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -34542,7 +35285,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = java.lang.Boolean.compare(isSetImageBaseId(), other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } @@ -34555,21 +35298,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getImagePermissions_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getImagePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -34604,7 +35348,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -34612,13 +35356,13 @@ public class SatelliteServer { } } - private static class getImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + private static class getImagePermissions_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImagePermissions_argsStandardScheme getScheme() { return new getImagePermissions_argsStandardScheme(); } } - private static class getImagePermissions_argsStandardScheme extends StandardScheme { + private static class getImagePermissions_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -34677,18 +35421,18 @@ public class SatelliteServer { } - private static class getImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + private static class getImagePermissions_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImagePermissions_argsTupleScheme getScheme() { return new getImagePermissions_argsTupleScheme(); } } - private static class getImagePermissions_argsTupleScheme extends TupleScheme { + private static class getImagePermissions_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -34706,8 +35450,8 @@ public class SatelliteServer { @Override 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(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -34719,6 +35463,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -34729,16 +35476,13 @@ public class SatelliteServer { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImagePermissions_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImagePermissions_resultTupleSchemeFactory(); - public Map success; // required - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable java.util.Map success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -34747,10 +35491,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -34758,6 +35502,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -34779,21 +35524,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -34802,26 +35548,26 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_result.class, metaDataMap); } @@ -34829,7 +35575,7 @@ public class SatelliteServer { } public getImagePermissions_result( - Map success, + java.util.Map success, TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError) @@ -34846,13 +35592,13 @@ public class SatelliteServer { */ 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()) { + java.util.Map __this__success = new java.util.HashMap(other.success.size()); + for (java.util.Map.Entry other_element : other.success.entrySet()) { - String other_element_key = other_element.getKey(); + java.lang.String other_element_key = other_element.getKey(); ImagePermissions other_element_value = other_element.getValue(); - String __this__success_copy_key = other_element_key; + java.lang.String __this__success_copy_key = other_element_key; ImagePermissions __this__success_copy_value = new ImagePermissions(other_element_value); @@ -34887,18 +35633,19 @@ public class SatelliteServer { return (this.success == null) ? 0 : this.success.size(); } - public void putToSuccess(String key, ImagePermissions val) { + public void putToSuccess(java.lang.String key, ImagePermissions val) { if (this.success == null) { - this.success = new HashMap(); + this.success = new java.util.HashMap(); } this.success.put(key, val); } - public Map getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getSuccess() { return this.success; } - public getImagePermissions_result setSuccess(Map success) { + public getImagePermissions_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.Map success) { this.success = success; return this; } @@ -34918,11 +35665,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public getImagePermissions_result setAuthError(TAuthorizationException authError) { + public getImagePermissions_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -34942,11 +35690,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public getImagePermissions_result setNotFound(TNotFoundException notFound) { + public getImagePermissions_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -34966,11 +35715,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getImagePermissions_result setServerError(TInvocationException serverError) { + public getImagePermissions_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -34990,13 +35740,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Map)value); + setSuccess((java.util.Map)value); } break; @@ -35027,7 +35777,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -35042,13 +35793,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -35061,13 +35812,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getImagePermissions_result) return this.equals((getImagePermissions_result)that); return false; @@ -35076,6 +35825,8 @@ public class SatelliteServer { public boolean equals(getImagePermissions_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -35118,29 +35869,25 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -35151,7 +35898,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -35161,7 +35908,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -35171,7 +35918,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -35181,7 +35928,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -35194,21 +35941,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getImagePermissions_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getImagePermissions_result("); boolean first = true; sb.append("success:"); @@ -35259,7 +36007,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -35267,13 +36015,13 @@ public class SatelliteServer { } } - private static class getImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + private static class getImagePermissions_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImagePermissions_resultStandardScheme getScheme() { return new getImagePermissions_resultStandardScheme(); } } - private static class getImagePermissions_resultStandardScheme extends StandardScheme { + private static class getImagePermissions_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -35288,16 +36036,16 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map300 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map300.size); - String _key301; - ImagePermissions _val302; - for (int _i303 = 0; _i303 < _map300.size; ++_i303) + org.apache.thrift.protocol.TMap _map380 = iprot.readMapBegin(); + struct.success = new java.util.HashMap(2*_map380.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key381; + @org.apache.thrift.annotation.Nullable ImagePermissions _val382; + for (int _i383 = 0; _i383 < _map380.size; ++_i383) { - _key301 = iprot.readString(); - _val302 = new ImagePermissions(); - _val302.read(iprot); - struct.success.put(_key301, _val302); + _key381 = iprot.readString(); + _val382 = new ImagePermissions(); + _val382.read(iprot); + struct.success.put(_key381, _val382); } iprot.readMapEnd(); } @@ -35352,10 +36100,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 _iter304 : struct.success.entrySet()) + for (java.util.Map.Entry _iter384 : struct.success.entrySet()) { - oprot.writeString(_iter304.getKey()); - _iter304.getValue().write(oprot); + oprot.writeString(_iter384.getKey()); + _iter384.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -35382,18 +36130,18 @@ public class SatelliteServer { } - private static class getImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + private static class getImagePermissions_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImagePermissions_resultTupleScheme getScheme() { return new getImagePermissions_resultTupleScheme(); } } - private static class getImagePermissions_resultTupleScheme extends TupleScheme { + private static class getImagePermissions_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -35410,10 +36158,10 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter305 : struct.success.entrySet()) + for (java.util.Map.Entry _iter385 : struct.success.entrySet()) { - oprot.writeString(_iter305.getKey()); - _iter305.getValue().write(oprot); + oprot.writeString(_iter385.getKey()); + _iter385.getValue().write(oprot); } } } @@ -35430,20 +36178,20 @@ public class SatelliteServer { @Override 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(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map306 = 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*_map306.size); - String _key307; - ImagePermissions _val308; - for (int _i309 = 0; _i309 < _map306.size; ++_i309) + org.apache.thrift.protocol.TMap _map386 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.HashMap(2*_map386.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key387; + @org.apache.thrift.annotation.Nullable ImagePermissions _val388; + for (int _i389 = 0; _i389 < _map386.size; ++_i389) { - _key307 = iprot.readString(); - _val308 = new ImagePermissions(); - _val308.read(iprot); - struct.success.put(_key307, _val308); + _key387 = iprot.readString(); + _val388 = new ImagePermissions(); + _val388.read(iprot); + struct.success.put(_key387, _val388); } } struct.setSuccessIsSet(true); @@ -35466,6 +36214,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class setImageOwner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -35475,15 +36226,12 @@ public class SatelliteServer { 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 setImageOwner_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageOwner_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setImageOwner_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setImageOwner_argsTupleSchemeFactory(); - public String userToken; // required - public String imageBaseId; // required - public String newOwnerId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.lang.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 { @@ -35491,10 +36239,10 @@ public class SatelliteServer { IMAGE_BASE_ID((short)2, "imageBaseId"), NEW_OWNER_ID((short)3, "newOwnerId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -35502,6 +36250,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -35521,21 +36270,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -35544,22 +36294,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_args.class, metaDataMap); } @@ -35567,9 +36317,9 @@ public class SatelliteServer { } public setImageOwner_args( - String userToken, - String imageBaseId, - String newOwnerId) + java.lang.String userToken, + java.lang.String imageBaseId, + java.lang.String newOwnerId) { this(); this.userToken = userToken; @@ -35603,11 +36353,12 @@ public class SatelliteServer { this.newOwnerId = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public setImageOwner_args setUserToken(String userToken) { + public setImageOwner_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -35627,11 +36378,12 @@ public class SatelliteServer { } } - public String getImageBaseId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageBaseId() { return this.imageBaseId; } - public setImageOwner_args setImageBaseId(String imageBaseId) { + public setImageOwner_args setImageBaseId(@org.apache.thrift.annotation.Nullable java.lang.String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -35651,11 +36403,12 @@ public class SatelliteServer { } } - public String getNewOwnerId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getNewOwnerId() { return this.newOwnerId; } - public setImageOwner_args setNewOwnerId(String newOwnerId) { + public setImageOwner_args setNewOwnerId(@org.apache.thrift.annotation.Nullable java.lang.String newOwnerId) { this.newOwnerId = newOwnerId; return this; } @@ -35675,13 +36428,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -35689,7 +36442,7 @@ public class SatelliteServer { if (value == null) { unsetImageBaseId(); } else { - setImageBaseId((String)value); + setImageBaseId((java.lang.String)value); } break; @@ -35697,14 +36450,15 @@ public class SatelliteServer { if (value == null) { unsetNewOwnerId(); } else { - setNewOwnerId((String)value); + setNewOwnerId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -35716,13 +36470,13 @@ public class SatelliteServer { return getNewOwnerId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -35733,13 +36487,11 @@ public class SatelliteServer { case NEW_OWNER_ID: return isSetNewOwnerId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof setImageOwner_args) return this.equals((setImageOwner_args)that); return false; @@ -35748,6 +36500,8 @@ public class SatelliteServer { public boolean equals(setImageOwner_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -35781,24 +36535,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); - boolean present_newOwnerId = true && (isSetNewOwnerId()); - list.add(present_newOwnerId); - if (present_newOwnerId) - list.add(newOwnerId); + hashCode = hashCode * 8191 + ((isSetNewOwnerId()) ? 131071 : 524287); + if (isSetNewOwnerId()) + hashCode = hashCode * 8191 + newOwnerId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -35809,7 +36560,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -35819,7 +36570,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = java.lang.Boolean.compare(isSetImageBaseId(), other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } @@ -35829,7 +36580,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNewOwnerId()).compareTo(other.isSetNewOwnerId()); + lastComparison = java.lang.Boolean.compare(isSetNewOwnerId(), other.isSetNewOwnerId()); if (lastComparison != 0) { return lastComparison; } @@ -35842,21 +36593,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("setImageOwner_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("setImageOwner_args("); boolean first = true; sb.append("userToken:"); @@ -35899,7 +36651,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -35907,13 +36659,13 @@ public class SatelliteServer { } } - private static class setImageOwner_argsStandardSchemeFactory implements SchemeFactory { + private static class setImageOwner_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setImageOwner_argsStandardScheme getScheme() { return new setImageOwner_argsStandardScheme(); } } - private static class setImageOwner_argsStandardScheme extends StandardScheme { + private static class setImageOwner_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -35985,18 +36737,18 @@ public class SatelliteServer { } - private static class setImageOwner_argsTupleSchemeFactory implements SchemeFactory { + private static class setImageOwner_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setImageOwner_argsTupleScheme getScheme() { return new setImageOwner_argsTupleScheme(); } } - private static class setImageOwner_argsTupleScheme extends TupleScheme { + private static class setImageOwner_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -36020,8 +36772,8 @@ public class SatelliteServer { @Override 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(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -36037,6 +36789,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class setImageOwner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -36046,15 +36801,12 @@ public class SatelliteServer { 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 setImageOwner_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageOwner_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setImageOwner_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setImageOwner_resultTupleSchemeFactory(); - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -36062,10 +36814,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -36073,6 +36825,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // AUTH_ERROR @@ -36092,21 +36845,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -36115,22 +36869,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_result.class, metaDataMap); } @@ -36174,11 +36928,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public setImageOwner_result setAuthError(TAuthorizationException authError) { + public setImageOwner_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -36198,11 +36953,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public setImageOwner_result setNotFound(TNotFoundException notFound) { + public setImageOwner_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -36222,11 +36978,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public setImageOwner_result setServerError(TInvocationException serverError) { + public setImageOwner_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -36246,7 +37003,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case AUTH_ERROR: if (value == null) { @@ -36275,7 +37032,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AUTH_ERROR: return getAuthError(); @@ -36287,13 +37045,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -36304,13 +37062,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof setImageOwner_result) return this.equals((setImageOwner_result)that); return false; @@ -36319,6 +37075,8 @@ public class SatelliteServer { public boolean equals(setImageOwner_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); @@ -36352,24 +37110,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -36380,7 +37135,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -36390,7 +37145,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -36400,7 +37155,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -36413,21 +37168,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("setImageOwner_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("setImageOwner_result("); boolean first = true; sb.append("authError:"); @@ -36470,7 +37226,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -36478,13 +37234,13 @@ public class SatelliteServer { } } - private static class setImageOwner_resultStandardSchemeFactory implements SchemeFactory { + private static class setImageOwner_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setImageOwner_resultStandardScheme getScheme() { return new setImageOwner_resultStandardScheme(); } } - private static class setImageOwner_resultStandardScheme extends StandardScheme { + private static class setImageOwner_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -36559,18 +37315,18 @@ public class SatelliteServer { } - private static class setImageOwner_resultTupleSchemeFactory implements SchemeFactory { + private static class setImageOwner_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setImageOwner_resultTupleScheme getScheme() { return new setImageOwner_resultTupleScheme(); } } - private static class setImageOwner_resultTupleScheme extends TupleScheme { + private static class setImageOwner_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuthError()) { optionals.set(0); } @@ -36594,8 +37350,8 @@ public class SatelliteServer { @Override 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(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -36614,6 +37370,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class setImageVersionExpiry_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -36623,14 +37382,11 @@ public class SatelliteServer { 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new setImageVersionExpiry_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageVersionExpiry_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setImageVersionExpiry_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setImageVersionExpiry_argsTupleSchemeFactory(); - public String userToken; // required - public String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageBaseId; // required public long expireTime; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -36639,10 +37395,10 @@ public class SatelliteServer { IMAGE_BASE_ID((short)2, "imageBaseId"), EXPIRE_TIME((short)3, "expireTime"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -36650,6 +37406,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -36669,21 +37426,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -36692,7 +37450,7 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -36700,16 +37458,16 @@ 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; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionExpiry_args.class, metaDataMap); } @@ -36717,8 +37475,8 @@ public class SatelliteServer { } public setImageVersionExpiry_args( - String userToken, - String imageBaseId, + java.lang.String userToken, + java.lang.String imageBaseId, long expireTime) { this(); @@ -36754,11 +37512,12 @@ public class SatelliteServer { this.expireTime = 0; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public setImageVersionExpiry_args setUserToken(String userToken) { + public setImageVersionExpiry_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -36778,11 +37537,12 @@ public class SatelliteServer { } } - public String getImageBaseId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageBaseId() { return this.imageBaseId; } - public setImageVersionExpiry_args setImageBaseId(String imageBaseId) { + public setImageVersionExpiry_args setImageBaseId(@org.apache.thrift.annotation.Nullable java.lang.String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -36813,25 +37573,25 @@ public class SatelliteServer { } public void unsetExpireTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __EXPIRETIME_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __EXPIRETIME_ISSET_ID); } /** Returns true if field expireTime is set (has been assigned a value) and false otherwise */ public boolean isSetExpireTime() { - return EncodingUtils.testBit(__isset_bitfield, __EXPIRETIME_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EXPIRETIME_ISSET_ID); } public void setExpireTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __EXPIRETIME_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __EXPIRETIME_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -36839,7 +37599,7 @@ public class SatelliteServer { if (value == null) { unsetImageBaseId(); } else { - setImageBaseId((String)value); + setImageBaseId((java.lang.String)value); } break; @@ -36847,14 +37607,15 @@ public class SatelliteServer { if (value == null) { unsetExpireTime(); } else { - setExpireTime((Long)value); + setExpireTime((java.lang.Long)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -36866,13 +37627,13 @@ public class SatelliteServer { return getExpireTime(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -36883,13 +37644,11 @@ public class SatelliteServer { case EXPIRE_TIME: return isSetExpireTime(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof setImageVersionExpiry_args) return this.equals((setImageVersionExpiry_args)that); return false; @@ -36898,6 +37657,8 @@ public class SatelliteServer { public boolean equals(setImageVersionExpiry_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -36931,24 +37692,19 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); - boolean present_expireTime = true; - list.add(present_expireTime); - if (present_expireTime) - list.add(expireTime); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(expireTime); - return list.hashCode(); + return hashCode; } @Override @@ -36959,7 +37715,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -36969,7 +37725,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = java.lang.Boolean.compare(isSetImageBaseId(), other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } @@ -36979,7 +37735,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExpireTime()).compareTo(other.isSetExpireTime()); + lastComparison = java.lang.Boolean.compare(isSetExpireTime(), other.isSetExpireTime()); if (lastComparison != 0) { return lastComparison; } @@ -36992,21 +37748,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("setImageVersionExpiry_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("setImageVersionExpiry_args("); boolean first = true; sb.append("userToken:"); @@ -37045,7 +37802,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -37055,13 +37812,13 @@ public class SatelliteServer { } } - private static class setImageVersionExpiry_argsStandardSchemeFactory implements SchemeFactory { + private static class setImageVersionExpiry_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setImageVersionExpiry_argsStandardScheme getScheme() { return new setImageVersionExpiry_argsStandardScheme(); } } - private static class setImageVersionExpiry_argsStandardScheme extends StandardScheme { + private static class setImageVersionExpiry_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -37131,18 +37888,18 @@ public class SatelliteServer { } - private static class setImageVersionExpiry_argsTupleSchemeFactory implements SchemeFactory { + private static class setImageVersionExpiry_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setImageVersionExpiry_argsTupleScheme getScheme() { return new setImageVersionExpiry_argsTupleScheme(); } } - private static class setImageVersionExpiry_argsTupleScheme extends TupleScheme { + private static class setImageVersionExpiry_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -37166,8 +37923,8 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -37183,6 +37940,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class setImageVersionExpiry_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -37193,16 +37953,13 @@ public class SatelliteServer { 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()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setImageVersionExpiry_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setImageVersionExpiry_resultTupleSchemeFactory(); - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required - public TInvalidDateParam dateError; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -37211,10 +37968,10 @@ public class SatelliteServer { SERVER_ERROR((short)3, "serverError"), DATE_ERROR((short)4, "dateError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -37222,6 +37979,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // AUTH_ERROR @@ -37243,21 +38001,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -37266,24 +38025,24 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidDateParam.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionExpiry_result.class, metaDataMap); } @@ -37333,11 +38092,12 @@ public class SatelliteServer { this.dateError = null; } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public setImageVersionExpiry_result setAuthError(TAuthorizationException authError) { + public setImageVersionExpiry_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -37357,11 +38117,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public setImageVersionExpiry_result setNotFound(TNotFoundException notFound) { + public setImageVersionExpiry_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -37381,11 +38142,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public setImageVersionExpiry_result setServerError(TInvocationException serverError) { + public setImageVersionExpiry_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -37405,11 +38167,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvalidDateParam getDateError() { return this.dateError; } - public setImageVersionExpiry_result setDateError(TInvalidDateParam dateError) { + public setImageVersionExpiry_result setDateError(@org.apache.thrift.annotation.Nullable TInvalidDateParam dateError) { this.dateError = dateError; return this; } @@ -37429,7 +38192,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case AUTH_ERROR: if (value == null) { @@ -37466,7 +38229,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AUTH_ERROR: return getAuthError(); @@ -37481,13 +38245,13 @@ public class SatelliteServer { return getDateError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -37500,13 +38264,11 @@ public class SatelliteServer { case DATE_ERROR: return isSetDateError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof setImageVersionExpiry_result) return this.equals((setImageVersionExpiry_result)that); return false; @@ -37515,6 +38277,8 @@ public class SatelliteServer { public boolean equals(setImageVersionExpiry_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); @@ -37557,29 +38321,25 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - boolean present_dateError = true && (isSetDateError()); - list.add(present_dateError); - if (present_dateError) - list.add(dateError); + hashCode = hashCode * 8191 + ((isSetDateError()) ? 131071 : 524287); + if (isSetDateError()) + hashCode = hashCode * 8191 + dateError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -37590,7 +38350,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -37600,7 +38360,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -37610,7 +38370,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -37620,7 +38380,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDateError()).compareTo(other.isSetDateError()); + lastComparison = java.lang.Boolean.compare(isSetDateError(), other.isSetDateError()); if (lastComparison != 0) { return lastComparison; } @@ -37633,21 +38393,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("setImageVersionExpiry_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("setImageVersionExpiry_result("); boolean first = true; sb.append("authError:"); @@ -37698,7 +38459,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -37706,13 +38467,13 @@ public class SatelliteServer { } } - private static class setImageVersionExpiry_resultStandardSchemeFactory implements SchemeFactory { + private static class setImageVersionExpiry_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setImageVersionExpiry_resultStandardScheme getScheme() { return new setImageVersionExpiry_resultStandardScheme(); } } - private static class setImageVersionExpiry_resultStandardScheme extends StandardScheme { + private static class setImageVersionExpiry_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -37801,18 +38562,18 @@ public class SatelliteServer { } - private static class setImageVersionExpiry_resultTupleSchemeFactory implements SchemeFactory { + private static class setImageVersionExpiry_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setImageVersionExpiry_resultTupleScheme getScheme() { return new setImageVersionExpiry_resultTupleScheme(); } } - private static class setImageVersionExpiry_resultTupleScheme extends TupleScheme { + private static class setImageVersionExpiry_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuthError()) { optionals.set(0); } @@ -37842,8 +38603,8 @@ public class SatelliteServer { @Override 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(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -37867,6 +38628,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getImageVersionVirtConfig_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -37875,24 +38639,21 @@ public class SatelliteServer { 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 getImageVersionVirtConfig_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageVersionVirtConfig_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImageVersionVirtConfig_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImageVersionVirtConfig_argsTupleSchemeFactory(); - public String userToken; // required - public String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.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"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -37900,6 +38661,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -37917,21 +38679,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -37940,20 +38703,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageVersionVirtConfig_args.class, metaDataMap); } @@ -37961,8 +38724,8 @@ public class SatelliteServer { } public getImageVersionVirtConfig_args( - String userToken, - String imageVersionId) + java.lang.String userToken, + java.lang.String imageVersionId) { this(); this.userToken = userToken; @@ -37991,11 +38754,12 @@ public class SatelliteServer { this.imageVersionId = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public getImageVersionVirtConfig_args setUserToken(String userToken) { + public getImageVersionVirtConfig_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -38015,11 +38779,12 @@ public class SatelliteServer { } } - public String getImageVersionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageVersionId() { return this.imageVersionId; } - public getImageVersionVirtConfig_args setImageVersionId(String imageVersionId) { + public getImageVersionVirtConfig_args setImageVersionId(@org.apache.thrift.annotation.Nullable java.lang.String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -38039,13 +38804,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -38053,14 +38818,15 @@ public class SatelliteServer { if (value == null) { unsetImageVersionId(); } else { - setImageVersionId((String)value); + setImageVersionId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -38069,13 +38835,13 @@ public class SatelliteServer { return getImageVersionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -38084,13 +38850,11 @@ public class SatelliteServer { case IMAGE_VERSION_ID: return isSetImageVersionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getImageVersionVirtConfig_args) return this.equals((getImageVersionVirtConfig_args)that); return false; @@ -38099,6 +38863,8 @@ public class SatelliteServer { public boolean equals(getImageVersionVirtConfig_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -38123,19 +38889,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -38146,7 +38910,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -38156,7 +38920,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = java.lang.Boolean.compare(isSetImageVersionId(), other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } @@ -38169,21 +38933,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getImageVersionVirtConfig_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getImageVersionVirtConfig_args("); boolean first = true; sb.append("userToken:"); @@ -38218,7 +38983,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -38226,13 +38991,13 @@ public class SatelliteServer { } } - private static class getImageVersionVirtConfig_argsStandardSchemeFactory implements SchemeFactory { + private static class getImageVersionVirtConfig_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageVersionVirtConfig_argsStandardScheme getScheme() { return new getImageVersionVirtConfig_argsStandardScheme(); } } - private static class getImageVersionVirtConfig_argsStandardScheme extends StandardScheme { + private static class getImageVersionVirtConfig_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getImageVersionVirtConfig_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -38291,18 +39056,18 @@ public class SatelliteServer { } - private static class getImageVersionVirtConfig_argsTupleSchemeFactory implements SchemeFactory { + private static class getImageVersionVirtConfig_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageVersionVirtConfig_argsTupleScheme getScheme() { return new getImageVersionVirtConfig_argsTupleScheme(); } } - private static class getImageVersionVirtConfig_argsTupleScheme extends TupleScheme { + private static class getImageVersionVirtConfig_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getImageVersionVirtConfig_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -38320,8 +39085,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getImageVersionVirtConfig_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -38333,6 +39098,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getImageVersionVirtConfig_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -38343,16 +39111,13 @@ public class SatelliteServer { 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 getImageVersionVirtConfig_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageVersionVirtConfig_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getImageVersionVirtConfig_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getImageVersionVirtConfig_resultTupleSchemeFactory(); - public ByteBuffer success; // required - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -38361,10 +39126,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -38372,6 +39137,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -38393,21 +39159,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -38416,24 +39183,24 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageVersionVirtConfig_result.class, metaDataMap); } @@ -38441,7 +39208,7 @@ public class SatelliteServer { } public getImageVersionVirtConfig_result( - ByteBuffer success, + java.nio.ByteBuffer success, TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError) @@ -38488,16 +39255,16 @@ public class SatelliteServer { return success == null ? null : success.array(); } - public ByteBuffer bufferForSuccess() { + public java.nio.ByteBuffer bufferForSuccess() { return org.apache.thrift.TBaseHelper.copyBinary(success); } public getImageVersionVirtConfig_result setSuccess(byte[] success) { - this.success = success == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(success, success.length)); + this.success = success == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(success.clone()); return this; } - public getImageVersionVirtConfig_result setSuccess(ByteBuffer success) { + public getImageVersionVirtConfig_result setSuccess(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer success) { this.success = org.apache.thrift.TBaseHelper.copyBinary(success); return this; } @@ -38517,11 +39284,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public getImageVersionVirtConfig_result setAuthError(TAuthorizationException authError) { + public getImageVersionVirtConfig_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -38541,11 +39309,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public getImageVersionVirtConfig_result setNotFound(TNotFoundException notFound) { + public getImageVersionVirtConfig_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -38565,11 +39334,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getImageVersionVirtConfig_result setServerError(TInvocationException serverError) { + public getImageVersionVirtConfig_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -38589,13 +39359,17 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((ByteBuffer)value); + if (value instanceof byte[]) { + setSuccess((byte[])value); + } else { + setSuccess((java.nio.ByteBuffer)value); + } } break; @@ -38626,7 +39400,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -38641,13 +39416,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -38660,13 +39435,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getImageVersionVirtConfig_result) return this.equals((getImageVersionVirtConfig_result)that); return false; @@ -38675,6 +39448,8 @@ public class SatelliteServer { public boolean equals(getImageVersionVirtConfig_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -38717,29 +39492,25 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -38750,7 +39521,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -38760,7 +39531,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -38770,7 +39541,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -38780,7 +39551,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -38793,21 +39564,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getImageVersionVirtConfig_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getImageVersionVirtConfig_result("); boolean first = true; sb.append("success:"); @@ -38858,7 +39630,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -38866,13 +39638,13 @@ public class SatelliteServer { } } - private static class getImageVersionVirtConfig_resultStandardSchemeFactory implements SchemeFactory { + private static class getImageVersionVirtConfig_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageVersionVirtConfig_resultStandardScheme getScheme() { return new getImageVersionVirtConfig_resultStandardScheme(); } } - private static class getImageVersionVirtConfig_resultStandardScheme extends StandardScheme { + private static class getImageVersionVirtConfig_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getImageVersionVirtConfig_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -38960,18 +39732,18 @@ public class SatelliteServer { } - private static class getImageVersionVirtConfig_resultTupleSchemeFactory implements SchemeFactory { + private static class getImageVersionVirtConfig_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getImageVersionVirtConfig_resultTupleScheme getScheme() { return new getImageVersionVirtConfig_resultTupleScheme(); } } - private static class getImageVersionVirtConfig_resultTupleScheme extends TupleScheme { + private static class getImageVersionVirtConfig_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getImageVersionVirtConfig_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -39001,8 +39773,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getImageVersionVirtConfig_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = iprot.readBinary(); struct.setSuccessIsSet(true); @@ -39025,6 +39797,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class setImageVersionVirtConfig_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -39034,15 +39809,12 @@ public class SatelliteServer { 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 META_FIELD_DESC = new org.apache.thrift.protocol.TField("meta", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new setImageVersionVirtConfig_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageVersionVirtConfig_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setImageVersionVirtConfig_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setImageVersionVirtConfig_argsTupleSchemeFactory(); - public String userToken; // required - public String imageVersionId; // required - public ByteBuffer meta; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer meta; // 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 { @@ -39050,10 +39822,10 @@ public class SatelliteServer { IMAGE_VERSION_ID((short)2, "imageVersionId"), META((short)3, "meta"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -39061,6 +39833,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -39080,21 +39853,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -39103,22 +39877,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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"))); tmpMap.put(_Fields.META, new org.apache.thrift.meta_data.FieldMetaData("meta", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionVirtConfig_args.class, metaDataMap); } @@ -39126,9 +39900,9 @@ public class SatelliteServer { } public setImageVersionVirtConfig_args( - String userToken, - String imageVersionId, - ByteBuffer meta) + java.lang.String userToken, + java.lang.String imageVersionId, + java.nio.ByteBuffer meta) { this(); this.userToken = userToken; @@ -39162,11 +39936,12 @@ public class SatelliteServer { this.meta = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public setImageVersionVirtConfig_args setUserToken(String userToken) { + public setImageVersionVirtConfig_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -39186,11 +39961,12 @@ public class SatelliteServer { } } - public String getImageVersionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageVersionId() { return this.imageVersionId; } - public setImageVersionVirtConfig_args setImageVersionId(String imageVersionId) { + public setImageVersionVirtConfig_args setImageVersionId(@org.apache.thrift.annotation.Nullable java.lang.String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -39215,16 +39991,16 @@ public class SatelliteServer { return meta == null ? null : meta.array(); } - public ByteBuffer bufferForMeta() { + public java.nio.ByteBuffer bufferForMeta() { return org.apache.thrift.TBaseHelper.copyBinary(meta); } public setImageVersionVirtConfig_args setMeta(byte[] meta) { - this.meta = meta == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(meta, meta.length)); + this.meta = meta == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(meta.clone()); return this; } - public setImageVersionVirtConfig_args setMeta(ByteBuffer meta) { + public setImageVersionVirtConfig_args setMeta(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer meta) { this.meta = org.apache.thrift.TBaseHelper.copyBinary(meta); return this; } @@ -39244,13 +40020,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -39258,7 +40034,7 @@ public class SatelliteServer { if (value == null) { unsetImageVersionId(); } else { - setImageVersionId((String)value); + setImageVersionId((java.lang.String)value); } break; @@ -39266,14 +40042,19 @@ public class SatelliteServer { if (value == null) { unsetMeta(); } else { - setMeta((ByteBuffer)value); + if (value instanceof byte[]) { + setMeta((byte[])value); + } else { + setMeta((java.nio.ByteBuffer)value); + } } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -39285,13 +40066,13 @@ public class SatelliteServer { return getMeta(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -39302,13 +40083,11 @@ public class SatelliteServer { case META: return isSetMeta(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof setImageVersionVirtConfig_args) return this.equals((setImageVersionVirtConfig_args)that); return false; @@ -39317,6 +40096,8 @@ public class SatelliteServer { public boolean equals(setImageVersionVirtConfig_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -39350,24 +40131,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); - boolean present_meta = true && (isSetMeta()); - list.add(present_meta); - if (present_meta) - list.add(meta); + hashCode = hashCode * 8191 + ((isSetMeta()) ? 131071 : 524287); + if (isSetMeta()) + hashCode = hashCode * 8191 + meta.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -39378,7 +40156,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -39388,7 +40166,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = java.lang.Boolean.compare(isSetImageVersionId(), other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } @@ -39398,7 +40176,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMeta()).compareTo(other.isSetMeta()); + lastComparison = java.lang.Boolean.compare(isSetMeta(), other.isSetMeta()); if (lastComparison != 0) { return lastComparison; } @@ -39411,21 +40189,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("setImageVersionVirtConfig_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("setImageVersionVirtConfig_args("); boolean first = true; sb.append("userToken:"); @@ -39468,7 +40247,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -39476,13 +40255,13 @@ public class SatelliteServer { } } - private static class setImageVersionVirtConfig_argsStandardSchemeFactory implements SchemeFactory { + private static class setImageVersionVirtConfig_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setImageVersionVirtConfig_argsStandardScheme getScheme() { return new setImageVersionVirtConfig_argsStandardScheme(); } } - private static class setImageVersionVirtConfig_argsStandardScheme extends StandardScheme { + private static class setImageVersionVirtConfig_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionVirtConfig_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -39554,18 +40333,18 @@ public class SatelliteServer { } - private static class setImageVersionVirtConfig_argsTupleSchemeFactory implements SchemeFactory { + private static class setImageVersionVirtConfig_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setImageVersionVirtConfig_argsTupleScheme getScheme() { return new setImageVersionVirtConfig_argsTupleScheme(); } } - private static class setImageVersionVirtConfig_argsTupleScheme extends TupleScheme { + private static class setImageVersionVirtConfig_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setImageVersionVirtConfig_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -39589,8 +40368,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, setImageVersionVirtConfig_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -39606,6 +40385,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class setImageVersionVirtConfig_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -39615,15 +40397,12 @@ public class SatelliteServer { 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 setImageVersionVirtConfig_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageVersionVirtConfig_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setImageVersionVirtConfig_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setImageVersionVirtConfig_resultTupleSchemeFactory(); - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -39631,10 +40410,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -39642,6 +40421,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // AUTH_ERROR @@ -39661,21 +40441,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -39684,22 +40465,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionVirtConfig_result.class, metaDataMap); } @@ -39743,11 +40524,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public setImageVersionVirtConfig_result setAuthError(TAuthorizationException authError) { + public setImageVersionVirtConfig_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -39767,11 +40549,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public setImageVersionVirtConfig_result setNotFound(TNotFoundException notFound) { + public setImageVersionVirtConfig_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -39791,11 +40574,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public setImageVersionVirtConfig_result setServerError(TInvocationException serverError) { + public setImageVersionVirtConfig_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -39815,7 +40599,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case AUTH_ERROR: if (value == null) { @@ -39844,7 +40628,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AUTH_ERROR: return getAuthError(); @@ -39856,13 +40641,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -39873,13 +40658,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof setImageVersionVirtConfig_result) return this.equals((setImageVersionVirtConfig_result)that); return false; @@ -39888,6 +40671,8 @@ public class SatelliteServer { public boolean equals(setImageVersionVirtConfig_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); @@ -39921,24 +40706,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -39949,7 +40731,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -39959,7 +40741,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -39969,7 +40751,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -39982,21 +40764,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("setImageVersionVirtConfig_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("setImageVersionVirtConfig_result("); boolean first = true; sb.append("authError:"); @@ -40039,7 +40822,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -40047,13 +40830,13 @@ public class SatelliteServer { } } - private static class setImageVersionVirtConfig_resultStandardSchemeFactory implements SchemeFactory { + private static class setImageVersionVirtConfig_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setImageVersionVirtConfig_resultStandardScheme getScheme() { return new setImageVersionVirtConfig_resultStandardScheme(); } } - private static class setImageVersionVirtConfig_resultStandardScheme extends StandardScheme { + private static class setImageVersionVirtConfig_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionVirtConfig_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -40128,18 +40911,18 @@ public class SatelliteServer { } - private static class setImageVersionVirtConfig_resultTupleSchemeFactory implements SchemeFactory { + private static class setImageVersionVirtConfig_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setImageVersionVirtConfig_resultTupleScheme getScheme() { return new setImageVersionVirtConfig_resultTupleScheme(); } } - private static class setImageVersionVirtConfig_resultTupleScheme extends TupleScheme { + private static class setImageVersionVirtConfig_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setImageVersionVirtConfig_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuthError()) { optionals.set(0); } @@ -40163,8 +40946,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, setImageVersionVirtConfig_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -40183,6 +40966,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class requestImageReplication_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -40191,24 +40977,21 @@ public class SatelliteServer { 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 requestImageReplication_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new requestImageReplication_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new requestImageReplication_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new requestImageReplication_argsTupleSchemeFactory(); - public String userToken; // required - public String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.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"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -40216,6 +40999,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -40233,21 +41017,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -40256,20 +41041,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestImageReplication_args.class, metaDataMap); } @@ -40277,8 +41062,8 @@ public class SatelliteServer { } public requestImageReplication_args( - String userToken, - String imageVersionId) + java.lang.String userToken, + java.lang.String imageVersionId) { this(); this.userToken = userToken; @@ -40307,11 +41092,12 @@ public class SatelliteServer { this.imageVersionId = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public requestImageReplication_args setUserToken(String userToken) { + public requestImageReplication_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -40331,11 +41117,12 @@ public class SatelliteServer { } } - public String getImageVersionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageVersionId() { return this.imageVersionId; } - public requestImageReplication_args setImageVersionId(String imageVersionId) { + public requestImageReplication_args setImageVersionId(@org.apache.thrift.annotation.Nullable java.lang.String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -40355,13 +41142,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -40369,14 +41156,15 @@ public class SatelliteServer { if (value == null) { unsetImageVersionId(); } else { - setImageVersionId((String)value); + setImageVersionId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -40385,13 +41173,13 @@ public class SatelliteServer { return getImageVersionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -40400,13 +41188,11 @@ public class SatelliteServer { case IMAGE_VERSION_ID: return isSetImageVersionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof requestImageReplication_args) return this.equals((requestImageReplication_args)that); return false; @@ -40415,6 +41201,8 @@ public class SatelliteServer { public boolean equals(requestImageReplication_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -40439,19 +41227,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -40462,7 +41248,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -40472,7 +41258,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = java.lang.Boolean.compare(isSetImageVersionId(), other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } @@ -40485,21 +41271,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("requestImageReplication_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("requestImageReplication_args("); boolean first = true; sb.append("userToken:"); @@ -40534,7 +41321,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -40542,13 +41329,13 @@ public class SatelliteServer { } } - private static class requestImageReplication_argsStandardSchemeFactory implements SchemeFactory { + private static class requestImageReplication_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public requestImageReplication_argsStandardScheme getScheme() { return new requestImageReplication_argsStandardScheme(); } } - private static class requestImageReplication_argsStandardScheme extends StandardScheme { + private static class requestImageReplication_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageReplication_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -40607,18 +41394,18 @@ public class SatelliteServer { } - private static class requestImageReplication_argsTupleSchemeFactory implements SchemeFactory { + private static class requestImageReplication_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public requestImageReplication_argsTupleScheme getScheme() { return new requestImageReplication_argsTupleScheme(); } } - private static class requestImageReplication_argsTupleScheme extends TupleScheme { + private static class requestImageReplication_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -40636,8 +41423,8 @@ public class SatelliteServer { @Override 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(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -40649,6 +41436,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class requestImageReplication_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -40659,16 +41449,13 @@ public class SatelliteServer { 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 requestImageReplication_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new requestImageReplication_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new requestImageReplication_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new requestImageReplication_resultTupleSchemeFactory(); - public String success; // required - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable java.lang.String success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -40677,10 +41464,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -40688,6 +41475,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -40709,21 +41497,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -40732,24 +41521,24 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestImageReplication_result.class, metaDataMap); } @@ -40757,7 +41546,7 @@ public class SatelliteServer { } public requestImageReplication_result( - String success, + java.lang.String success, TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError) @@ -40799,11 +41588,12 @@ public class SatelliteServer { this.serverError = null; } - public String getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getSuccess() { return this.success; } - public requestImageReplication_result setSuccess(String success) { + public requestImageReplication_result setSuccess(@org.apache.thrift.annotation.Nullable java.lang.String success) { this.success = success; return this; } @@ -40823,11 +41613,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public requestImageReplication_result setAuthError(TAuthorizationException authError) { + public requestImageReplication_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -40847,11 +41638,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public requestImageReplication_result setNotFound(TNotFoundException notFound) { + public requestImageReplication_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -40871,11 +41663,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public requestImageReplication_result setServerError(TInvocationException serverError) { + public requestImageReplication_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -40895,13 +41688,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((String)value); + setSuccess((java.lang.String)value); } break; @@ -40932,7 +41725,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -40947,13 +41741,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -40966,13 +41760,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof requestImageReplication_result) return this.equals((requestImageReplication_result)that); return false; @@ -40981,6 +41773,8 @@ public class SatelliteServer { public boolean equals(requestImageReplication_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -41023,29 +41817,25 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -41056,7 +41846,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -41066,7 +41856,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -41076,7 +41866,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -41086,7 +41876,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -41099,21 +41889,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("requestImageReplication_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("requestImageReplication_result("); boolean first = true; sb.append("success:"); @@ -41164,7 +41955,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -41172,13 +41963,13 @@ public class SatelliteServer { } } - private static class requestImageReplication_resultStandardSchemeFactory implements SchemeFactory { + private static class requestImageReplication_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public requestImageReplication_resultStandardScheme getScheme() { return new requestImageReplication_resultStandardScheme(); } } - private static class requestImageReplication_resultStandardScheme extends StandardScheme { + private static class requestImageReplication_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageReplication_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -41266,18 +42057,18 @@ public class SatelliteServer { } - private static class requestImageReplication_resultTupleSchemeFactory implements SchemeFactory { + private static class requestImageReplication_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public requestImageReplication_resultTupleScheme getScheme() { return new requestImageReplication_resultTupleScheme(); } } - private static class requestImageReplication_resultTupleScheme extends TupleScheme { + private static class requestImageReplication_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override 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(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -41307,8 +42098,8 @@ public class SatelliteServer { @Override 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); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); @@ -41331,6 +42122,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class publishImageVersion_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -41339,24 +42133,21 @@ public class SatelliteServer { 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 publishImageVersion_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new publishImageVersion_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new publishImageVersion_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new publishImageVersion_argsTupleSchemeFactory(); - public String userToken; // required - public String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.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"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -41364,6 +42155,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -41381,21 +42173,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -41404,20 +42197,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(publishImageVersion_args.class, metaDataMap); } @@ -41425,8 +42218,8 @@ public class SatelliteServer { } public publishImageVersion_args( - String userToken, - String imageVersionId) + java.lang.String userToken, + java.lang.String imageVersionId) { this(); this.userToken = userToken; @@ -41455,11 +42248,12 @@ public class SatelliteServer { this.imageVersionId = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public publishImageVersion_args setUserToken(String userToken) { + public publishImageVersion_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -41479,11 +42273,12 @@ public class SatelliteServer { } } - public String getImageVersionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageVersionId() { return this.imageVersionId; } - public publishImageVersion_args setImageVersionId(String imageVersionId) { + public publishImageVersion_args setImageVersionId(@org.apache.thrift.annotation.Nullable java.lang.String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -41503,13 +42298,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -41517,14 +42312,15 @@ public class SatelliteServer { if (value == null) { unsetImageVersionId(); } else { - setImageVersionId((String)value); + setImageVersionId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -41533,13 +42329,13 @@ public class SatelliteServer { return getImageVersionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -41548,13 +42344,11 @@ public class SatelliteServer { case IMAGE_VERSION_ID: return isSetImageVersionId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof publishImageVersion_args) return this.equals((publishImageVersion_args)that); return false; @@ -41563,6 +42357,8 @@ public class SatelliteServer { public boolean equals(publishImageVersion_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -41587,19 +42383,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -41610,7 +42404,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -41620,7 +42414,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = java.lang.Boolean.compare(isSetImageVersionId(), other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } @@ -41633,21 +42427,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("publishImageVersion_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("publishImageVersion_args("); boolean first = true; sb.append("userToken:"); @@ -41682,7 +42477,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -41690,13 +42485,13 @@ public class SatelliteServer { } } - private static class publishImageVersion_argsStandardSchemeFactory implements SchemeFactory { + private static class publishImageVersion_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public publishImageVersion_argsStandardScheme getScheme() { return new publishImageVersion_argsStandardScheme(); } } - private static class publishImageVersion_argsStandardScheme extends StandardScheme { + private static class publishImageVersion_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, publishImageVersion_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -41755,18 +42550,18 @@ public class SatelliteServer { } - private static class publishImageVersion_argsTupleSchemeFactory implements SchemeFactory { + private static class publishImageVersion_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public publishImageVersion_argsTupleScheme getScheme() { return new publishImageVersion_argsTupleScheme(); } } - private static class publishImageVersion_argsTupleScheme extends TupleScheme { + private static class publishImageVersion_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, publishImageVersion_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -41784,8 +42579,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, publishImageVersion_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -41797,6 +42592,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class publishImageVersion_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -41808,17 +42606,14 @@ public class SatelliteServer { 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 TRE_FIELD_DESC = new org.apache.thrift.protocol.TField("tre", org.apache.thrift.protocol.TType.STRUCT, (short)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new publishImageVersion_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new publishImageVersion_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new publishImageVersion_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new publishImageVersion_resultTupleSchemeFactory(); - public String success; // required - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required - public TTransferRejectedException tre; // required + public @org.apache.thrift.annotation.Nullable java.lang.String success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable TTransferRejectedException tre; // 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 { @@ -41828,10 +42623,10 @@ public class SatelliteServer { SERVER_ERROR((short)3, "serverError"), TRE((short)4, "tre"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -41839,6 +42634,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -41862,21 +42658,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -41885,26 +42682,26 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); tmpMap.put(_Fields.TRE, new org.apache.thrift.meta_data.FieldMetaData("tre", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTransferRejectedException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(publishImageVersion_result.class, metaDataMap); } @@ -41912,7 +42709,7 @@ public class SatelliteServer { } public publishImageVersion_result( - String success, + java.lang.String success, TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError, @@ -41960,11 +42757,12 @@ public class SatelliteServer { this.tre = null; } - public String getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getSuccess() { return this.success; } - public publishImageVersion_result setSuccess(String success) { + public publishImageVersion_result setSuccess(@org.apache.thrift.annotation.Nullable java.lang.String success) { this.success = success; return this; } @@ -41984,11 +42782,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public publishImageVersion_result setAuthError(TAuthorizationException authError) { + public publishImageVersion_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -42008,11 +42807,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public publishImageVersion_result setNotFound(TNotFoundException notFound) { + public publishImageVersion_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -42032,11 +42832,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public publishImageVersion_result setServerError(TInvocationException serverError) { + public publishImageVersion_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -42056,11 +42857,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TTransferRejectedException getTre() { return this.tre; } - public publishImageVersion_result setTre(TTransferRejectedException tre) { + public publishImageVersion_result setTre(@org.apache.thrift.annotation.Nullable TTransferRejectedException tre) { this.tre = tre; return this; } @@ -42080,13 +42882,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((String)value); + setSuccess((java.lang.String)value); } break; @@ -42125,7 +42927,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -42143,13 +42946,13 @@ public class SatelliteServer { return getTre(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -42164,13 +42967,11 @@ public class SatelliteServer { case TRE: return isSetTre(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof publishImageVersion_result) return this.equals((publishImageVersion_result)that); return false; @@ -42179,6 +42980,8 @@ public class SatelliteServer { public boolean equals(publishImageVersion_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -42230,34 +43033,29 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - boolean present_tre = true && (isSetTre()); - list.add(present_tre); - if (present_tre) - list.add(tre); + hashCode = hashCode * 8191 + ((isSetTre()) ? 131071 : 524287); + if (isSetTre()) + hashCode = hashCode * 8191 + tre.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -42268,7 +43066,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -42278,7 +43076,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -42288,7 +43086,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -42298,7 +43096,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -42308,7 +43106,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTre()).compareTo(other.isSetTre()); + lastComparison = java.lang.Boolean.compare(isSetTre(), other.isSetTre()); if (lastComparison != 0) { return lastComparison; } @@ -42321,21 +43119,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("publishImageVersion_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("publishImageVersion_result("); boolean first = true; sb.append("success:"); @@ -42394,7 +43193,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -42402,13 +43201,13 @@ public class SatelliteServer { } } - private static class publishImageVersion_resultStandardSchemeFactory implements SchemeFactory { + private static class publishImageVersion_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public publishImageVersion_resultStandardScheme getScheme() { return new publishImageVersion_resultStandardScheme(); } } - private static class publishImageVersion_resultStandardScheme extends StandardScheme { + private static class publishImageVersion_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, publishImageVersion_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -42510,18 +43309,18 @@ public class SatelliteServer { } - private static class publishImageVersion_resultTupleSchemeFactory implements SchemeFactory { + private static class publishImageVersion_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public publishImageVersion_resultTupleScheme getScheme() { return new publishImageVersion_resultTupleScheme(); } } - private static class publishImageVersion_resultTupleScheme extends TupleScheme { + private static class publishImageVersion_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, publishImageVersion_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -42557,8 +43356,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, publishImageVersion_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); @@ -42586,6 +43385,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class createLecture_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -42594,24 +43396,21 @@ public class SatelliteServer { 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 LECTURE_FIELD_DESC = new org.apache.thrift.protocol.TField("lecture", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new createLecture_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createLecture_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new createLecture_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createLecture_argsTupleSchemeFactory(); - public String userToken; // required - public LectureWrite lecture; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable LectureWrite lecture; // 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"), LECTURE((short)2, "lecture"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -42619,6 +43418,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -42636,21 +43436,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -42659,20 +43460,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.LECTURE, new org.apache.thrift.meta_data.FieldMetaData("lecture", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LectureWrite.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createLecture_args.class, metaDataMap); } @@ -42680,7 +43481,7 @@ public class SatelliteServer { } public createLecture_args( - String userToken, + java.lang.String userToken, LectureWrite lecture) { this(); @@ -42710,11 +43511,12 @@ public class SatelliteServer { this.lecture = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public createLecture_args setUserToken(String userToken) { + public createLecture_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -42734,11 +43536,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public LectureWrite getLecture() { return this.lecture; } - public createLecture_args setLecture(LectureWrite lecture) { + public createLecture_args setLecture(@org.apache.thrift.annotation.Nullable LectureWrite lecture) { this.lecture = lecture; return this; } @@ -42758,13 +43561,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -42779,7 +43582,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -42788,13 +43592,13 @@ public class SatelliteServer { return getLecture(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -42803,13 +43607,11 @@ public class SatelliteServer { case LECTURE: return isSetLecture(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof createLecture_args) return this.equals((createLecture_args)that); return false; @@ -42818,6 +43620,8 @@ public class SatelliteServer { public boolean equals(createLecture_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -42842,19 +43646,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_lecture = true && (isSetLecture()); - list.add(present_lecture); - if (present_lecture) - list.add(lecture); + hashCode = hashCode * 8191 + ((isSetLecture()) ? 131071 : 524287); + if (isSetLecture()) + hashCode = hashCode * 8191 + lecture.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -42865,7 +43667,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -42875,7 +43677,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLecture()).compareTo(other.isSetLecture()); + lastComparison = java.lang.Boolean.compare(isSetLecture(), other.isSetLecture()); if (lastComparison != 0) { return lastComparison; } @@ -42888,21 +43690,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("createLecture_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("createLecture_args("); boolean first = true; sb.append("userToken:"); @@ -42940,7 +43743,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -42948,13 +43751,13 @@ public class SatelliteServer { } } - private static class createLecture_argsStandardSchemeFactory implements SchemeFactory { + private static class createLecture_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createLecture_argsStandardScheme getScheme() { return new createLecture_argsStandardScheme(); } } - private static class createLecture_argsStandardScheme extends StandardScheme { + private static class createLecture_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, createLecture_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -43014,18 +43817,18 @@ public class SatelliteServer { } - private static class createLecture_argsTupleSchemeFactory implements SchemeFactory { + private static class createLecture_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createLecture_argsTupleScheme getScheme() { return new createLecture_argsTupleScheme(); } } - private static class createLecture_argsTupleScheme extends TupleScheme { + private static class createLecture_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, createLecture_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -43043,8 +43846,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, createLecture_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -43057,6 +43860,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class createLecture_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -43068,17 +43874,14 @@ public class SatelliteServer { 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)3); 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)4); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new createLecture_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createLecture_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new createLecture_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createLecture_resultTupleSchemeFactory(); - public String success; // required - public TAuthorizationException authError; // required - public TInvocationException serverError; // required - public TInvalidDateParam dateError; // required - public TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable java.lang.String success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable TInvalidDateParam dateError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // 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 { @@ -43088,10 +43891,10 @@ public class SatelliteServer { DATE_ERROR((short)3, "dateError"), NOT_FOUND((short)4, "notFound"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -43099,6 +43902,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -43122,21 +43926,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -43145,26 +43950,26 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidDateParam.class))); 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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createLecture_result.class, metaDataMap); } @@ -43172,7 +43977,7 @@ public class SatelliteServer { } public createLecture_result( - String success, + java.lang.String success, TAuthorizationException authError, TInvocationException serverError, TInvalidDateParam dateError, @@ -43220,11 +44025,12 @@ public class SatelliteServer { this.notFound = null; } - public String getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getSuccess() { return this.success; } - public createLecture_result setSuccess(String success) { + public createLecture_result setSuccess(@org.apache.thrift.annotation.Nullable java.lang.String success) { this.success = success; return this; } @@ -43244,11 +44050,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public createLecture_result setAuthError(TAuthorizationException authError) { + public createLecture_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -43268,11 +44075,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public createLecture_result setServerError(TInvocationException serverError) { + public createLecture_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -43292,11 +44100,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvalidDateParam getDateError() { return this.dateError; } - public createLecture_result setDateError(TInvalidDateParam dateError) { + public createLecture_result setDateError(@org.apache.thrift.annotation.Nullable TInvalidDateParam dateError) { this.dateError = dateError; return this; } @@ -43316,11 +44125,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public createLecture_result setNotFound(TNotFoundException notFound) { + public createLecture_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -43340,13 +44150,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((String)value); + setSuccess((java.lang.String)value); } break; @@ -43385,7 +44195,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -43403,13 +44214,13 @@ public class SatelliteServer { return getNotFound(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -43424,13 +44235,11 @@ public class SatelliteServer { case NOT_FOUND: return isSetNotFound(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof createLecture_result) return this.equals((createLecture_result)that); return false; @@ -43439,6 +44248,8 @@ public class SatelliteServer { public boolean equals(createLecture_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -43490,34 +44301,29 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - boolean present_dateError = true && (isSetDateError()); - list.add(present_dateError); - if (present_dateError) - list.add(dateError); + hashCode = hashCode * 8191 + ((isSetDateError()) ? 131071 : 524287); + if (isSetDateError()) + hashCode = hashCode * 8191 + dateError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -43528,7 +44334,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -43538,7 +44344,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -43548,7 +44354,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -43558,7 +44364,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDateError()).compareTo(other.isSetDateError()); + lastComparison = java.lang.Boolean.compare(isSetDateError(), other.isSetDateError()); if (lastComparison != 0) { return lastComparison; } @@ -43568,7 +44374,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -43581,21 +44387,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("createLecture_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("createLecture_result("); boolean first = true; sb.append("success:"); @@ -43654,7 +44461,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -43662,13 +44469,13 @@ public class SatelliteServer { } } - private static class createLecture_resultStandardSchemeFactory implements SchemeFactory { + private static class createLecture_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createLecture_resultStandardScheme getScheme() { return new createLecture_resultStandardScheme(); } } - private static class createLecture_resultStandardScheme extends StandardScheme { + private static class createLecture_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, createLecture_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -43770,18 +44577,18 @@ public class SatelliteServer { } - private static class createLecture_resultTupleSchemeFactory implements SchemeFactory { + private static class createLecture_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public createLecture_resultTupleScheme getScheme() { return new createLecture_resultTupleScheme(); } } - private static class createLecture_resultTupleScheme extends TupleScheme { + private static class createLecture_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, createLecture_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -43817,8 +44624,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, createLecture_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); @@ -43846,6 +44653,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class updateLecture_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -43855,15 +44665,12 @@ public class SatelliteServer { private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField LECTURE_FIELD_DESC = new org.apache.thrift.protocol.TField("lecture", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new updateLecture_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateLecture_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateLecture_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateLecture_argsTupleSchemeFactory(); - public String userToken; // required - public String lectureId; // required - public LectureWrite lecture; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureId; // required + public @org.apache.thrift.annotation.Nullable LectureWrite lecture; // 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 { @@ -43871,10 +44678,10 @@ public class SatelliteServer { LECTURE_ID((short)2, "lectureId"), LECTURE((short)3, "lecture"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -43882,6 +44689,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -43901,21 +44709,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -43924,22 +44733,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.LECTURE, new org.apache.thrift.meta_data.FieldMetaData("lecture", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LectureWrite.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecture_args.class, metaDataMap); } @@ -43947,8 +44756,8 @@ public class SatelliteServer { } public updateLecture_args( - String userToken, - String lectureId, + java.lang.String userToken, + java.lang.String lectureId, LectureWrite lecture) { this(); @@ -43983,11 +44792,12 @@ public class SatelliteServer { this.lecture = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public updateLecture_args setUserToken(String userToken) { + public updateLecture_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -44007,11 +44817,12 @@ public class SatelliteServer { } } - public String getLectureId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getLectureId() { return this.lectureId; } - public updateLecture_args setLectureId(String lectureId) { + public updateLecture_args setLectureId(@org.apache.thrift.annotation.Nullable java.lang.String lectureId) { this.lectureId = lectureId; return this; } @@ -44031,11 +44842,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public LectureWrite getLecture() { return this.lecture; } - public updateLecture_args setLecture(LectureWrite lecture) { + public updateLecture_args setLecture(@org.apache.thrift.annotation.Nullable LectureWrite lecture) { this.lecture = lecture; return this; } @@ -44055,13 +44867,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -44069,7 +44881,7 @@ public class SatelliteServer { if (value == null) { unsetLectureId(); } else { - setLectureId((String)value); + setLectureId((java.lang.String)value); } break; @@ -44084,7 +44896,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -44096,13 +44909,13 @@ public class SatelliteServer { return getLecture(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -44113,13 +44926,11 @@ public class SatelliteServer { case LECTURE: return isSetLecture(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof updateLecture_args) return this.equals((updateLecture_args)that); return false; @@ -44128,6 +44939,8 @@ public class SatelliteServer { public boolean equals(updateLecture_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -44161,24 +44974,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_lectureId = true && (isSetLectureId()); - list.add(present_lectureId); - if (present_lectureId) - list.add(lectureId); + hashCode = hashCode * 8191 + ((isSetLectureId()) ? 131071 : 524287); + if (isSetLectureId()) + hashCode = hashCode * 8191 + lectureId.hashCode(); - boolean present_lecture = true && (isSetLecture()); - list.add(present_lecture); - if (present_lecture) - list.add(lecture); + hashCode = hashCode * 8191 + ((isSetLecture()) ? 131071 : 524287); + if (isSetLecture()) + hashCode = hashCode * 8191 + lecture.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -44189,7 +44999,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -44199,7 +45009,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLectureId()).compareTo(other.isSetLectureId()); + lastComparison = java.lang.Boolean.compare(isSetLectureId(), other.isSetLectureId()); if (lastComparison != 0) { return lastComparison; } @@ -44209,7 +45019,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLecture()).compareTo(other.isSetLecture()); + lastComparison = java.lang.Boolean.compare(isSetLecture(), other.isSetLecture()); if (lastComparison != 0) { return lastComparison; } @@ -44222,21 +45032,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("updateLecture_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("updateLecture_args("); boolean first = true; sb.append("userToken:"); @@ -44282,7 +45093,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -44290,13 +45101,13 @@ public class SatelliteServer { } } - private static class updateLecture_argsStandardSchemeFactory implements SchemeFactory { + private static class updateLecture_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateLecture_argsStandardScheme getScheme() { return new updateLecture_argsStandardScheme(); } } - private static class updateLecture_argsStandardScheme extends StandardScheme { + private static class updateLecture_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecture_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -44369,18 +45180,18 @@ public class SatelliteServer { } - private static class updateLecture_argsTupleSchemeFactory implements SchemeFactory { + private static class updateLecture_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateLecture_argsTupleScheme getScheme() { return new updateLecture_argsTupleScheme(); } } - private static class updateLecture_argsTupleScheme extends TupleScheme { + private static class updateLecture_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, updateLecture_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -44404,8 +45215,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, updateLecture_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -44422,6 +45233,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class updateLecture_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -44432,16 +45246,13 @@ public class SatelliteServer { 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 updateLecture_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateLecture_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateLecture_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateLecture_resultTupleSchemeFactory(); - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required - public TInvalidDateParam dateError; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -44450,10 +45261,10 @@ public class SatelliteServer { SERVER_ERROR((short)3, "serverError"), DATE_ERROR((short)4, "dateError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -44461,6 +45272,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // AUTH_ERROR @@ -44482,21 +45294,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -44505,24 +45318,24 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvalidDateParam.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecture_result.class, metaDataMap); } @@ -44572,11 +45385,12 @@ public class SatelliteServer { this.dateError = null; } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public updateLecture_result setAuthError(TAuthorizationException authError) { + public updateLecture_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -44596,11 +45410,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public updateLecture_result setNotFound(TNotFoundException notFound) { + public updateLecture_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -44620,11 +45435,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public updateLecture_result setServerError(TInvocationException serverError) { + public updateLecture_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -44644,11 +45460,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvalidDateParam getDateError() { return this.dateError; } - public updateLecture_result setDateError(TInvalidDateParam dateError) { + public updateLecture_result setDateError(@org.apache.thrift.annotation.Nullable TInvalidDateParam dateError) { this.dateError = dateError; return this; } @@ -44668,7 +45485,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case AUTH_ERROR: if (value == null) { @@ -44705,7 +45522,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AUTH_ERROR: return getAuthError(); @@ -44720,13 +45538,13 @@ public class SatelliteServer { return getDateError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -44739,13 +45557,11 @@ public class SatelliteServer { case DATE_ERROR: return isSetDateError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof updateLecture_result) return this.equals((updateLecture_result)that); return false; @@ -44754,6 +45570,8 @@ public class SatelliteServer { public boolean equals(updateLecture_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); @@ -44796,29 +45614,25 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - boolean present_dateError = true && (isSetDateError()); - list.add(present_dateError); - if (present_dateError) - list.add(dateError); + hashCode = hashCode * 8191 + ((isSetDateError()) ? 131071 : 524287); + if (isSetDateError()) + hashCode = hashCode * 8191 + dateError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -44829,7 +45643,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -44839,7 +45653,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -44849,7 +45663,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -44859,7 +45673,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDateError()).compareTo(other.isSetDateError()); + lastComparison = java.lang.Boolean.compare(isSetDateError(), other.isSetDateError()); if (lastComparison != 0) { return lastComparison; } @@ -44872,21 +45686,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("updateLecture_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("updateLecture_result("); boolean first = true; sb.append("authError:"); @@ -44937,7 +45752,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -44945,13 +45760,13 @@ public class SatelliteServer { } } - private static class updateLecture_resultStandardSchemeFactory implements SchemeFactory { + private static class updateLecture_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateLecture_resultStandardScheme getScheme() { return new updateLecture_resultStandardScheme(); } } - private static class updateLecture_resultStandardScheme extends StandardScheme { + private static class updateLecture_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecture_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -45040,18 +45855,18 @@ public class SatelliteServer { } - private static class updateLecture_resultTupleSchemeFactory implements SchemeFactory { + private static class updateLecture_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public updateLecture_resultTupleScheme getScheme() { return new updateLecture_resultTupleScheme(); } } - private static class updateLecture_resultTupleScheme extends TupleScheme { + private static class updateLecture_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, updateLecture_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuthError()) { optionals.set(0); } @@ -45081,8 +45896,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, updateLecture_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -45106,6 +45921,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getLectureList_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -45114,13 +45932,10 @@ public class SatelliteServer { 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 getLectureList_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureList_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getLectureList_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getLectureList_argsTupleSchemeFactory(); - public String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required public int page; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -45128,10 +45943,10 @@ public class SatelliteServer { USER_TOKEN((short)1, "userToken"), PAGE((short)2, "page"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -45139,6 +45954,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -45156,21 +45972,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -45179,7 +45996,7 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -45187,14 +46004,14 @@ 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; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_args.class, metaDataMap); } @@ -45202,7 +46019,7 @@ public class SatelliteServer { } public getLectureList_args( - String userToken, + java.lang.String userToken, int page) { this(); @@ -45233,11 +46050,12 @@ public class SatelliteServer { this.page = 0; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public getLectureList_args setUserToken(String userToken) { + public getLectureList_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -45268,25 +46086,25 @@ public class SatelliteServer { } public void unsetPage() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); + __isset_bitfield = org.apache.thrift.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); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID); } public void setPageIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -45294,14 +46112,15 @@ public class SatelliteServer { if (value == null) { unsetPage(); } else { - setPage((Integer)value); + setPage((java.lang.Integer)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -45310,13 +46129,13 @@ public class SatelliteServer { return getPage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -45325,13 +46144,11 @@ public class SatelliteServer { case PAGE: return isSetPage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getLectureList_args) return this.equals((getLectureList_args)that); return false; @@ -45340,6 +46157,8 @@ public class SatelliteServer { public boolean equals(getLectureList_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -45364,19 +46183,15 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_page = true; - list.add(present_page); - if (present_page) - list.add(page); + hashCode = hashCode * 8191 + page; - return list.hashCode(); + return hashCode; } @Override @@ -45387,7 +46202,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -45397,7 +46212,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage()); + lastComparison = java.lang.Boolean.compare(isSetPage(), other.isSetPage()); if (lastComparison != 0) { return lastComparison; } @@ -45410,21 +46225,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getLectureList_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getLectureList_args("); boolean first = true; sb.append("userToken:"); @@ -45455,7 +46271,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -45465,13 +46281,13 @@ public class SatelliteServer { } } - private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory { + private static class getLectureList_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLectureList_argsStandardScheme getScheme() { return new getLectureList_argsStandardScheme(); } } - private static class getLectureList_argsStandardScheme extends StandardScheme { + private static class getLectureList_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -45528,18 +46344,18 @@ public class SatelliteServer { } - private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory { + private static class getLectureList_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLectureList_argsTupleScheme getScheme() { return new getLectureList_argsTupleScheme(); } } - private static class getLectureList_argsTupleScheme extends TupleScheme { + private static class getLectureList_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -45557,8 +46373,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -45570,6 +46386,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getLectureList_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -45579,15 +46398,12 @@ public class SatelliteServer { 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 getLectureList_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureList_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getLectureList_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getLectureList_resultTupleSchemeFactory(); - public List success; // required - public TAuthorizationException authError; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable java.util.List success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -45595,10 +46411,10 @@ public class SatelliteServer { AUTH_ERROR((short)1, "authError"), SERVER_ERROR((short)2, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -45606,6 +46422,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -45625,21 +46442,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -45648,23 +46466,23 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, LectureSummary.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_result.class, metaDataMap); } @@ -45672,7 +46490,7 @@ public class SatelliteServer { } public getLectureList_result( - List success, + java.util.List success, TAuthorizationException authError, TInvocationException serverError) { @@ -45687,7 +46505,7 @@ public class SatelliteServer { */ public getLectureList_result(getLectureList_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + java.util.List __this__success = new java.util.ArrayList(other.success.size()); for (LectureSummary other_element : other.success) { __this__success.add(new LectureSummary(other_element)); } @@ -45716,22 +46534,24 @@ public class SatelliteServer { return (this.success == null) ? 0 : this.success.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(LectureSummary elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new java.util.ArrayList(); } this.success.add(elem); } - public List getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.List getSuccess() { return this.success; } - public getLectureList_result setSuccess(List success) { + public getLectureList_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List success) { this.success = success; return this; } @@ -45751,11 +46571,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public getLectureList_result setAuthError(TAuthorizationException authError) { + public getLectureList_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -45775,11 +46596,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getLectureList_result setServerError(TInvocationException serverError) { + public getLectureList_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -45799,13 +46621,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((java.util.List)value); } break; @@ -45828,7 +46650,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -45840,13 +46663,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -45857,13 +46680,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getLectureList_result) return this.equals((getLectureList_result)that); return false; @@ -45872,6 +46693,8 @@ public class SatelliteServer { public boolean equals(getLectureList_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -45905,24 +46728,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -45933,7 +46753,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -45943,7 +46763,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -45953,7 +46773,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -45966,21 +46786,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getLectureList_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getLectureList_result("); boolean first = true; sb.append("success:"); @@ -46023,7 +46844,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -46031,13 +46852,13 @@ public class SatelliteServer { } } - private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory { + private static class getLectureList_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLectureList_resultStandardScheme getScheme() { return new getLectureList_resultStandardScheme(); } } - private static class getLectureList_resultStandardScheme extends StandardScheme { + private static class getLectureList_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -46052,14 +46873,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list310 = iprot.readListBegin(); - struct.success = new ArrayList(_list310.size); - LectureSummary _elem311; - for (int _i312 = 0; _i312 < _list310.size; ++_i312) + org.apache.thrift.protocol.TList _list390 = iprot.readListBegin(); + struct.success = new java.util.ArrayList(_list390.size); + @org.apache.thrift.annotation.Nullable LectureSummary _elem391; + for (int _i392 = 0; _i392 < _list390.size; ++_i392) { - _elem311 = new LectureSummary(); - _elem311.read(iprot); - struct.success.add(_elem311); + _elem391 = new LectureSummary(); + _elem391.read(iprot); + struct.success.add(_elem391); } iprot.readListEnd(); } @@ -46105,9 +46926,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 _iter313 : struct.success) + for (LectureSummary _iter393 : struct.success) { - _iter313.write(oprot); + _iter393.write(oprot); } oprot.writeListEnd(); } @@ -46129,18 +46950,18 @@ public class SatelliteServer { } - private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory { + private static class getLectureList_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLectureList_resultTupleScheme getScheme() { return new getLectureList_resultTupleScheme(); } } - private static class getLectureList_resultTupleScheme extends TupleScheme { + private static class getLectureList_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -46154,9 +46975,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (LectureSummary _iter314 : struct.success) + for (LectureSummary _iter394 : struct.success) { - _iter314.write(oprot); + _iter394.write(oprot); } } } @@ -46170,18 +46991,18 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list315 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list315.size); - LectureSummary _elem316; - for (int _i317 = 0; _i317 < _list315.size; ++_i317) + org.apache.thrift.protocol.TList _list395 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.ArrayList(_list395.size); + @org.apache.thrift.annotation.Nullable LectureSummary _elem396; + for (int _i397 = 0; _i397 < _list395.size; ++_i397) { - _elem316 = new LectureSummary(); - _elem316.read(iprot); - struct.success.add(_elem316); + _elem396 = new LectureSummary(); + _elem396.read(iprot); + struct.success.add(_elem396); } } struct.setSuccessIsSet(true); @@ -46199,6 +47020,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getLectureDetails_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -46207,24 +47031,21 @@ public class SatelliteServer { 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 LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getLectureDetails_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureDetails_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getLectureDetails_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getLectureDetails_argsTupleSchemeFactory(); - public String userToken; // required - public String lectureId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureId; // 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"), LECTURE_ID((short)2, "lectureId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -46232,6 +47053,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -46249,21 +47071,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -46272,20 +47095,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureDetails_args.class, metaDataMap); } @@ -46293,8 +47116,8 @@ public class SatelliteServer { } public getLectureDetails_args( - String userToken, - String lectureId) + java.lang.String userToken, + java.lang.String lectureId) { this(); this.userToken = userToken; @@ -46323,11 +47146,12 @@ public class SatelliteServer { this.lectureId = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public getLectureDetails_args setUserToken(String userToken) { + public getLectureDetails_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -46347,11 +47171,12 @@ public class SatelliteServer { } } - public String getLectureId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getLectureId() { return this.lectureId; } - public getLectureDetails_args setLectureId(String lectureId) { + public getLectureDetails_args setLectureId(@org.apache.thrift.annotation.Nullable java.lang.String lectureId) { this.lectureId = lectureId; return this; } @@ -46371,13 +47196,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -46385,14 +47210,15 @@ public class SatelliteServer { if (value == null) { unsetLectureId(); } else { - setLectureId((String)value); + setLectureId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -46401,13 +47227,13 @@ public class SatelliteServer { return getLectureId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -46416,13 +47242,11 @@ public class SatelliteServer { case LECTURE_ID: return isSetLectureId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getLectureDetails_args) return this.equals((getLectureDetails_args)that); return false; @@ -46431,6 +47255,8 @@ public class SatelliteServer { public boolean equals(getLectureDetails_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -46455,19 +47281,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_lectureId = true && (isSetLectureId()); - list.add(present_lectureId); - if (present_lectureId) - list.add(lectureId); + hashCode = hashCode * 8191 + ((isSetLectureId()) ? 131071 : 524287); + if (isSetLectureId()) + hashCode = hashCode * 8191 + lectureId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -46478,7 +47302,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -46488,7 +47312,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLectureId()).compareTo(other.isSetLectureId()); + lastComparison = java.lang.Boolean.compare(isSetLectureId(), other.isSetLectureId()); if (lastComparison != 0) { return lastComparison; } @@ -46501,21 +47325,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getLectureDetails_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getLectureDetails_args("); boolean first = true; sb.append("userToken:"); @@ -46550,7 +47375,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -46558,13 +47383,13 @@ public class SatelliteServer { } } - private static class getLectureDetails_argsStandardSchemeFactory implements SchemeFactory { + private static class getLectureDetails_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLectureDetails_argsStandardScheme getScheme() { return new getLectureDetails_argsStandardScheme(); } } - private static class getLectureDetails_argsStandardScheme extends StandardScheme { + private static class getLectureDetails_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureDetails_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -46623,18 +47448,18 @@ public class SatelliteServer { } - private static class getLectureDetails_argsTupleSchemeFactory implements SchemeFactory { + private static class getLectureDetails_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLectureDetails_argsTupleScheme getScheme() { return new getLectureDetails_argsTupleScheme(); } } - private static class getLectureDetails_argsTupleScheme extends TupleScheme { + private static class getLectureDetails_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getLectureDetails_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -46652,8 +47477,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getLectureDetails_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -46665,6 +47490,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getLectureDetails_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -46675,16 +47503,13 @@ public class SatelliteServer { 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 getLectureDetails_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureDetails_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getLectureDetails_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getLectureDetails_resultTupleSchemeFactory(); - public LectureRead success; // required - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable LectureRead success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -46693,10 +47518,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -46704,6 +47529,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -46725,21 +47551,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -46748,24 +47575,24 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, LectureRead.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureDetails_result.class, metaDataMap); } @@ -46815,11 +47642,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public LectureRead getSuccess() { return this.success; } - public getLectureDetails_result setSuccess(LectureRead success) { + public getLectureDetails_result setSuccess(@org.apache.thrift.annotation.Nullable LectureRead success) { this.success = success; return this; } @@ -46839,11 +47667,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public getLectureDetails_result setAuthError(TAuthorizationException authError) { + public getLectureDetails_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -46863,11 +47692,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public getLectureDetails_result setNotFound(TNotFoundException notFound) { + public getLectureDetails_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -46887,11 +47717,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getLectureDetails_result setServerError(TInvocationException serverError) { + public getLectureDetails_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -46911,7 +47742,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -46948,7 +47779,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -46963,13 +47795,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -46982,13 +47814,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getLectureDetails_result) return this.equals((getLectureDetails_result)that); return false; @@ -46997,6 +47827,8 @@ public class SatelliteServer { public boolean equals(getLectureDetails_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -47039,29 +47871,25 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -47072,7 +47900,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -47082,7 +47910,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -47092,7 +47920,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -47102,7 +47930,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -47115,21 +47943,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getLectureDetails_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getLectureDetails_result("); boolean first = true; sb.append("success:"); @@ -47183,7 +48012,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -47191,13 +48020,13 @@ public class SatelliteServer { } } - private static class getLectureDetails_resultStandardSchemeFactory implements SchemeFactory { + private static class getLectureDetails_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLectureDetails_resultStandardScheme getScheme() { return new getLectureDetails_resultStandardScheme(); } } - private static class getLectureDetails_resultStandardScheme extends StandardScheme { + private static class getLectureDetails_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureDetails_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -47286,18 +48115,18 @@ public class SatelliteServer { } - private static class getLectureDetails_resultTupleSchemeFactory implements SchemeFactory { + private static class getLectureDetails_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLectureDetails_resultTupleScheme getScheme() { return new getLectureDetails_resultTupleScheme(); } } - private static class getLectureDetails_resultTupleScheme extends TupleScheme { + private static class getLectureDetails_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getLectureDetails_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -47327,8 +48156,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getLectureDetails_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new LectureRead(); struct.success.read(iprot); @@ -47352,6 +48181,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteLecture_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -47360,24 +48192,21 @@ public class SatelliteServer { 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 LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new deleteLecture_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteLecture_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteLecture_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteLecture_argsTupleSchemeFactory(); - public String userToken; // required - public String lectureId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureId; // 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"), LECTURE_ID((short)2, "lectureId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -47385,6 +48214,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -47402,21 +48232,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -47425,20 +48256,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteLecture_args.class, metaDataMap); } @@ -47446,8 +48277,8 @@ public class SatelliteServer { } public deleteLecture_args( - String userToken, - String lectureId) + java.lang.String userToken, + java.lang.String lectureId) { this(); this.userToken = userToken; @@ -47476,11 +48307,12 @@ public class SatelliteServer { this.lectureId = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public deleteLecture_args setUserToken(String userToken) { + public deleteLecture_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -47500,11 +48332,12 @@ public class SatelliteServer { } } - public String getLectureId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getLectureId() { return this.lectureId; } - public deleteLecture_args setLectureId(String lectureId) { + public deleteLecture_args setLectureId(@org.apache.thrift.annotation.Nullable java.lang.String lectureId) { this.lectureId = lectureId; return this; } @@ -47524,13 +48357,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -47538,14 +48371,15 @@ public class SatelliteServer { if (value == null) { unsetLectureId(); } else { - setLectureId((String)value); + setLectureId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -47554,13 +48388,13 @@ public class SatelliteServer { return getLectureId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -47569,13 +48403,11 @@ public class SatelliteServer { case LECTURE_ID: return isSetLectureId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof deleteLecture_args) return this.equals((deleteLecture_args)that); return false; @@ -47584,6 +48416,8 @@ public class SatelliteServer { public boolean equals(deleteLecture_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -47608,19 +48442,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_lectureId = true && (isSetLectureId()); - list.add(present_lectureId); - if (present_lectureId) - list.add(lectureId); + hashCode = hashCode * 8191 + ((isSetLectureId()) ? 131071 : 524287); + if (isSetLectureId()) + hashCode = hashCode * 8191 + lectureId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -47631,7 +48463,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -47641,7 +48473,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLectureId()).compareTo(other.isSetLectureId()); + lastComparison = java.lang.Boolean.compare(isSetLectureId(), other.isSetLectureId()); if (lastComparison != 0) { return lastComparison; } @@ -47654,21 +48486,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteLecture_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteLecture_args("); boolean first = true; sb.append("userToken:"); @@ -47703,7 +48536,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -47711,13 +48544,13 @@ public class SatelliteServer { } } - private static class deleteLecture_argsStandardSchemeFactory implements SchemeFactory { + private static class deleteLecture_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteLecture_argsStandardScheme getScheme() { return new deleteLecture_argsStandardScheme(); } } - private static class deleteLecture_argsStandardScheme extends StandardScheme { + private static class deleteLecture_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -47776,18 +48609,18 @@ public class SatelliteServer { } - private static class deleteLecture_argsTupleSchemeFactory implements SchemeFactory { + private static class deleteLecture_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteLecture_argsTupleScheme getScheme() { return new deleteLecture_argsTupleScheme(); } } - private static class deleteLecture_argsTupleScheme extends TupleScheme { + private static class deleteLecture_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteLecture_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -47805,8 +48638,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteLecture_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -47818,6 +48651,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class deleteLecture_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -47827,15 +48663,12 @@ public class SatelliteServer { 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 deleteLecture_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteLecture_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new deleteLecture_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new deleteLecture_resultTupleSchemeFactory(); - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -47843,10 +48676,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -47854,6 +48687,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // AUTH_ERROR @@ -47873,21 +48707,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -47896,22 +48731,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteLecture_result.class, metaDataMap); } @@ -47955,11 +48790,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public deleteLecture_result setAuthError(TAuthorizationException authError) { + public deleteLecture_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -47979,11 +48815,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public deleteLecture_result setNotFound(TNotFoundException notFound) { + public deleteLecture_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -48003,11 +48840,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public deleteLecture_result setServerError(TInvocationException serverError) { + public deleteLecture_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -48027,7 +48865,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case AUTH_ERROR: if (value == null) { @@ -48056,7 +48894,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AUTH_ERROR: return getAuthError(); @@ -48068,13 +48907,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -48085,13 +48924,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof deleteLecture_result) return this.equals((deleteLecture_result)that); return false; @@ -48100,6 +48937,8 @@ public class SatelliteServer { public boolean equals(deleteLecture_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); @@ -48133,24 +48972,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -48161,7 +48997,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -48171,7 +49007,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -48181,7 +49017,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -48194,21 +49030,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("deleteLecture_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("deleteLecture_result("); boolean first = true; sb.append("authError:"); @@ -48251,7 +49088,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -48259,13 +49096,13 @@ public class SatelliteServer { } } - private static class deleteLecture_resultStandardSchemeFactory implements SchemeFactory { + private static class deleteLecture_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteLecture_resultStandardScheme getScheme() { return new deleteLecture_resultStandardScheme(); } } - private static class deleteLecture_resultStandardScheme extends StandardScheme { + private static class deleteLecture_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -48340,18 +49177,18 @@ public class SatelliteServer { } - private static class deleteLecture_resultTupleSchemeFactory implements SchemeFactory { + private static class deleteLecture_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public deleteLecture_resultTupleScheme getScheme() { return new deleteLecture_resultTupleScheme(); } } - private static class deleteLecture_resultTupleScheme extends TupleScheme { + private static class deleteLecture_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, deleteLecture_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuthError()) { optionals.set(0); } @@ -48375,8 +49212,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, deleteLecture_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -48395,6 +49232,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class writeLecturePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -48404,15 +49244,12 @@ public class SatelliteServer { private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", 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 writeLecturePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeLecturePermissions_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new writeLecturePermissions_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new writeLecturePermissions_argsTupleSchemeFactory(); - public String userToken; // required - public String lectureId; // required - public Map permissions; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureId; // required + public @org.apache.thrift.annotation.Nullable java.util.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 { @@ -48420,10 +49257,10 @@ public class SatelliteServer { LECTURE_ID((short)2, "lectureId"), PERMISSIONS((short)3, "permissions"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -48431,6 +49268,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -48450,21 +49288,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -48473,15 +49312,15 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -48490,7 +49329,7 @@ public class SatelliteServer { 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, LecturePermissions.class)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLecturePermissions_args.class, metaDataMap); } @@ -48498,9 +49337,9 @@ public class SatelliteServer { } public writeLecturePermissions_args( - String userToken, - String lectureId, - Map permissions) + java.lang.String userToken, + java.lang.String lectureId, + java.util.Map permissions) { this(); this.userToken = userToken; @@ -48519,13 +49358,13 @@ public class SatelliteServer { this.lectureId = other.lectureId; } if (other.isSetPermissions()) { - Map __this__permissions = new HashMap(other.permissions.size()); - for (Map.Entry other_element : other.permissions.entrySet()) { + java.util.Map __this__permissions = new java.util.HashMap(other.permissions.size()); + for (java.util.Map.Entry other_element : other.permissions.entrySet()) { - String other_element_key = other_element.getKey(); + java.lang.String other_element_key = other_element.getKey(); LecturePermissions other_element_value = other_element.getValue(); - String __this__permissions_copy_key = other_element_key; + java.lang.String __this__permissions_copy_key = other_element_key; LecturePermissions __this__permissions_copy_value = new LecturePermissions(other_element_value); @@ -48546,11 +49385,12 @@ public class SatelliteServer { this.permissions = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public writeLecturePermissions_args setUserToken(String userToken) { + public writeLecturePermissions_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -48570,11 +49410,12 @@ public class SatelliteServer { } } - public String getLectureId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getLectureId() { return this.lectureId; } - public writeLecturePermissions_args setLectureId(String lectureId) { + public writeLecturePermissions_args setLectureId(@org.apache.thrift.annotation.Nullable java.lang.String lectureId) { this.lectureId = lectureId; return this; } @@ -48598,18 +49439,19 @@ public class SatelliteServer { return (this.permissions == null) ? 0 : this.permissions.size(); } - public void putToPermissions(String key, LecturePermissions val) { + public void putToPermissions(java.lang.String key, LecturePermissions val) { if (this.permissions == null) { - this.permissions = new HashMap(); + this.permissions = new java.util.HashMap(); } this.permissions.put(key, val); } - public Map getPermissions() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getPermissions() { return this.permissions; } - public writeLecturePermissions_args setPermissions(Map permissions) { + public writeLecturePermissions_args setPermissions(@org.apache.thrift.annotation.Nullable java.util.Map permissions) { this.permissions = permissions; return this; } @@ -48629,13 +49471,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -48643,7 +49485,7 @@ public class SatelliteServer { if (value == null) { unsetLectureId(); } else { - setLectureId((String)value); + setLectureId((java.lang.String)value); } break; @@ -48651,14 +49493,15 @@ public class SatelliteServer { if (value == null) { unsetPermissions(); } else { - setPermissions((Map)value); + setPermissions((java.util.Map)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -48670,13 +49513,13 @@ public class SatelliteServer { return getPermissions(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -48687,13 +49530,11 @@ public class SatelliteServer { case PERMISSIONS: return isSetPermissions(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof writeLecturePermissions_args) return this.equals((writeLecturePermissions_args)that); return false; @@ -48702,6 +49543,8 @@ public class SatelliteServer { public boolean equals(writeLecturePermissions_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -48735,24 +49578,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_lectureId = true && (isSetLectureId()); - list.add(present_lectureId); - if (present_lectureId) - list.add(lectureId); + hashCode = hashCode * 8191 + ((isSetLectureId()) ? 131071 : 524287); + if (isSetLectureId()) + hashCode = hashCode * 8191 + lectureId.hashCode(); - boolean present_permissions = true && (isSetPermissions()); - list.add(present_permissions); - if (present_permissions) - list.add(permissions); + hashCode = hashCode * 8191 + ((isSetPermissions()) ? 131071 : 524287); + if (isSetPermissions()) + hashCode = hashCode * 8191 + permissions.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -48763,7 +49603,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -48773,7 +49613,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLectureId()).compareTo(other.isSetLectureId()); + lastComparison = java.lang.Boolean.compare(isSetLectureId(), other.isSetLectureId()); if (lastComparison != 0) { return lastComparison; } @@ -48783,7 +49623,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPermissions()).compareTo(other.isSetPermissions()); + lastComparison = java.lang.Boolean.compare(isSetPermissions(), other.isSetPermissions()); if (lastComparison != 0) { return lastComparison; } @@ -48796,21 +49636,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("writeLecturePermissions_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("writeLecturePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -48853,7 +49694,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -48861,13 +49702,13 @@ public class SatelliteServer { } } - private static class writeLecturePermissions_argsStandardSchemeFactory implements SchemeFactory { + private static class writeLecturePermissions_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public writeLecturePermissions_argsStandardScheme getScheme() { return new writeLecturePermissions_argsStandardScheme(); } } - private static class writeLecturePermissions_argsStandardScheme extends StandardScheme { + private static class writeLecturePermissions_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -48898,16 +49739,16 @@ public class SatelliteServer { case 3: // PERMISSIONS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map318 = iprot.readMapBegin(); - struct.permissions = new HashMap(2*_map318.size); - String _key319; - LecturePermissions _val320; - for (int _i321 = 0; _i321 < _map318.size; ++_i321) + org.apache.thrift.protocol.TMap _map398 = iprot.readMapBegin(); + struct.permissions = new java.util.HashMap(2*_map398.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key399; + @org.apache.thrift.annotation.Nullable LecturePermissions _val400; + for (int _i401 = 0; _i401 < _map398.size; ++_i401) { - _key319 = iprot.readString(); - _val320 = new LecturePermissions(); - _val320.read(iprot); - struct.permissions.put(_key319, _val320); + _key399 = iprot.readString(); + _val400 = new LecturePermissions(); + _val400.read(iprot); + struct.permissions.put(_key399, _val400); } iprot.readMapEnd(); } @@ -48945,10 +49786,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 _iter322 : struct.permissions.entrySet()) + for (java.util.Map.Entry _iter402 : struct.permissions.entrySet()) { - oprot.writeString(_iter322.getKey()); - _iter322.getValue().write(oprot); + oprot.writeString(_iter402.getKey()); + _iter402.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -48960,18 +49801,18 @@ public class SatelliteServer { } - private static class writeLecturePermissions_argsTupleSchemeFactory implements SchemeFactory { + private static class writeLecturePermissions_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public writeLecturePermissions_argsTupleScheme getScheme() { return new writeLecturePermissions_argsTupleScheme(); } } - private static class writeLecturePermissions_argsTupleScheme extends TupleScheme { + private static class writeLecturePermissions_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, writeLecturePermissions_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -48991,10 +49832,10 @@ public class SatelliteServer { if (struct.isSetPermissions()) { { oprot.writeI32(struct.permissions.size()); - for (Map.Entry _iter323 : struct.permissions.entrySet()) + for (java.util.Map.Entry _iter403 : struct.permissions.entrySet()) { - oprot.writeString(_iter323.getKey()); - _iter323.getValue().write(oprot); + oprot.writeString(_iter403.getKey()); + _iter403.getValue().write(oprot); } } } @@ -49002,8 +49843,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, writeLecturePermissions_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -49014,16 +49855,16 @@ public class SatelliteServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map324 = 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*_map324.size); - String _key325; - LecturePermissions _val326; - for (int _i327 = 0; _i327 < _map324.size; ++_i327) + org.apache.thrift.protocol.TMap _map404 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT); + struct.permissions = new java.util.HashMap(2*_map404.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key405; + @org.apache.thrift.annotation.Nullable LecturePermissions _val406; + for (int _i407 = 0; _i407 < _map404.size; ++_i407) { - _key325 = iprot.readString(); - _val326 = new LecturePermissions(); - _val326.read(iprot); - struct.permissions.put(_key325, _val326); + _key405 = iprot.readString(); + _val406 = new LecturePermissions(); + _val406.read(iprot); + struct.permissions.put(_key405, _val406); } } struct.setPermissionsIsSet(true); @@ -49031,6 +49872,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class writeLecturePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -49040,15 +49884,12 @@ public class SatelliteServer { 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 writeLecturePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeLecturePermissions_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new writeLecturePermissions_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new writeLecturePermissions_resultTupleSchemeFactory(); - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -49056,10 +49897,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -49067,6 +49908,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // AUTH_ERROR @@ -49086,21 +49928,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -49109,22 +49952,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLecturePermissions_result.class, metaDataMap); } @@ -49168,11 +50011,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public writeLecturePermissions_result setAuthError(TAuthorizationException authError) { + public writeLecturePermissions_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -49192,11 +50036,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public writeLecturePermissions_result setNotFound(TNotFoundException notFound) { + public writeLecturePermissions_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -49216,11 +50061,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public writeLecturePermissions_result setServerError(TInvocationException serverError) { + public writeLecturePermissions_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -49240,7 +50086,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case AUTH_ERROR: if (value == null) { @@ -49269,7 +50115,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AUTH_ERROR: return getAuthError(); @@ -49281,13 +50128,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -49298,13 +50145,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof writeLecturePermissions_result) return this.equals((writeLecturePermissions_result)that); return false; @@ -49313,6 +50158,8 @@ public class SatelliteServer { public boolean equals(writeLecturePermissions_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); @@ -49346,24 +50193,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -49374,7 +50218,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -49384,7 +50228,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -49394,7 +50238,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -49407,21 +50251,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("writeLecturePermissions_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("writeLecturePermissions_result("); boolean first = true; sb.append("authError:"); @@ -49464,7 +50309,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -49472,13 +50317,13 @@ public class SatelliteServer { } } - private static class writeLecturePermissions_resultStandardSchemeFactory implements SchemeFactory { + private static class writeLecturePermissions_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public writeLecturePermissions_resultStandardScheme getScheme() { return new writeLecturePermissions_resultStandardScheme(); } } - private static class writeLecturePermissions_resultStandardScheme extends StandardScheme { + private static class writeLecturePermissions_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -49553,18 +50398,18 @@ public class SatelliteServer { } - private static class writeLecturePermissions_resultTupleSchemeFactory implements SchemeFactory { + private static class writeLecturePermissions_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public writeLecturePermissions_resultTupleScheme getScheme() { return new writeLecturePermissions_resultTupleScheme(); } } - private static class writeLecturePermissions_resultTupleScheme extends TupleScheme { + private static class writeLecturePermissions_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, writeLecturePermissions_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuthError()) { optionals.set(0); } @@ -49588,8 +50433,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, writeLecturePermissions_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -49608,6 +50453,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getLecturePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -49616,24 +50464,21 @@ public class SatelliteServer { 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 LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getLecturePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLecturePermissions_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getLecturePermissions_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getLecturePermissions_argsTupleSchemeFactory(); - public String userToken; // required - public String lectureId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureId; // 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"), LECTURE_ID((short)2, "lectureId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -49641,6 +50486,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -49658,21 +50504,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -49681,20 +50528,20 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLecturePermissions_args.class, metaDataMap); } @@ -49702,8 +50549,8 @@ public class SatelliteServer { } public getLecturePermissions_args( - String userToken, - String lectureId) + java.lang.String userToken, + java.lang.String lectureId) { this(); this.userToken = userToken; @@ -49732,11 +50579,12 @@ public class SatelliteServer { this.lectureId = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public getLecturePermissions_args setUserToken(String userToken) { + public getLecturePermissions_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -49756,11 +50604,12 @@ public class SatelliteServer { } } - public String getLectureId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getLectureId() { return this.lectureId; } - public getLecturePermissions_args setLectureId(String lectureId) { + public getLecturePermissions_args setLectureId(@org.apache.thrift.annotation.Nullable java.lang.String lectureId) { this.lectureId = lectureId; return this; } @@ -49780,13 +50629,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -49794,14 +50643,15 @@ public class SatelliteServer { if (value == null) { unsetLectureId(); } else { - setLectureId((String)value); + setLectureId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -49810,13 +50660,13 @@ public class SatelliteServer { return getLectureId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -49825,13 +50675,11 @@ public class SatelliteServer { case LECTURE_ID: return isSetLectureId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getLecturePermissions_args) return this.equals((getLecturePermissions_args)that); return false; @@ -49840,6 +50688,8 @@ public class SatelliteServer { public boolean equals(getLecturePermissions_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -49864,19 +50714,17 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_lectureId = true && (isSetLectureId()); - list.add(present_lectureId); - if (present_lectureId) - list.add(lectureId); + hashCode = hashCode * 8191 + ((isSetLectureId()) ? 131071 : 524287); + if (isSetLectureId()) + hashCode = hashCode * 8191 + lectureId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -49887,7 +50735,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -49897,7 +50745,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLectureId()).compareTo(other.isSetLectureId()); + lastComparison = java.lang.Boolean.compare(isSetLectureId(), other.isSetLectureId()); if (lastComparison != 0) { return lastComparison; } @@ -49910,21 +50758,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getLecturePermissions_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getLecturePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -49959,7 +50808,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -49967,13 +50816,13 @@ public class SatelliteServer { } } - private static class getLecturePermissions_argsStandardSchemeFactory implements SchemeFactory { + private static class getLecturePermissions_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLecturePermissions_argsStandardScheme getScheme() { return new getLecturePermissions_argsStandardScheme(); } } - private static class getLecturePermissions_argsStandardScheme extends StandardScheme { + private static class getLecturePermissions_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getLecturePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -50032,18 +50881,18 @@ public class SatelliteServer { } - private static class getLecturePermissions_argsTupleSchemeFactory implements SchemeFactory { + private static class getLecturePermissions_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLecturePermissions_argsTupleScheme getScheme() { return new getLecturePermissions_argsTupleScheme(); } } - private static class getLecturePermissions_argsTupleScheme extends TupleScheme { + private static class getLecturePermissions_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getLecturePermissions_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -50061,8 +50910,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getLecturePermissions_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -50074,6 +50923,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getLecturePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -50084,16 +50936,13 @@ public class SatelliteServer { 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 getLecturePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLecturePermissions_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getLecturePermissions_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getLecturePermissions_resultTupleSchemeFactory(); - public Map success; // required - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable java.util.Map success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -50102,10 +50951,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -50113,6 +50962,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -50134,21 +50984,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -50157,26 +51008,26 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, LecturePermissions.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLecturePermissions_result.class, metaDataMap); } @@ -50184,7 +51035,7 @@ public class SatelliteServer { } public getLecturePermissions_result( - Map success, + java.util.Map success, TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError) @@ -50201,13 +51052,13 @@ public class SatelliteServer { */ public getLecturePermissions_result(getLecturePermissions_result other) { if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success.size()); - for (Map.Entry other_element : other.success.entrySet()) { + java.util.Map __this__success = new java.util.HashMap(other.success.size()); + for (java.util.Map.Entry other_element : other.success.entrySet()) { - String other_element_key = other_element.getKey(); + java.lang.String other_element_key = other_element.getKey(); LecturePermissions other_element_value = other_element.getValue(); - String __this__success_copy_key = other_element_key; + java.lang.String __this__success_copy_key = other_element_key; LecturePermissions __this__success_copy_value = new LecturePermissions(other_element_value); @@ -50242,18 +51093,19 @@ public class SatelliteServer { return (this.success == null) ? 0 : this.success.size(); } - public void putToSuccess(String key, LecturePermissions val) { + public void putToSuccess(java.lang.String key, LecturePermissions val) { if (this.success == null) { - this.success = new HashMap(); + this.success = new java.util.HashMap(); } this.success.put(key, val); } - public Map getSuccess() { + @org.apache.thrift.annotation.Nullable + public java.util.Map getSuccess() { return this.success; } - public getLecturePermissions_result setSuccess(Map success) { + public getLecturePermissions_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.Map success) { this.success = success; return this; } @@ -50273,11 +51125,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public getLecturePermissions_result setAuthError(TAuthorizationException authError) { + public getLecturePermissions_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -50297,11 +51150,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public getLecturePermissions_result setNotFound(TNotFoundException notFound) { + public getLecturePermissions_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -50321,11 +51175,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getLecturePermissions_result setServerError(TInvocationException serverError) { + public getLecturePermissions_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -50345,13 +51200,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Map)value); + setSuccess((java.util.Map)value); } break; @@ -50382,7 +51237,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -50397,13 +51253,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -50416,13 +51272,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getLecturePermissions_result) return this.equals((getLecturePermissions_result)that); return false; @@ -50431,6 +51285,8 @@ public class SatelliteServer { public boolean equals(getLecturePermissions_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -50473,29 +51329,25 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -50506,7 +51358,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -50516,7 +51368,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -50526,7 +51378,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -50536,7 +51388,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -50549,21 +51401,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getLecturePermissions_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getLecturePermissions_result("); boolean first = true; sb.append("success:"); @@ -50614,7 +51467,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -50622,13 +51475,13 @@ public class SatelliteServer { } } - private static class getLecturePermissions_resultStandardSchemeFactory implements SchemeFactory { + private static class getLecturePermissions_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLecturePermissions_resultStandardScheme getScheme() { return new getLecturePermissions_resultStandardScheme(); } } - private static class getLecturePermissions_resultStandardScheme extends StandardScheme { + private static class getLecturePermissions_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getLecturePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -50643,16 +51496,16 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map328 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map328.size); - String _key329; - LecturePermissions _val330; - for (int _i331 = 0; _i331 < _map328.size; ++_i331) + org.apache.thrift.protocol.TMap _map408 = iprot.readMapBegin(); + struct.success = new java.util.HashMap(2*_map408.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key409; + @org.apache.thrift.annotation.Nullable LecturePermissions _val410; + for (int _i411 = 0; _i411 < _map408.size; ++_i411) { - _key329 = iprot.readString(); - _val330 = new LecturePermissions(); - _val330.read(iprot); - struct.success.put(_key329, _val330); + _key409 = iprot.readString(); + _val410 = new LecturePermissions(); + _val410.read(iprot); + struct.success.put(_key409, _val410); } iprot.readMapEnd(); } @@ -50707,10 +51560,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 _iter332 : struct.success.entrySet()) + for (java.util.Map.Entry _iter412 : struct.success.entrySet()) { - oprot.writeString(_iter332.getKey()); - _iter332.getValue().write(oprot); + oprot.writeString(_iter412.getKey()); + _iter412.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -50737,18 +51590,18 @@ public class SatelliteServer { } - private static class getLecturePermissions_resultTupleSchemeFactory implements SchemeFactory { + private static class getLecturePermissions_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getLecturePermissions_resultTupleScheme getScheme() { return new getLecturePermissions_resultTupleScheme(); } } - private static class getLecturePermissions_resultTupleScheme extends TupleScheme { + private static class getLecturePermissions_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getLecturePermissions_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -50765,10 +51618,10 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter333 : struct.success.entrySet()) + for (java.util.Map.Entry _iter413 : struct.success.entrySet()) { - oprot.writeString(_iter333.getKey()); - _iter333.getValue().write(oprot); + oprot.writeString(_iter413.getKey()); + _iter413.getValue().write(oprot); } } } @@ -50785,20 +51638,20 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getLecturePermissions_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map334 = 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*_map334.size); - String _key335; - LecturePermissions _val336; - for (int _i337 = 0; _i337 < _map334.size; ++_i337) + org.apache.thrift.protocol.TMap _map414 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT); + struct.success = new java.util.HashMap(2*_map414.size); + @org.apache.thrift.annotation.Nullable java.lang.String _key415; + @org.apache.thrift.annotation.Nullable LecturePermissions _val416; + for (int _i417 = 0; _i417 < _map414.size; ++_i417) { - _key335 = iprot.readString(); - _val336 = new LecturePermissions(); - _val336.read(iprot); - struct.success.put(_key335, _val336); + _key415 = iprot.readString(); + _val416 = new LecturePermissions(); + _val416.read(iprot); + struct.success.put(_key415, _val416); } } struct.setSuccessIsSet(true); @@ -50821,6 +51674,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class setLectureOwner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -50830,15 +51686,12 @@ public class SatelliteServer { private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", 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 setLectureOwner_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setLectureOwner_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setLectureOwner_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setLectureOwner_argsTupleSchemeFactory(); - public String userToken; // required - public String lectureId; // required - public String newOwnerId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureId; // required + public @org.apache.thrift.annotation.Nullable java.lang.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 { @@ -50846,10 +51699,10 @@ public class SatelliteServer { LECTURE_ID((short)2, "lectureId"), NEW_OWNER_ID((short)3, "newOwnerId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -50857,6 +51710,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -50876,21 +51730,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -50899,22 +51754,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", 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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLectureOwner_args.class, metaDataMap); } @@ -50922,9 +51777,9 @@ public class SatelliteServer { } public setLectureOwner_args( - String userToken, - String lectureId, - String newOwnerId) + java.lang.String userToken, + java.lang.String lectureId, + java.lang.String newOwnerId) { this(); this.userToken = userToken; @@ -50958,11 +51813,12 @@ public class SatelliteServer { this.newOwnerId = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public setLectureOwner_args setUserToken(String userToken) { + public setLectureOwner_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -50982,11 +51838,12 @@ public class SatelliteServer { } } - public String getLectureId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getLectureId() { return this.lectureId; } - public setLectureOwner_args setLectureId(String lectureId) { + public setLectureOwner_args setLectureId(@org.apache.thrift.annotation.Nullable java.lang.String lectureId) { this.lectureId = lectureId; return this; } @@ -51006,11 +51863,12 @@ public class SatelliteServer { } } - public String getNewOwnerId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getNewOwnerId() { return this.newOwnerId; } - public setLectureOwner_args setNewOwnerId(String newOwnerId) { + public setLectureOwner_args setNewOwnerId(@org.apache.thrift.annotation.Nullable java.lang.String newOwnerId) { this.newOwnerId = newOwnerId; return this; } @@ -51030,13 +51888,13 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; @@ -51044,7 +51902,7 @@ public class SatelliteServer { if (value == null) { unsetLectureId(); } else { - setLectureId((String)value); + setLectureId((java.lang.String)value); } break; @@ -51052,14 +51910,15 @@ public class SatelliteServer { if (value == null) { unsetNewOwnerId(); } else { - setNewOwnerId((String)value); + setNewOwnerId((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); @@ -51071,13 +51930,13 @@ public class SatelliteServer { return getNewOwnerId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -51088,13 +51947,11 @@ public class SatelliteServer { case NEW_OWNER_ID: return isSetNewOwnerId(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof setLectureOwner_args) return this.equals((setLectureOwner_args)that); return false; @@ -51103,6 +51960,8 @@ public class SatelliteServer { public boolean equals(setLectureOwner_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -51136,24 +51995,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - boolean present_lectureId = true && (isSetLectureId()); - list.add(present_lectureId); - if (present_lectureId) - list.add(lectureId); + hashCode = hashCode * 8191 + ((isSetLectureId()) ? 131071 : 524287); + if (isSetLectureId()) + hashCode = hashCode * 8191 + lectureId.hashCode(); - boolean present_newOwnerId = true && (isSetNewOwnerId()); - list.add(present_newOwnerId); - if (present_newOwnerId) - list.add(newOwnerId); + hashCode = hashCode * 8191 + ((isSetNewOwnerId()) ? 131071 : 524287); + if (isSetNewOwnerId()) + hashCode = hashCode * 8191 + newOwnerId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -51164,7 +52020,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -51174,7 +52030,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLectureId()).compareTo(other.isSetLectureId()); + lastComparison = java.lang.Boolean.compare(isSetLectureId(), other.isSetLectureId()); if (lastComparison != 0) { return lastComparison; } @@ -51184,7 +52040,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNewOwnerId()).compareTo(other.isSetNewOwnerId()); + lastComparison = java.lang.Boolean.compare(isSetNewOwnerId(), other.isSetNewOwnerId()); if (lastComparison != 0) { return lastComparison; } @@ -51197,21 +52053,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("setLectureOwner_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("setLectureOwner_args("); boolean first = true; sb.append("userToken:"); @@ -51254,7 +52111,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -51262,13 +52119,13 @@ public class SatelliteServer { } } - private static class setLectureOwner_argsStandardSchemeFactory implements SchemeFactory { + private static class setLectureOwner_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setLectureOwner_argsStandardScheme getScheme() { return new setLectureOwner_argsStandardScheme(); } } - private static class setLectureOwner_argsStandardScheme extends StandardScheme { + private static class setLectureOwner_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setLectureOwner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -51340,18 +52197,18 @@ public class SatelliteServer { } - private static class setLectureOwner_argsTupleSchemeFactory implements SchemeFactory { + private static class setLectureOwner_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setLectureOwner_argsTupleScheme getScheme() { return new setLectureOwner_argsTupleScheme(); } } - private static class setLectureOwner_argsTupleScheme extends TupleScheme { + private static class setLectureOwner_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setLectureOwner_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -51375,8 +52232,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, setLectureOwner_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -51392,6 +52249,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class setLectureOwner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -51401,15 +52261,12 @@ public class SatelliteServer { 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 setLectureOwner_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setLectureOwner_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new setLectureOwner_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new setLectureOwner_resultTupleSchemeFactory(); - public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable TNotFoundException notFound; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -51417,10 +52274,10 @@ public class SatelliteServer { NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -51428,6 +52285,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // AUTH_ERROR @@ -51447,21 +52305,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -51470,22 +52329,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TNotFoundException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLectureOwner_result.class, metaDataMap); } @@ -51529,11 +52388,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public setLectureOwner_result setAuthError(TAuthorizationException authError) { + public setLectureOwner_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -51553,11 +52413,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TNotFoundException getNotFound() { return this.notFound; } - public setLectureOwner_result setNotFound(TNotFoundException notFound) { + public setLectureOwner_result setNotFound(@org.apache.thrift.annotation.Nullable TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -51577,11 +52438,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public setLectureOwner_result setServerError(TInvocationException serverError) { + public setLectureOwner_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -51601,7 +52463,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case AUTH_ERROR: if (value == null) { @@ -51630,7 +52492,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AUTH_ERROR: return getAuthError(); @@ -51642,13 +52505,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -51659,13 +52522,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof setLectureOwner_result) return this.equals((setLectureOwner_result)that); return false; @@ -51674,6 +52535,8 @@ public class SatelliteServer { public boolean equals(setLectureOwner_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); @@ -51707,24 +52570,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_notFound = true && (isSetNotFound()); - list.add(present_notFound); - if (present_notFound) - list.add(notFound); + hashCode = hashCode * 8191 + ((isSetNotFound()) ? 131071 : 524287); + if (isSetNotFound()) + hashCode = hashCode * 8191 + notFound.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -51735,7 +52595,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -51745,7 +52605,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = java.lang.Boolean.compare(isSetNotFound(), other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } @@ -51755,7 +52615,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -51768,21 +52628,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("setLectureOwner_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("setLectureOwner_result("); boolean first = true; sb.append("authError:"); @@ -51825,7 +52686,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -51833,13 +52694,13 @@ public class SatelliteServer { } } - private static class setLectureOwner_resultStandardSchemeFactory implements SchemeFactory { + private static class setLectureOwner_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setLectureOwner_resultStandardScheme getScheme() { return new setLectureOwner_resultStandardScheme(); } } - private static class setLectureOwner_resultStandardScheme extends StandardScheme { + private static class setLectureOwner_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, setLectureOwner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -51914,18 +52775,18 @@ public class SatelliteServer { } - private static class setLectureOwner_resultTupleSchemeFactory implements SchemeFactory { + private static class setLectureOwner_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public setLectureOwner_resultTupleScheme getScheme() { return new setLectureOwner_resultTupleScheme(); } } - private static class setLectureOwner_resultTupleScheme extends TupleScheme { + private static class setLectureOwner_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, setLectureOwner_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAuthError()) { optionals.set(0); } @@ -51949,8 +52810,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, setLectureOwner_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -51969,6 +52830,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getPredefinedData_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -51976,22 +52840,19 @@ public class SatelliteServer { 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 getPredefinedData_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPredefinedData_argsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getPredefinedData_argsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getPredefinedData_argsTupleSchemeFactory(); - public String userToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // 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"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -51999,6 +52860,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USER_TOKEN @@ -52014,21 +52876,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -52037,18 +52900,18 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPredefinedData_args.class, metaDataMap); } @@ -52056,7 +52919,7 @@ public class SatelliteServer { } public getPredefinedData_args( - String userToken) + java.lang.String userToken) { this(); this.userToken = userToken; @@ -52080,11 +52943,12 @@ public class SatelliteServer { this.userToken = null; } - public String getUserToken() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUserToken() { return this.userToken; } - public getPredefinedData_args setUserToken(String userToken) { + public getPredefinedData_args setUserToken(@org.apache.thrift.annotation.Nullable java.lang.String userToken) { this.userToken = userToken; return this; } @@ -52104,45 +52968,44 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case USER_TOKEN: if (value == null) { unsetUserToken(); } else { - setUserToken((String)value); + setUserToken((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case USER_TOKEN: return getUserToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case USER_TOKEN: return isSetUserToken(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getPredefinedData_args) return this.equals((getPredefinedData_args)that); return false; @@ -52151,6 +53014,8 @@ public class SatelliteServer { public boolean equals(getPredefinedData_args that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_userToken = true && this.isSetUserToken(); boolean that_present_userToken = true && that.isSetUserToken(); @@ -52166,14 +53031,13 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_userToken = true && (isSetUserToken()); - list.add(present_userToken); - if (present_userToken) - list.add(userToken); + hashCode = hashCode * 8191 + ((isSetUserToken()) ? 131071 : 524287); + if (isSetUserToken()) + hashCode = hashCode * 8191 + userToken.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -52184,7 +53048,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = java.lang.Boolean.compare(isSetUserToken(), other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } @@ -52197,21 +53061,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getPredefinedData_args("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getPredefinedData_args("); boolean first = true; sb.append("userToken:"); @@ -52238,7 +53103,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -52246,13 +53111,13 @@ public class SatelliteServer { } } - private static class getPredefinedData_argsStandardSchemeFactory implements SchemeFactory { + private static class getPredefinedData_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getPredefinedData_argsStandardScheme getScheme() { return new getPredefinedData_argsStandardScheme(); } } - private static class getPredefinedData_argsStandardScheme extends StandardScheme { + private static class getPredefinedData_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getPredefinedData_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -52298,18 +53163,18 @@ public class SatelliteServer { } - private static class getPredefinedData_argsTupleSchemeFactory implements SchemeFactory { + private static class getPredefinedData_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getPredefinedData_argsTupleScheme getScheme() { return new getPredefinedData_argsTupleScheme(); } } - private static class getPredefinedData_argsTupleScheme extends TupleScheme { + private static class getPredefinedData_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getPredefinedData_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } @@ -52321,8 +53186,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getPredefinedData_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -52330,6 +53195,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } public static class getPredefinedData_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -52339,15 +53207,12 @@ public class SatelliteServer { 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 getPredefinedData_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPredefinedData_resultTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getPredefinedData_resultStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getPredefinedData_resultTupleSchemeFactory(); - public PredefinedData success; // required - public TAuthorizationException authError; // required - public TInvocationException serverError; // required + public @org.apache.thrift.annotation.Nullable PredefinedData success; // required + public @org.apache.thrift.annotation.Nullable TAuthorizationException authError; // required + public @org.apache.thrift.annotation.Nullable 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 { @@ -52355,10 +53220,10 @@ public class SatelliteServer { AUTH_ERROR((short)1, "authError"), SERVER_ERROR((short)2, "serverError"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -52366,6 +53231,7 @@ public class SatelliteServer { /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS @@ -52385,21 +53251,22 @@ public class SatelliteServer { */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -52408,22 +53275,22 @@ public class SatelliteServer { return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, PredefinedData.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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAuthorizationException.class))); 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); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TInvocationException.class))); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPredefinedData_result.class, metaDataMap); } @@ -52467,11 +53334,12 @@ public class SatelliteServer { this.serverError = null; } + @org.apache.thrift.annotation.Nullable public PredefinedData getSuccess() { return this.success; } - public getPredefinedData_result setSuccess(PredefinedData success) { + public getPredefinedData_result setSuccess(@org.apache.thrift.annotation.Nullable PredefinedData success) { this.success = success; return this; } @@ -52491,11 +53359,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TAuthorizationException getAuthError() { return this.authError; } - public getPredefinedData_result setAuthError(TAuthorizationException authError) { + public getPredefinedData_result setAuthError(@org.apache.thrift.annotation.Nullable TAuthorizationException authError) { this.authError = authError; return this; } @@ -52515,11 +53384,12 @@ public class SatelliteServer { } } + @org.apache.thrift.annotation.Nullable public TInvocationException getServerError() { return this.serverError; } - public getPredefinedData_result setServerError(TInvocationException serverError) { + public getPredefinedData_result setServerError(@org.apache.thrift.annotation.Nullable TInvocationException serverError) { this.serverError = serverError; return this; } @@ -52539,7 +53409,7 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case SUCCESS: if (value == null) { @@ -52568,7 +53438,8 @@ public class SatelliteServer { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); @@ -52580,13 +53451,13 @@ public class SatelliteServer { return getServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -52597,13 +53468,11 @@ public class SatelliteServer { case SERVER_ERROR: return isSetServerError(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof getPredefinedData_result) return this.equals((getPredefinedData_result)that); return false; @@ -52612,6 +53481,8 @@ public class SatelliteServer { public boolean equals(getPredefinedData_result that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); @@ -52645,24 +53516,21 @@ public class SatelliteServer { @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287); + if (isSetSuccess()) + hashCode = hashCode * 8191 + success.hashCode(); - boolean present_authError = true && (isSetAuthError()); - list.add(present_authError); - if (present_authError) - list.add(authError); + hashCode = hashCode * 8191 + ((isSetAuthError()) ? 131071 : 524287); + if (isSetAuthError()) + hashCode = hashCode * 8191 + authError.hashCode(); - boolean present_serverError = true && (isSetServerError()); - list.add(present_serverError); - if (present_serverError) - list.add(serverError); + hashCode = hashCode * 8191 + ((isSetServerError()) ? 131071 : 524287); + if (isSetServerError()) + hashCode = hashCode * 8191 + serverError.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -52673,7 +53541,7 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } @@ -52683,7 +53551,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = java.lang.Boolean.compare(isSetAuthError(), other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } @@ -52693,7 +53561,7 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = java.lang.Boolean.compare(isSetServerError(), other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } @@ -52706,21 +53574,22 @@ public class SatelliteServer { return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("getPredefinedData_result("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("getPredefinedData_result("); boolean first = true; sb.append("success:"); @@ -52766,7 +53635,7 @@ public class SatelliteServer { } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -52774,13 +53643,13 @@ public class SatelliteServer { } } - private static class getPredefinedData_resultStandardSchemeFactory implements SchemeFactory { + private static class getPredefinedData_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getPredefinedData_resultStandardScheme getScheme() { return new getPredefinedData_resultStandardScheme(); } } - private static class getPredefinedData_resultStandardScheme extends StandardScheme { + private static class getPredefinedData_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getPredefinedData_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -52855,18 +53724,18 @@ public class SatelliteServer { } - private static class getPredefinedData_resultTupleSchemeFactory implements SchemeFactory { + private static class getPredefinedData_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public getPredefinedData_resultTupleScheme getScheme() { return new getPredefinedData_resultTupleScheme(); } } - private static class getPredefinedData_resultTupleScheme extends TupleScheme { + private static class getPredefinedData_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getPredefinedData_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } @@ -52890,8 +53759,8 @@ public class SatelliteServer { @Override public void read(org.apache.thrift.protocol.TProtocol prot, getPredefinedData_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new PredefinedData(); struct.success.read(iprot); @@ -52910,6 +53779,9 @@ public class SatelliteServer { } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteStatus.java b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteStatus.java index dc94988..59f675e 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteStatus.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteStatus.java @@ -1,51 +1,21 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class SatelliteStatus 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("SatelliteStatus"); private static final org.apache.thrift.protocol.TField AVAILABLE_STORAGE_BYTES_FIELD_DESC = new org.apache.thrift.protocol.TField("availableStorageBytes", org.apache.thrift.protocol.TType.I64, (short)1); private static final org.apache.thrift.protocol.TField SERVER_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("serverTime", org.apache.thrift.protocol.TType.I64, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new SatelliteStatusStandardSchemeFactory()); - schemes.put(TupleScheme.class, new SatelliteStatusTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new SatelliteStatusStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new SatelliteStatusTupleSchemeFactory(); public long availableStorageBytes; // required public long serverTime; // required @@ -55,10 +25,10 @@ public class SatelliteStatus implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -66,6 +36,7 @@ public class SatelliteStatus implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.AVAILABLE_STORAGE_BYTES, new org.apache.thrift.meta_data.FieldMetaData("availableStorageBytes", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.SERVER_TIME, new org.apache.thrift.meta_data.FieldMetaData("serverTime", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SatelliteStatus.class, metaDataMap); } @@ -172,16 +144,16 @@ public class SatelliteStatus implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_availableStorageBytes = true; - list.add(present_availableStorageBytes); - if (present_availableStorageBytes) - list.add(availableStorageBytes); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(availableStorageBytes); - boolean present_serverTime = true; - list.add(present_serverTime); - if (present_serverTime) - list.add(serverTime); + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(serverTime); - return list.hashCode(); + return hashCode; } @Override @@ -314,7 +281,7 @@ public class SatelliteStatus implements org.apache.thrift.TBase { + private static class SatelliteStatusStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, SatelliteStatus struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -449,18 +417,18 @@ public class SatelliteStatus implements org.apache.thrift.TBase { + private static class SatelliteStatusTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, SatelliteStatus struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetAvailableStorageBytes()) { optionals.set(0); } @@ -478,8 +446,8 @@ public class SatelliteStatus implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteUserConfig.java b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteUserConfig.java index c8c4247..30c683b 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteUserConfig.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteUserConfig.java @@ -1,50 +1,20 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class SatelliteUserConfig 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("SatelliteUserConfig"); private static final org.apache.thrift.protocol.TField EMAIL_NOTIFICATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("emailNotifications", org.apache.thrift.protocol.TType.BOOL, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new SatelliteUserConfigStandardSchemeFactory()); - schemes.put(TupleScheme.class, new SatelliteUserConfigTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new SatelliteUserConfigStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new SatelliteUserConfigTupleSchemeFactory(); public boolean emailNotifications; // required @@ -52,10 +22,10 @@ public class SatelliteUserConfig implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -63,6 +33,7 @@ public class SatelliteUserConfig implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EMAIL_NOTIFICATIONS, new org.apache.thrift.meta_data.FieldMetaData("emailNotifications", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SatelliteUserConfig.class, metaDataMap); } @@ -158,57 +130,56 @@ public class SatelliteUserConfig implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_emailNotifications = true; - list.add(present_emailNotifications); - if (present_emailNotifications) - list.add(emailNotifications); + hashCode = hashCode * 8191 + ((emailNotifications) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -250,7 +220,7 @@ public class SatelliteUserConfig implements org.apache.thrift.TBase { + private static class SatelliteUserConfigStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, SatelliteUserConfig struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -360,18 +331,18 @@ public class SatelliteUserConfig implements org.apache.thrift.TBase { + private static class SatelliteUserConfigTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, SatelliteUserConfig struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetEmailNotifications()) { optionals.set(0); } @@ -383,8 +354,8 @@ public class SatelliteUserConfig implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ServerSessionData.java b/src/main/java/org/openslx/bwlp/thrift/iface/ServerSessionData.java index 5e45328..71b5b2f 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ServerSessionData.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ServerSessionData.java @@ -1,61 +1,31 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class ServerSessionData 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("ServerSessionData"); 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)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new ServerSessionDataStandardSchemeFactory()); - schemes.put(TupleScheme.class, new ServerSessionDataTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ServerSessionDataStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ServerSessionDataTupleSchemeFactory(); - public String sessionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // 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 { SESSION_ID((short)1, "sessionId"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -63,6 +33,7 @@ public class ServerSessionData implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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"))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ServerSessionData.class, metaDataMap); } @@ -120,7 +92,7 @@ public class ServerSessionData implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_sessionId = true && (isSetSessionId()); - list.add(present_sessionId); - if (present_sessionId) - list.add(sessionId); + hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287); + if (isSetSessionId()) + hashCode = hashCode * 8191 + sessionId.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -248,7 +221,7 @@ public class ServerSessionData implements org.apache.thrift.TBase { + private static class ServerSessionDataStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, ServerSessionData struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -362,18 +336,18 @@ public class ServerSessionData implements org.apache.thrift.TBase { + private static class ServerSessionDataTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, ServerSessionData struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSessionId()) { optionals.set(0); } @@ -385,8 +359,8 @@ public class ServerSessionData implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/SessionData.java b/src/main/java/org/openslx/bwlp/thrift/iface/SessionData.java index 838b5d2..151f04e 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/SessionData.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/SessionData.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class SessionData 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("SessionData"); @@ -42,15 +15,12 @@ public class SessionData implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new SessionDataStandardSchemeFactory()); - schemes.put(TupleScheme.class, new SessionDataTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new SessionDataStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new SessionDataTupleSchemeFactory(); - public String sessionId; // required - public String authToken; // required - public String serverAddress; // required + public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String authToken; // required + public @org.apache.thrift.annotation.Nullable java.lang.String serverAddress; // 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 { @@ -58,10 +28,10 @@ public class SessionData implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class SessionData implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.AUTH_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("authToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); tmpMap.put(_Fields.SERVER_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("serverAddress", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SessionData.class, metaDataMap); } @@ -134,9 +106,9 @@ public class SessionData implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_sessionId = true && (isSetSessionId()); - list.add(present_sessionId); - if (present_sessionId) - list.add(sessionId); + hashCode = hashCode * 8191 + ((isSetSessionId()) ? 131071 : 524287); + if (isSetSessionId()) + hashCode = hashCode * 8191 + sessionId.hashCode(); - boolean present_authToken = true && (isSetAuthToken()); - list.add(present_authToken); - if (present_authToken) - list.add(authToken); + hashCode = hashCode * 8191 + ((isSetAuthToken()) ? 131071 : 524287); + if (isSetAuthToken()) + hashCode = hashCode * 8191 + authToken.hashCode(); - boolean present_serverAddress = true && (isSetServerAddress()); - list.add(present_serverAddress); - if (present_serverAddress) - list.add(serverAddress); + hashCode = hashCode * 8191 + ((isSetServerAddress()) ? 131071 : 524287); + if (isSetServerAddress()) + hashCode = hashCode * 8191 + serverAddress.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -376,7 +349,7 @@ public class SessionData implements org.apache.thrift.TBase { + private static class SessionDataStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, SessionData struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -552,18 +526,18 @@ public class SessionData implements org.apache.thrift.TBase { + private static class SessionDataTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, SessionData struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetSessionId()) { optionals.set(0); } @@ -587,8 +561,8 @@ public class SessionData implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ShareMode.java b/src/main/java/org/openslx/bwlp/thrift/iface/ShareMode.java index 3774f9d..c57583a 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ShareMode.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ShareMode.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,10 +7,7 @@ package org.openslx.bwlp.thrift.iface; -import java.util.Map; -import java.util.HashMap; -import org.apache.thrift.TEnum; - +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public enum ShareMode implements org.apache.thrift.TEnum { LOCAL(0), PUBLISH(1), @@ -34,6 +31,7 @@ public enum ShareMode implements org.apache.thrift.TEnum { * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ + @org.apache.thrift.annotation.Nullable public static ShareMode findByValue(int value) { switch (value) { case 0: diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/SscMode.java b/src/main/java/org/openslx/bwlp/thrift/iface/SscMode.java index dae1b41..01a0c5c 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/SscMode.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/SscMode.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,10 +7,7 @@ package org.openslx.bwlp.thrift.iface; -import java.util.Map; -import java.util.HashMap; -import org.apache.thrift.TEnum; - +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public enum SscMode implements org.apache.thrift.TEnum { OFF(0), ON(1), @@ -34,6 +31,7 @@ public enum SscMode implements org.apache.thrift.TEnum { * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ + @org.apache.thrift.annotation.Nullable public static SscMode findByValue(int value) { switch (value) { case 0: diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/TAuthorizationException.java b/src/main/java/org/openslx/bwlp/thrift/iface/TAuthorizationException.java index 91cce5a..5351640 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/TAuthorizationException.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/TAuthorizationException.java @@ -1,58 +1,28 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") -public class TAuthorizationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") +public class TAuthorizationException extends org.apache.thrift.TException 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("TAuthorizationException"); private static final org.apache.thrift.protocol.TField NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("number", org.apache.thrift.protocol.TType.I32, (short)1); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TAuthorizationExceptionStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TAuthorizationExceptionTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TAuthorizationExceptionStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TAuthorizationExceptionTupleSchemeFactory(); /** * * @see AuthorizationError */ - public AuthorizationError number; // required - public String message; // required + public @org.apache.thrift.annotation.Nullable AuthorizationError number; // required + public @org.apache.thrift.annotation.Nullable java.lang.String message; // 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 { @@ -63,10 +33,10 @@ public class TAuthorizationException extends TException implements org.apache.th NUMBER((short)1, "number"), MESSAGE((short)2, "message"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -74,6 +44,7 @@ public class TAuthorizationException extends TException implements org.apache.th /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NUMBER @@ -91,21 +62,22 @@ public class TAuthorizationException extends TException implements org.apache.th */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -114,20 +86,20 @@ public class TAuthorizationException extends TException implements org.apache.th return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.NUMBER, new org.apache.thrift.meta_data.FieldMetaData("number", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, AuthorizationError.class))); tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TAuthorizationException.class, metaDataMap); } @@ -136,7 +108,7 @@ public class TAuthorizationException extends TException implements org.apache.th public TAuthorizationException( AuthorizationError number, - String message) + java.lang.String message) { this(); this.number = number; @@ -169,6 +141,7 @@ public class TAuthorizationException extends TException implements org.apache.th * * @see AuthorizationError */ + @org.apache.thrift.annotation.Nullable public AuthorizationError getNumber() { return this.number; } @@ -177,7 +150,7 @@ public class TAuthorizationException extends TException implements org.apache.th * * @see AuthorizationError */ - public TAuthorizationException setNumber(AuthorizationError number) { + public TAuthorizationException setNumber(@org.apache.thrift.annotation.Nullable AuthorizationError number) { this.number = number; return this; } @@ -197,11 +170,12 @@ public class TAuthorizationException extends TException implements org.apache.th } } - public String getMessage() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getMessage() { return this.message; } - public TAuthorizationException setMessage(String message) { + public TAuthorizationException setMessage(@org.apache.thrift.annotation.Nullable java.lang.String message) { this.message = message; return this; } @@ -221,7 +195,7 @@ public class TAuthorizationException extends TException implements org.apache.th } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case NUMBER: if (value == null) { @@ -235,14 +209,15 @@ public class TAuthorizationException extends TException implements org.apache.th if (value == null) { unsetMessage(); } else { - setMessage((String)value); + setMessage((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case NUMBER: return getNumber(); @@ -251,13 +226,13 @@ public class TAuthorizationException extends TException implements org.apache.th return getMessage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -266,13 +241,11 @@ public class TAuthorizationException extends TException implements org.apache.th case MESSAGE: return isSetMessage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof TAuthorizationException) return this.equals((TAuthorizationException)that); return false; @@ -281,6 +254,8 @@ public class TAuthorizationException extends TException implements org.apache.th public boolean equals(TAuthorizationException that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_number = true && this.isSetNumber(); boolean that_present_number = true && that.isSetNumber(); @@ -305,19 +280,17 @@ public class TAuthorizationException extends TException implements org.apache.th @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_number = true && (isSetNumber()); - list.add(present_number); - if (present_number) - list.add(number.getValue()); + hashCode = hashCode * 8191 + ((isSetNumber()) ? 131071 : 524287); + if (isSetNumber()) + hashCode = hashCode * 8191 + number.getValue(); - boolean present_message = true && (isSetMessage()); - list.add(present_message); - if (present_message) - list.add(message); + hashCode = hashCode * 8191 + ((isSetMessage()) ? 131071 : 524287); + if (isSetMessage()) + hashCode = hashCode * 8191 + message.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -328,7 +301,7 @@ public class TAuthorizationException extends TException implements org.apache.th int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetNumber()).compareTo(other.isSetNumber()); + lastComparison = java.lang.Boolean.compare(isSetNumber(), other.isSetNumber()); if (lastComparison != 0) { return lastComparison; } @@ -338,7 +311,7 @@ public class TAuthorizationException extends TException implements org.apache.th return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = java.lang.Boolean.compare(isSetMessage(), other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } @@ -351,21 +324,22 @@ public class TAuthorizationException extends TException implements org.apache.th return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("TAuthorizationException("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("TAuthorizationException("); boolean first = true; sb.append("number:"); @@ -400,7 +374,7 @@ public class TAuthorizationException extends TException implements org.apache.th } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -408,13 +382,13 @@ public class TAuthorizationException extends TException implements org.apache.th } } - private static class TAuthorizationExceptionStandardSchemeFactory implements SchemeFactory { + private static class TAuthorizationExceptionStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TAuthorizationExceptionStandardScheme getScheme() { return new TAuthorizationExceptionStandardScheme(); } } - private static class TAuthorizationExceptionStandardScheme extends StandardScheme { + private static class TAuthorizationExceptionStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TAuthorizationException struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -473,18 +447,18 @@ public class TAuthorizationException extends TException implements org.apache.th } - private static class TAuthorizationExceptionTupleSchemeFactory implements SchemeFactory { + private static class TAuthorizationExceptionTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TAuthorizationExceptionTupleScheme getScheme() { return new TAuthorizationExceptionTupleScheme(); } } - private static class TAuthorizationExceptionTupleScheme extends TupleScheme { + private static class TAuthorizationExceptionTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TAuthorizationException struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetNumber()) { optionals.set(0); } @@ -502,8 +476,8 @@ public class TAuthorizationException extends TException implements org.apache.th @Override public void read(org.apache.thrift.protocol.TProtocol prot, TAuthorizationException struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.number = org.openslx.bwlp.thrift.iface.AuthorizationError.findByValue(iprot.readI32()); struct.setNumberIsSet(true); @@ -515,5 +489,8 @@ public class TAuthorizationException extends TException implements org.apache.th } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/TInvalidDateParam.java b/src/main/java/org/openslx/bwlp/thrift/iface/TInvalidDateParam.java index 4e01fbb..a168994 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/TInvalidDateParam.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/TInvalidDateParam.java @@ -1,58 +1,28 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") -public class TInvalidDateParam extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") +public class TInvalidDateParam extends org.apache.thrift.TException 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("TInvalidDateParam"); private static final org.apache.thrift.protocol.TField NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("number", org.apache.thrift.protocol.TType.I32, (short)1); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TInvalidDateParamStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TInvalidDateParamTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TInvalidDateParamStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TInvalidDateParamTupleSchemeFactory(); /** * * @see DateParamError */ - public DateParamError number; // required - public String message; // required + public @org.apache.thrift.annotation.Nullable DateParamError number; // required + public @org.apache.thrift.annotation.Nullable java.lang.String message; // 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 { @@ -63,10 +33,10 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T NUMBER((short)1, "number"), MESSAGE((short)2, "message"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -74,6 +44,7 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NUMBER @@ -91,21 +62,22 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -114,20 +86,20 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.NUMBER, new org.apache.thrift.meta_data.FieldMetaData("number", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DateParamError.class))); tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TInvalidDateParam.class, metaDataMap); } @@ -136,7 +108,7 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T public TInvalidDateParam( DateParamError number, - String message) + java.lang.String message) { this(); this.number = number; @@ -169,6 +141,7 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T * * @see DateParamError */ + @org.apache.thrift.annotation.Nullable public DateParamError getNumber() { return this.number; } @@ -177,7 +150,7 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T * * @see DateParamError */ - public TInvalidDateParam setNumber(DateParamError number) { + public TInvalidDateParam setNumber(@org.apache.thrift.annotation.Nullable DateParamError number) { this.number = number; return this; } @@ -197,11 +170,12 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T } } - public String getMessage() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getMessage() { return this.message; } - public TInvalidDateParam setMessage(String message) { + public TInvalidDateParam setMessage(@org.apache.thrift.annotation.Nullable java.lang.String message) { this.message = message; return this; } @@ -221,7 +195,7 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case NUMBER: if (value == null) { @@ -235,14 +209,15 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T if (value == null) { unsetMessage(); } else { - setMessage((String)value); + setMessage((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case NUMBER: return getNumber(); @@ -251,13 +226,13 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T return getMessage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -266,13 +241,11 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T case MESSAGE: return isSetMessage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof TInvalidDateParam) return this.equals((TInvalidDateParam)that); return false; @@ -281,6 +254,8 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T public boolean equals(TInvalidDateParam that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_number = true && this.isSetNumber(); boolean that_present_number = true && that.isSetNumber(); @@ -305,19 +280,17 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_number = true && (isSetNumber()); - list.add(present_number); - if (present_number) - list.add(number.getValue()); + hashCode = hashCode * 8191 + ((isSetNumber()) ? 131071 : 524287); + if (isSetNumber()) + hashCode = hashCode * 8191 + number.getValue(); - boolean present_message = true && (isSetMessage()); - list.add(present_message); - if (present_message) - list.add(message); + hashCode = hashCode * 8191 + ((isSetMessage()) ? 131071 : 524287); + if (isSetMessage()) + hashCode = hashCode * 8191 + message.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -328,7 +301,7 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetNumber()).compareTo(other.isSetNumber()); + lastComparison = java.lang.Boolean.compare(isSetNumber(), other.isSetNumber()); if (lastComparison != 0) { return lastComparison; } @@ -338,7 +311,7 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = java.lang.Boolean.compare(isSetMessage(), other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } @@ -351,21 +324,22 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("TInvalidDateParam("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("TInvalidDateParam("); boolean first = true; sb.append("number:"); @@ -400,7 +374,7 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -408,13 +382,13 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T } } - private static class TInvalidDateParamStandardSchemeFactory implements SchemeFactory { + private static class TInvalidDateParamStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TInvalidDateParamStandardScheme getScheme() { return new TInvalidDateParamStandardScheme(); } } - private static class TInvalidDateParamStandardScheme extends StandardScheme { + private static class TInvalidDateParamStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TInvalidDateParam struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -473,18 +447,18 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T } - private static class TInvalidDateParamTupleSchemeFactory implements SchemeFactory { + private static class TInvalidDateParamTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TInvalidDateParamTupleScheme getScheme() { return new TInvalidDateParamTupleScheme(); } } - private static class TInvalidDateParamTupleScheme extends TupleScheme { + private static class TInvalidDateParamTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TInvalidDateParam struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetNumber()) { optionals.set(0); } @@ -502,8 +476,8 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T @Override public void read(org.apache.thrift.protocol.TProtocol prot, TInvalidDateParam struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.number = org.openslx.bwlp.thrift.iface.DateParamError.findByValue(iprot.readI32()); struct.setNumberIsSet(true); @@ -515,5 +489,8 @@ public class TInvalidDateParam extends TException implements org.apache.thrift.T } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/TInvalidTokenException.java b/src/main/java/org/openslx/bwlp/thrift/iface/TInvalidTokenException.java index 0893444..cd8b66d 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/TInvalidTokenException.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/TInvalidTokenException.java @@ -1,59 +1,29 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") -public class TInvalidTokenException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") +public class TInvalidTokenException extends org.apache.thrift.TException 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("TInvalidTokenException"); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TInvalidTokenExceptionStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TInvalidTokenExceptionTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TInvalidTokenExceptionStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TInvalidTokenExceptionTupleSchemeFactory(); /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -61,6 +31,7 @@ public class TInvalidTokenException extends TException implements org.apache.thr /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: @@ -74,21 +45,22 @@ public class TInvalidTokenException extends TException implements org.apache.thr */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -97,14 +69,14 @@ public class TInvalidTokenException extends TException implements org.apache.thr return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - metaDataMap = Collections.unmodifiableMap(tmpMap); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TInvalidTokenException.class, metaDataMap); } @@ -125,32 +97,31 @@ public class TInvalidTokenException extends TException implements org.apache.thr public void clear() { } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof TInvalidTokenException) return this.equals((TInvalidTokenException)that); return false; @@ -159,15 +130,17 @@ public class TInvalidTokenException extends TException implements org.apache.thr public boolean equals(TInvalidTokenException that) { if (that == null) return false; + if (this == that) + return true; return true; } @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - return list.hashCode(); + return hashCode; } @Override @@ -181,21 +154,22 @@ public class TInvalidTokenException extends TException implements org.apache.thr return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("TInvalidTokenException("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("TInvalidTokenException("); boolean first = true; sb.append(")"); @@ -215,7 +189,7 @@ public class TInvalidTokenException extends TException implements org.apache.thr } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -223,13 +197,13 @@ public class TInvalidTokenException extends TException implements org.apache.thr } } - private static class TInvalidTokenExceptionStandardSchemeFactory implements SchemeFactory { + private static class TInvalidTokenExceptionStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TInvalidTokenExceptionStandardScheme getScheme() { return new TInvalidTokenExceptionStandardScheme(); } } - private static class TInvalidTokenExceptionStandardScheme extends StandardScheme { + private static class TInvalidTokenExceptionStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TInvalidTokenException struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -262,24 +236,27 @@ public class TInvalidTokenException extends TException implements org.apache.thr } - private static class TInvalidTokenExceptionTupleSchemeFactory implements SchemeFactory { + private static class TInvalidTokenExceptionTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TInvalidTokenExceptionTupleScheme getScheme() { return new TInvalidTokenExceptionTupleScheme(); } } - private static class TInvalidTokenExceptionTupleScheme extends TupleScheme { + private static class TInvalidTokenExceptionTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TInvalidTokenException struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, TInvalidTokenException struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/TInvocationException.java b/src/main/java/org/openslx/bwlp/thrift/iface/TInvocationException.java index 3ea824b..da821f1 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/TInvocationException.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/TInvocationException.java @@ -1,58 +1,28 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") -public class TInvocationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") +public class TInvocationException extends org.apache.thrift.TException 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("TInvocationException"); private static final org.apache.thrift.protocol.TField NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("number", org.apache.thrift.protocol.TType.I32, (short)1); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TInvocationExceptionStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TInvocationExceptionTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TInvocationExceptionStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TInvocationExceptionTupleSchemeFactory(); /** * * @see InvocationError */ - public InvocationError number; // required - public String message; // required + public @org.apache.thrift.annotation.Nullable InvocationError number; // required + public @org.apache.thrift.annotation.Nullable java.lang.String message; // 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 { @@ -63,10 +33,10 @@ public class TInvocationException extends TException implements org.apache.thrif NUMBER((short)1, "number"), MESSAGE((short)2, "message"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -74,6 +44,7 @@ public class TInvocationException extends TException implements org.apache.thrif /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NUMBER @@ -91,21 +62,22 @@ public class TInvocationException extends TException implements org.apache.thrif */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -114,20 +86,20 @@ public class TInvocationException extends TException implements org.apache.thrif return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.NUMBER, new org.apache.thrift.meta_data.FieldMetaData("number", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, InvocationError.class))); tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TInvocationException.class, metaDataMap); } @@ -136,7 +108,7 @@ public class TInvocationException extends TException implements org.apache.thrif public TInvocationException( InvocationError number, - String message) + java.lang.String message) { this(); this.number = number; @@ -169,6 +141,7 @@ public class TInvocationException extends TException implements org.apache.thrif * * @see InvocationError */ + @org.apache.thrift.annotation.Nullable public InvocationError getNumber() { return this.number; } @@ -177,7 +150,7 @@ public class TInvocationException extends TException implements org.apache.thrif * * @see InvocationError */ - public TInvocationException setNumber(InvocationError number) { + public TInvocationException setNumber(@org.apache.thrift.annotation.Nullable InvocationError number) { this.number = number; return this; } @@ -197,11 +170,12 @@ public class TInvocationException extends TException implements org.apache.thrif } } - public String getMessage() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getMessage() { return this.message; } - public TInvocationException setMessage(String message) { + public TInvocationException setMessage(@org.apache.thrift.annotation.Nullable java.lang.String message) { this.message = message; return this; } @@ -221,7 +195,7 @@ public class TInvocationException extends TException implements org.apache.thrif } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case NUMBER: if (value == null) { @@ -235,14 +209,15 @@ public class TInvocationException extends TException implements org.apache.thrif if (value == null) { unsetMessage(); } else { - setMessage((String)value); + setMessage((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case NUMBER: return getNumber(); @@ -251,13 +226,13 @@ public class TInvocationException extends TException implements org.apache.thrif return getMessage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -266,13 +241,11 @@ public class TInvocationException extends TException implements org.apache.thrif case MESSAGE: return isSetMessage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof TInvocationException) return this.equals((TInvocationException)that); return false; @@ -281,6 +254,8 @@ public class TInvocationException extends TException implements org.apache.thrif public boolean equals(TInvocationException that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_number = true && this.isSetNumber(); boolean that_present_number = true && that.isSetNumber(); @@ -305,19 +280,17 @@ public class TInvocationException extends TException implements org.apache.thrif @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_number = true && (isSetNumber()); - list.add(present_number); - if (present_number) - list.add(number.getValue()); + hashCode = hashCode * 8191 + ((isSetNumber()) ? 131071 : 524287); + if (isSetNumber()) + hashCode = hashCode * 8191 + number.getValue(); - boolean present_message = true && (isSetMessage()); - list.add(present_message); - if (present_message) - list.add(message); + hashCode = hashCode * 8191 + ((isSetMessage()) ? 131071 : 524287); + if (isSetMessage()) + hashCode = hashCode * 8191 + message.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -328,7 +301,7 @@ public class TInvocationException extends TException implements org.apache.thrif int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetNumber()).compareTo(other.isSetNumber()); + lastComparison = java.lang.Boolean.compare(isSetNumber(), other.isSetNumber()); if (lastComparison != 0) { return lastComparison; } @@ -338,7 +311,7 @@ public class TInvocationException extends TException implements org.apache.thrif return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = java.lang.Boolean.compare(isSetMessage(), other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } @@ -351,21 +324,22 @@ public class TInvocationException extends TException implements org.apache.thrif return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("TInvocationException("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("TInvocationException("); boolean first = true; sb.append("number:"); @@ -400,7 +374,7 @@ public class TInvocationException extends TException implements org.apache.thrif } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -408,13 +382,13 @@ public class TInvocationException extends TException implements org.apache.thrif } } - private static class TInvocationExceptionStandardSchemeFactory implements SchemeFactory { + private static class TInvocationExceptionStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TInvocationExceptionStandardScheme getScheme() { return new TInvocationExceptionStandardScheme(); } } - private static class TInvocationExceptionStandardScheme extends StandardScheme { + private static class TInvocationExceptionStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TInvocationException struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -473,18 +447,18 @@ public class TInvocationException extends TException implements org.apache.thrif } - private static class TInvocationExceptionTupleSchemeFactory implements SchemeFactory { + private static class TInvocationExceptionTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TInvocationExceptionTupleScheme getScheme() { return new TInvocationExceptionTupleScheme(); } } - private static class TInvocationExceptionTupleScheme extends TupleScheme { + private static class TInvocationExceptionTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TInvocationException struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetNumber()) { optionals.set(0); } @@ -502,8 +476,8 @@ public class TInvocationException extends TException implements org.apache.thrif @Override public void read(org.apache.thrift.protocol.TProtocol prot, TInvocationException struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.number = org.openslx.bwlp.thrift.iface.InvocationError.findByValue(iprot.readI32()); struct.setNumberIsSet(true); @@ -515,5 +489,8 @@ public class TInvocationException extends TException implements org.apache.thrif } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/TNotFoundException.java b/src/main/java/org/openslx/bwlp/thrift/iface/TNotFoundException.java index 46776e8..b9ae5eb 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/TNotFoundException.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/TNotFoundException.java @@ -1,61 +1,31 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") -public class TNotFoundException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") +public class TNotFoundException extends org.apache.thrift.TException 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("TNotFoundException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TNotFoundExceptionStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TNotFoundExceptionTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TNotFoundExceptionStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TNotFoundExceptionTupleSchemeFactory(); - public String message; // required + public @org.apache.thrift.annotation.Nullable java.lang.String message; // 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 { MESSAGE((short)1, "message"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -63,6 +33,7 @@ public class TNotFoundException extends TException implements org.apache.thrift. /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // MESSAGE @@ -78,21 +49,22 @@ public class TNotFoundException extends TException implements org.apache.thrift. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -101,18 +73,18 @@ public class TNotFoundException extends TException implements org.apache.thrift. return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TNotFoundException.class, metaDataMap); } @@ -120,7 +92,7 @@ public class TNotFoundException extends TException implements org.apache.thrift. } public TNotFoundException( - String message) + java.lang.String message) { this(); this.message = message; @@ -144,11 +116,12 @@ public class TNotFoundException extends TException implements org.apache.thrift. this.message = null; } - public String getMessage() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getMessage() { return this.message; } - public TNotFoundException setMessage(String message) { + public TNotFoundException setMessage(@org.apache.thrift.annotation.Nullable java.lang.String message) { this.message = message; return this; } @@ -168,45 +141,44 @@ public class TNotFoundException extends TException implements org.apache.thrift. } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case MESSAGE: if (value == null) { unsetMessage(); } else { - setMessage((String)value); + setMessage((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case MESSAGE: return getMessage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case MESSAGE: return isSetMessage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof TNotFoundException) return this.equals((TNotFoundException)that); return false; @@ -215,6 +187,8 @@ public class TNotFoundException extends TException implements org.apache.thrift. public boolean equals(TNotFoundException that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_message = true && this.isSetMessage(); boolean that_present_message = true && that.isSetMessage(); @@ -230,14 +204,13 @@ public class TNotFoundException extends TException implements org.apache.thrift. @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_message = true && (isSetMessage()); - list.add(present_message); - if (present_message) - list.add(message); + hashCode = hashCode * 8191 + ((isSetMessage()) ? 131071 : 524287); + if (isSetMessage()) + hashCode = hashCode * 8191 + message.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -248,7 +221,7 @@ public class TNotFoundException extends TException implements org.apache.thrift. int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = java.lang.Boolean.compare(isSetMessage(), other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } @@ -261,21 +234,22 @@ public class TNotFoundException extends TException implements org.apache.thrift. return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("TNotFoundException("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("TNotFoundException("); boolean first = true; sb.append("message:"); @@ -302,7 +276,7 @@ public class TNotFoundException extends TException implements org.apache.thrift. } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -310,13 +284,13 @@ public class TNotFoundException extends TException implements org.apache.thrift. } } - private static class TNotFoundExceptionStandardSchemeFactory implements SchemeFactory { + private static class TNotFoundExceptionStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TNotFoundExceptionStandardScheme getScheme() { return new TNotFoundExceptionStandardScheme(); } } - private static class TNotFoundExceptionStandardScheme extends StandardScheme { + private static class TNotFoundExceptionStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TNotFoundException struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -362,18 +336,18 @@ public class TNotFoundException extends TException implements org.apache.thrift. } - private static class TNotFoundExceptionTupleSchemeFactory implements SchemeFactory { + private static class TNotFoundExceptionTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TNotFoundExceptionTupleScheme getScheme() { return new TNotFoundExceptionTupleScheme(); } } - private static class TNotFoundExceptionTupleScheme extends TupleScheme { + private static class TNotFoundExceptionTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TNotFoundException struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetMessage()) { optionals.set(0); } @@ -385,8 +359,8 @@ public class TNotFoundException extends TException implements org.apache.thrift. @Override public void read(org.apache.thrift.protocol.TProtocol prot, TNotFoundException struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.message = iprot.readString(); struct.setMessageIsSet(true); @@ -394,5 +368,8 @@ public class TNotFoundException extends TException implements org.apache.thrift. } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/TTransferRejectedException.java b/src/main/java/org/openslx/bwlp/thrift/iface/TTransferRejectedException.java index 4ff27b2..441bc8d 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/TTransferRejectedException.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/TTransferRejectedException.java @@ -1,61 +1,31 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") -public class TTransferRejectedException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") +public class TTransferRejectedException extends org.apache.thrift.TException 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("TTransferRejectedException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TTransferRejectedExceptionStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TTransferRejectedExceptionTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TTransferRejectedExceptionStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TTransferRejectedExceptionTupleSchemeFactory(); - public String message; // required + public @org.apache.thrift.annotation.Nullable java.lang.String message; // 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 { MESSAGE((short)1, "message"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -63,6 +33,7 @@ public class TTransferRejectedException extends TException implements org.apache /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // MESSAGE @@ -78,21 +49,22 @@ public class TTransferRejectedException extends TException implements org.apache */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ - public static _Fields findByName(String name) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -101,18 +73,18 @@ public class TTransferRejectedException extends TException implements org.apache return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TTransferRejectedException.class, metaDataMap); } @@ -120,7 +92,7 @@ public class TTransferRejectedException extends TException implements org.apache } public TTransferRejectedException( - String message) + java.lang.String message) { this(); this.message = message; @@ -144,11 +116,12 @@ public class TTransferRejectedException extends TException implements org.apache this.message = null; } - public String getMessage() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getMessage() { return this.message; } - public TTransferRejectedException setMessage(String message) { + public TTransferRejectedException setMessage(@org.apache.thrift.annotation.Nullable java.lang.String message) { this.message = message; return this; } @@ -168,45 +141,44 @@ public class TTransferRejectedException extends TException implements org.apache } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case MESSAGE: if (value == null) { unsetMessage(); } else { - setMessage((String)value); + setMessage((java.lang.String)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case MESSAGE: return getMessage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { - throw new IllegalArgumentException(); + throw new java.lang.IllegalArgumentException(); } switch (field) { case MESSAGE: return isSetMessage(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof TTransferRejectedException) return this.equals((TTransferRejectedException)that); return false; @@ -215,6 +187,8 @@ public class TTransferRejectedException extends TException implements org.apache public boolean equals(TTransferRejectedException that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_message = true && this.isSetMessage(); boolean that_present_message = true && that.isSetMessage(); @@ -230,14 +204,13 @@ public class TTransferRejectedException extends TException implements org.apache @Override public int hashCode() { - List list = new ArrayList(); + int hashCode = 1; - boolean present_message = true && (isSetMessage()); - list.add(present_message); - if (present_message) - list.add(message); + hashCode = hashCode * 8191 + ((isSetMessage()) ? 131071 : 524287); + if (isSetMessage()) + hashCode = hashCode * 8191 + message.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -248,7 +221,7 @@ public class TTransferRejectedException extends TException implements org.apache int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = java.lang.Boolean.compare(isSetMessage(), other.isSetMessage()); if (lastComparison != 0) { return lastComparison; } @@ -261,21 +234,22 @@ public class TTransferRejectedException extends TException implements org.apache return 0; } + @org.apache.thrift.annotation.Nullable public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("TTransferRejectedException("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("TTransferRejectedException("); boolean first = true; sb.append("message:"); @@ -302,7 +276,7 @@ public class TTransferRejectedException extends TException implements org.apache } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { @@ -310,13 +284,13 @@ public class TTransferRejectedException extends TException implements org.apache } } - private static class TTransferRejectedExceptionStandardSchemeFactory implements SchemeFactory { + private static class TTransferRejectedExceptionStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TTransferRejectedExceptionStandardScheme getScheme() { return new TTransferRejectedExceptionStandardScheme(); } } - private static class TTransferRejectedExceptionStandardScheme extends StandardScheme { + private static class TTransferRejectedExceptionStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TTransferRejectedException struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -362,18 +336,18 @@ public class TTransferRejectedException extends TException implements org.apache } - private static class TTransferRejectedExceptionTupleSchemeFactory implements SchemeFactory { + private static class TTransferRejectedExceptionTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public TTransferRejectedExceptionTupleScheme getScheme() { return new TTransferRejectedExceptionTupleScheme(); } } - private static class TTransferRejectedExceptionTupleScheme extends TupleScheme { + private static class TTransferRejectedExceptionTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TTransferRejectedException struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetMessage()) { optionals.set(0); } @@ -385,8 +359,8 @@ public class TTransferRejectedException extends TException implements org.apache @Override public void read(org.apache.thrift.protocol.TProtocol prot, TTransferRejectedException struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.message = iprot.readString(); struct.setMessageIsSet(true); @@ -394,5 +368,8 @@ public class TTransferRejectedException extends TException implements org.apache } } + private static S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } 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 40d5680..692d3df 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-06") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class TransferInformation 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("TransferInformation"); @@ -44,17 +17,14 @@ public class TransferInformation implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TransferInformationStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TransferInformationTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TransferInformationStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TransferInformationTupleSchemeFactory(); - public String token; // required + public @org.apache.thrift.annotation.Nullable java.lang.String token; // required public int plainPort; // required public int sslPort; // required - public List blockHashes; // optional - public ByteBuffer machineDescription; // optional + public @org.apache.thrift.annotation.Nullable java.util.List blockHashes; // optional + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer machineDescription; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -64,10 +34,10 @@ public class TransferInformation implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -75,6 +45,7 @@ public class TransferInformation implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); tmpMap.put(_Fields.PLAIN_PORT, new org.apache.thrift.meta_data.FieldMetaData("plainPort", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -145,7 +117,7 @@ public class TransferInformation implements org.apache.thrift.TBase __this__blockHashes = new ArrayList(other.blockHashes); + java.util.List __this__blockHashes = new java.util.ArrayList(other.blockHashes); this.blockHashes = __this__blockHashes; } if (other.isSetMachineDescription()) { @@ -199,11 +171,12 @@ public class TransferInformation implements org.apache.thrift.TBase getBlockHashesIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getBlockHashesIterator() { return (this.blockHashes == null) ? null : this.blockHashes.iterator(); } - public void addToBlockHashes(ByteBuffer elem) { + public void addToBlockHashes(java.nio.ByteBuffer elem) { if (this.blockHashes == null) { - this.blockHashes = new ArrayList(); + this.blockHashes = new java.util.ArrayList(); } this.blockHashes.add(elem); } - public List getBlockHashes() { + @org.apache.thrift.annotation.Nullable + public java.util.List getBlockHashes() { return this.blockHashes; } - public TransferInformation setBlockHashes(List blockHashes) { + public TransferInformation setBlockHashes(@org.apache.thrift.annotation.Nullable java.util.List blockHashes) { this.blockHashes = blockHashes; return this; } @@ -313,16 +288,16 @@ public class TransferInformation implements org.apache.thrift.TBase)value); + setBlockHashes((java.util.List)value); } break; @@ -380,14 +355,19 @@ public class TransferInformation implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_token = true && (isSetToken()); - list.add(present_token); - if (present_token) - list.add(token); + hashCode = hashCode * 8191 + ((isSetToken()) ? 131071 : 524287); + if (isSetToken()) + hashCode = hashCode * 8191 + token.hashCode(); - boolean present_plainPort = true; - list.add(present_plainPort); - if (present_plainPort) - list.add(plainPort); + hashCode = hashCode * 8191 + plainPort; - boolean present_sslPort = true; - list.add(present_sslPort); - if (present_sslPort) - list.add(sslPort); + hashCode = hashCode * 8191 + sslPort; - boolean present_blockHashes = true && (isSetBlockHashes()); - list.add(present_blockHashes); - if (present_blockHashes) - list.add(blockHashes); + hashCode = hashCode * 8191 + ((isSetBlockHashes()) ? 131071 : 524287); + if (isSetBlockHashes()) + hashCode = hashCode * 8191 + blockHashes.hashCode(); - boolean present_machineDescription = true && (isSetMachineDescription()); - list.add(present_machineDescription); - if (present_machineDescription) - list.add(machineDescription); + hashCode = hashCode * 8191 + ((isSetMachineDescription()) ? 131071 : 524287); + if (isSetMachineDescription()) + hashCode = hashCode * 8191 + machineDescription.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -530,7 +501,7 @@ public class TransferInformation implements org.apache.thrift.TBase { + private static class TransferInformationStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TransferInformation struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -707,13 +679,13 @@ public class TransferInformation implements org.apache.thrift.TBase(_list178.size); - ByteBuffer _elem179; - for (int _i180 = 0; _i180 < _list178.size; ++_i180) + org.apache.thrift.protocol.TList _list290 = iprot.readListBegin(); + struct.blockHashes = new java.util.ArrayList(_list290.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem291; + for (int _i292 = 0; _i292 < _list290.size; ++_i292) { - _elem179 = iprot.readBinary(); - struct.blockHashes.add(_elem179); + _elem291 = iprot.readBinary(); + struct.blockHashes.add(_elem291); } iprot.readListEnd(); } @@ -761,9 +733,9 @@ public class TransferInformation implements org.apache.thrift.TBase { + private static class TransferInformationTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TransferInformation struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetToken()) { optionals.set(0); } @@ -823,9 +795,9 @@ public class TransferInformation implements org.apache.thrift.TBase(_list183.size); - ByteBuffer _elem184; - for (int _i185 = 0; _i185 < _list183.size; ++_i185) + org.apache.thrift.protocol.TList _list295 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.blockHashes = new java.util.ArrayList(_list295.size); + @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer _elem296; + for (int _i297 = 0; _i297 < _list295.size; ++_i297) { - _elem184 = iprot.readBinary(); - struct.blockHashes.add(_elem184); + _elem296 = iprot.readBinary(); + struct.blockHashes.add(_elem296); } } struct.setBlockHashesIsSet(true); @@ -870,5 +842,8 @@ public class TransferInformation implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/TransferState.java b/src/main/java/org/openslx/bwlp/thrift/iface/TransferState.java index 972c6c0..80301e6 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/TransferState.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/TransferState.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,10 +7,7 @@ package org.openslx.bwlp.thrift.iface; -import java.util.Map; -import java.util.HashMap; -import org.apache.thrift.TEnum; - +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public enum TransferState implements org.apache.thrift.TEnum { IDLE(0), WORKING(1), @@ -34,6 +31,7 @@ public enum TransferState implements org.apache.thrift.TEnum { * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ + @org.apache.thrift.annotation.Nullable public static TransferState findByValue(int value) { switch (value) { case 0: diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/TransferStatus.java b/src/main/java/org/openslx/bwlp/thrift/iface/TransferStatus.java index 986e27d..c643e34 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/TransferStatus.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/TransferStatus.java @@ -1,58 +1,28 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class TransferStatus 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("TransferStatus"); private static final org.apache.thrift.protocol.TField BLOCK_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("blockStatus", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.I32, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new TransferStatusStandardSchemeFactory()); - schemes.put(TupleScheme.class, new TransferStatusTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TransferStatusStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TransferStatusTupleSchemeFactory(); - public ByteBuffer blockStatus; // required + public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer blockStatus; // required /** * * @see TransferState */ - public TransferState state; // required + public @org.apache.thrift.annotation.Nullable TransferState state; // 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 { @@ -63,10 +33,10 @@ public class TransferStatus implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -74,6 +44,7 @@ public class TransferStatus implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.BLOCK_STATUS, new org.apache.thrift.meta_data.FieldMetaData("blockStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.STATE, new org.apache.thrift.meta_data.FieldMetaData("state", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransferState.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TransferStatus.class, metaDataMap); } @@ -135,7 +107,7 @@ public class TransferStatus implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_blockStatus = true && (isSetBlockStatus()); - list.add(present_blockStatus); - if (present_blockStatus) - list.add(blockStatus); + hashCode = hashCode * 8191 + ((isSetBlockStatus()) ? 131071 : 524287); + if (isSetBlockStatus()) + hashCode = hashCode * 8191 + blockStatus.hashCode(); - boolean present_state = true && (isSetState()); - list.add(present_state); - if (present_state) - list.add(state.getValue()); + hashCode = hashCode * 8191 + ((isSetState()) ? 131071 : 524287); + if (isSetState()) + hashCode = hashCode * 8191 + state.getValue(); - return list.hashCode(); + return hashCode; } @Override @@ -338,7 +314,7 @@ public class TransferStatus implements org.apache.thrift.TBase { + private static class TransferStatusStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, TransferStatus struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -483,18 +460,18 @@ public class TransferStatus implements org.apache.thrift.TBase { + private static class TransferStatusTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, TransferStatus struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetBlockStatus()) { optionals.set(0); } @@ -512,8 +489,8 @@ public class TransferStatus implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/UploadOptions.java b/src/main/java/org/openslx/bwlp/thrift/iface/UploadOptions.java index 3a36fce..5d80c14 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/UploadOptions.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/UploadOptions.java @@ -1,50 +1,20 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-05-11") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class UploadOptions 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("UploadOptions"); private static final org.apache.thrift.protocol.TField SERVER_SIDE_COPYING_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSideCopying", org.apache.thrift.protocol.TType.BOOL, (short)1); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new UploadOptionsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new UploadOptionsTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new UploadOptionsStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new UploadOptionsTupleSchemeFactory(); public boolean serverSideCopying; // required @@ -52,10 +22,10 @@ public class UploadOptions implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -63,6 +33,7 @@ public class UploadOptions implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SERVER_SIDE_COPYING, new org.apache.thrift.meta_data.FieldMetaData("serverSideCopying", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UploadOptions.class, metaDataMap); } @@ -158,57 +130,56 @@ public class UploadOptions implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_serverSideCopying = true; - list.add(present_serverSideCopying); - if (present_serverSideCopying) - list.add(serverSideCopying); + hashCode = hashCode * 8191 + ((serverSideCopying) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -250,7 +220,7 @@ public class UploadOptions implements org.apache.thrift.TBase { + private static class UploadOptionsStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, UploadOptions struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -360,18 +331,18 @@ public class UploadOptions implements org.apache.thrift.TBase { + private static class UploadOptionsTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, UploadOptions struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetServerSideCopying()) { optionals.set(0); } @@ -383,8 +354,8 @@ public class UploadOptions implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/UserInfo.java b/src/main/java/org/openslx/bwlp/thrift/iface/UserInfo.java index ced8149..04a0f3c 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/UserInfo.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/UserInfo.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class UserInfo 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("UserInfo"); @@ -45,22 +18,19 @@ public class UserInfo implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new UserInfoStandardSchemeFactory()); - schemes.put(TupleScheme.class, new UserInfoTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new UserInfoStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new UserInfoTupleSchemeFactory(); - public String userId; // required - public String firstName; // required - public String lastName; // required - public String eMail; // required - public String organizationId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String userId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String firstName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lastName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String eMail; // required + public @org.apache.thrift.annotation.Nullable java.lang.String organizationId; // required /** * * @see Role */ - public Role role; // optional + public @org.apache.thrift.annotation.Nullable Role role; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -75,10 +45,10 @@ public class UserInfo implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -86,6 +56,7 @@ public class UserInfo implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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))); tmpMap.put(_Fields.FIRST_NAME, new org.apache.thrift.meta_data.FieldMetaData("firstName", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -156,7 +128,7 @@ public class UserInfo implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_userId = true && (isSetUserId()); - list.add(present_userId); - if (present_userId) - list.add(userId); + hashCode = hashCode * 8191 + ((isSetUserId()) ? 131071 : 524287); + if (isSetUserId()) + hashCode = hashCode * 8191 + userId.hashCode(); - boolean present_firstName = true && (isSetFirstName()); - list.add(present_firstName); - if (present_firstName) - list.add(firstName); + hashCode = hashCode * 8191 + ((isSetFirstName()) ? 131071 : 524287); + if (isSetFirstName()) + hashCode = hashCode * 8191 + firstName.hashCode(); - boolean present_lastName = true && (isSetLastName()); - list.add(present_lastName); - if (present_lastName) - list.add(lastName); + hashCode = hashCode * 8191 + ((isSetLastName()) ? 131071 : 524287); + if (isSetLastName()) + hashCode = hashCode * 8191 + lastName.hashCode(); - boolean present_eMail = true && (isSetEMail()); - list.add(present_eMail); - if (present_eMail) - list.add(eMail); + hashCode = hashCode * 8191 + ((isSetEMail()) ? 131071 : 524287); + if (isSetEMail()) + hashCode = hashCode * 8191 + eMail.hashCode(); - boolean present_organizationId = true && (isSetOrganizationId()); - list.add(present_organizationId); - if (present_organizationId) - list.add(organizationId); + hashCode = hashCode * 8191 + ((isSetOrganizationId()) ? 131071 : 524287); + if (isSetOrganizationId()) + hashCode = hashCode * 8191 + organizationId.hashCode(); - boolean present_role = true && (isSetRole()); - list.add(present_role); - if (present_role) - list.add(role.getValue()); + hashCode = hashCode * 8191 + ((isSetRole()) ? 131071 : 524287); + if (isSetRole()) + hashCode = hashCode * 8191 + role.getValue(); - return list.hashCode(); + return hashCode; } @Override @@ -583,7 +556,7 @@ public class UserInfo implements org.apache.thrift.TBase { + private static class UserInfoStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, UserInfo struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -856,18 +830,18 @@ public class UserInfo implements org.apache.thrift.TBase { + private static class UserInfoTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, UserInfo struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUserId()) { optionals.set(0); } @@ -909,8 +883,8 @@ public class UserInfo implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/Virtualizer.java b/src/main/java/org/openslx/bwlp/thrift/iface/Virtualizer.java index 8cf4d13..a35e827 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/Virtualizer.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/Virtualizer.java @@ -1,64 +1,34 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class Virtualizer 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("Virtualizer"); private static final org.apache.thrift.protocol.TField VIRT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("virtId", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField VIRT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("virtName", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new VirtualizerStandardSchemeFactory()); - schemes.put(TupleScheme.class, new VirtualizerTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new VirtualizerStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new VirtualizerTupleSchemeFactory(); - public String virtId; // required - public String virtName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String virtId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String virtName; // 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 { VIRT_ID((short)1, "virtId"), VIRT_NAME((short)2, "virtName"); - private static final Map byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -66,6 +36,7 @@ public class Virtualizer implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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.VIRT_NAME, new org.apache.thrift.meta_data.FieldMetaData("virtName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Virtualizer.class, metaDataMap); } @@ -127,8 +99,8 @@ public class Virtualizer implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_virtId = true && (isSetVirtId()); - list.add(present_virtId); - if (present_virtId) - list.add(virtId); + hashCode = hashCode * 8191 + ((isSetVirtId()) ? 131071 : 524287); + if (isSetVirtId()) + hashCode = hashCode * 8191 + virtId.hashCode(); - boolean present_virtName = true && (isSetVirtName()); - list.add(present_virtName); - if (present_virtName) - list.add(virtName); + hashCode = hashCode * 8191 + ((isSetVirtName()) ? 131071 : 524287); + if (isSetVirtName()) + hashCode = hashCode * 8191 + virtName.hashCode(); - return list.hashCode(); + return hashCode; } @Override @@ -312,7 +285,7 @@ public class Virtualizer implements org.apache.thrift.TBase { + private static class VirtualizerStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, Virtualizer struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -457,18 +431,18 @@ public class Virtualizer implements org.apache.thrift.TBase { + private static class VirtualizerTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, Virtualizer struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetVirtId()) { optionals.set(0); } @@ -486,8 +460,8 @@ public class Virtualizer implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/WhoamiInfo.java b/src/main/java/org/openslx/bwlp/thrift/iface/WhoamiInfo.java index ad22344..9b45c29 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/WhoamiInfo.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/WhoamiInfo.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-04") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class WhoamiInfo 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("WhoamiInfo"); @@ -42,13 +15,10 @@ public class WhoamiInfo implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new WhoamiInfoStandardSchemeFactory()); - schemes.put(TupleScheme.class, new WhoamiInfoTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new WhoamiInfoStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new WhoamiInfoTupleSchemeFactory(); - public UserInfo user; // required + public @org.apache.thrift.annotation.Nullable UserInfo user; // required public boolean isSuperUser; // required public boolean canListImages; // required @@ -58,10 +28,10 @@ public class WhoamiInfo implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -69,6 +39,7 @@ public class WhoamiInfo implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserInfo.class))); tmpMap.put(_Fields.IS_SUPER_USER, new org.apache.thrift.meta_data.FieldMetaData("isSuperUser", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.CAN_LIST_IMAGES, new org.apache.thrift.meta_data.FieldMetaData("canListImages", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(WhoamiInfo.class, metaDataMap); } @@ -174,11 +146,12 @@ public class WhoamiInfo implements org.apache.thrift.TBase list = new ArrayList(); + int hashCode = 1; - boolean present_user = true && (isSetUser()); - list.add(present_user); - if (present_user) - list.add(user); + hashCode = hashCode * 8191 + ((isSetUser()) ? 131071 : 524287); + if (isSetUser()) + hashCode = hashCode * 8191 + user.hashCode(); - boolean present_isSuperUser = true; - list.add(present_isSuperUser); - if (present_isSuperUser) - list.add(isSuperUser); + hashCode = hashCode * 8191 + ((isSuperUser) ? 131071 : 524287); - boolean present_canListImages = true; - list.add(present_canListImages); - if (present_canListImages) - list.add(canListImages); + hashCode = hashCode * 8191 + ((canListImages) ? 131071 : 524287); - return list.hashCode(); + return hashCode; } @Override @@ -378,7 +345,7 @@ public class WhoamiInfo implements org.apache.thrift.TBase { + private static class WhoamiInfoStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, WhoamiInfo struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -548,18 +516,18 @@ public class WhoamiInfo implements org.apache.thrift.TBase { + private static class WhoamiInfoTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, WhoamiInfo struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetUser()) { optionals.set(0); } @@ -583,8 +551,8 @@ public class WhoamiInfo implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } diff --git a/src/main/java/org/openslx/thrifthelper/ThriftManager.java b/src/main/java/org/openslx/thrifthelper/ThriftManager.java index 8bb5dd7..4971b97 100644 --- a/src/main/java/org/openslx/thrifthelper/ThriftManager.java +++ b/src/main/java/org/openslx/thrifthelper/ThriftManager.java @@ -13,9 +13,9 @@ import org.apache.logging.log4j.Logger; import org.apache.thrift.TServiceClient; import org.apache.thrift.protocol.TBinaryProtocol; import org.apache.thrift.protocol.TProtocol; -import org.apache.thrift.transport.TFramedTransport; import org.apache.thrift.transport.TSocket; import org.apache.thrift.transport.TTransportException; +import org.apache.thrift.transport.layered.TFramedTransport; import org.openslx.bwlp.thrift.iface.MasterServer; import org.openslx.bwlp.thrift.iface.SatelliteServer; import org.openslx.thrifthelper.ThriftHandler.WantClientCallback; -- cgit v1.2.3-55-g7522