summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java17247
1 files changed, 9970 insertions, 7277 deletions
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..30ab7c6 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java
@@ -1,236 +1,211 @@
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.17.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")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.17.0)", date = "2022-11-03")
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
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<ByteBuffer> 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<java.nio.ByteBuffer> blockHashes, java.nio.ByteBuffer machineDescription) throws TTransferRejectedException, TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException;
- public void updateBlockHashes(String uploadToken, List<ByteBuffer> blockHashes, String userToken) throws TInvalidTokenException, org.apache.thrift.TException;
+ public void updateBlockHashes(java.lang.String uploadToken, java.util.List<java.nio.ByteBuffer> 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<UserInfo> getUserList(String userToken, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
+ public java.util.List<UserInfo> 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<OperatingSystem> getOperatingSystems() throws org.apache.thrift.TException;
+ public java.util.List<OperatingSystem> getOperatingSystems() throws org.apache.thrift.TException;
- public List<Virtualizer> getVirtualizers() throws org.apache.thrift.TException;
+ public java.util.List<Virtualizer> getVirtualizers() throws org.apache.thrift.TException;
- public List<Organization> getAllOrganizations() throws org.apache.thrift.TException;
+ public java.util.List<Organization> getAllOrganizations() throws org.apache.thrift.TException;
- public List<Location> getLocations() throws org.apache.thrift.TException;
+ public java.util.List<Location> getLocations() throws org.apache.thrift.TException;
public SatelliteStatus getStatus() throws org.apache.thrift.TException;
- public List<ImageSummaryRead> getImageList(String userToken, List<String> tagSearch, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
+ public java.util.List<ImageSummaryRead> getImageList(java.lang.String userToken, java.util.List<java.lang.String> 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<String,ImagePermissions> permissions) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException;
+ public void writeImagePermissions(java.lang.String userToken, java.lang.String imageBaseId, java.util.Map<java.lang.String,ImagePermissions> permissions) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException;
- public Map<String,ImagePermissions> getImagePermissions(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException;
+ public java.util.Map<java.lang.String,ImagePermissions> 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<LectureSummary> getLectureList(String userToken, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
+ public java.util.List<LectureSummary> 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<String,LecturePermissions> permissions) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException;
+ public void writeLecturePermissions(java.lang.String userToken, java.lang.String lectureId, java.util.Map<java.lang.String,LecturePermissions> permissions) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException;
- public Map<String,LecturePermissions> getLecturePermissions(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException;
+ public java.util.Map<java.lang.String,LecturePermissions> 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<java.lang.Long> 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<java.lang.String> 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<SatelliteConfig> resultHandler) throws org.apache.thrift.TException;
- public void requestImageVersionUpload(String userToken, String imageBaseId, long fileSize, List<ByteBuffer> 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<java.nio.ByteBuffer> blockHashes, java.nio.ByteBuffer machineDescription, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> resultHandler) throws org.apache.thrift.TException;
- public void updateBlockHashes(String uploadToken, List<ByteBuffer> blockHashes, String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void updateBlockHashes(java.lang.String uploadToken, java.util.List<java.nio.ByteBuffer> blockHashes, java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback<Void> 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<UploadOptions> 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<Void> 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<TransferStatus> 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<TransferInformation> 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<Void> 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<Void> 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<WhoamiInfo> 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<Void> 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<java.util.List<UserInfo>> 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<SatelliteUserConfig> 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<Void> 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<java.util.List<OperatingSystem>> 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<java.util.List<Virtualizer>> 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<java.util.List<Organization>> 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<java.util.List<Location>> 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<SatelliteStatus> resultHandler) throws org.apache.thrift.TException;
- public void getImageList(String userToken, List<String> tagSearch, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getImageList(java.lang.String userToken, java.util.List<java.lang.String> tagSearch, int page, org.apache.thrift.async.AsyncMethodCallback<java.util.List<ImageSummaryRead>> 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<ImageDetailsRead> 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<java.lang.String> 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<Void> 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<Void> 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<Void> 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<Void> resultHandler) throws org.apache.thrift.TException;
- public void writeImagePermissions(String userToken, String imageBaseId, Map<String,ImagePermissions> 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<java.lang.String,ImagePermissions> permissions, org.apache.thrift.async.AsyncMethodCallback<Void> 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<java.util.Map<java.lang.String,ImagePermissions>> 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<Void> 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<Void> 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<java.nio.ByteBuffer> 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<Void> 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<java.lang.String> 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<java.lang.String> 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<java.lang.String> 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<Void> 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<java.util.List<LectureSummary>> 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<LectureRead> 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<Void> resultHandler) throws org.apache.thrift.TException;
- public void writeLecturePermissions(String userToken, String lectureId, Map<String,LecturePermissions> 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<java.lang.String,LecturePermissions> permissions, org.apache.thrift.async.AsyncMethodCallback<Void> 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<java.util.Map<java.lang.String,LecturePermissions>> 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<Void> 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<PredefinedData> resultHandler) throws org.apache.thrift.TException;
}
public static class Client extends org.apache.thrift.TServiceClient implements Iface {
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
public Factory() {}
+ @Override
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
return new Client(prot);
}
+ @Override
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
return new Client(iprot, oprot);
}
@@ -245,6 +220,7 @@ public class SatelliteServer {
super(iprot, oprot);
}
+ @Override
public long getVersion(long clientVersion) throws org.apache.thrift.TException
{
send_getVersion(clientVersion);
@@ -268,7 +244,8 @@ 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
+ @Override
+ public java.lang.String getSupportedFeatures() throws org.apache.thrift.TException
{
send_getSupportedFeatures();
return recv_getSupportedFeatures();
@@ -280,7 +257,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");
@@ -290,6 +267,7 @@ public class SatelliteServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSupportedFeatures failed: unknown result");
}
+ @Override
public SatelliteConfig getConfiguration() throws org.apache.thrift.TException
{
send_getConfiguration();
@@ -312,13 +290,14 @@ 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<ByteBuffer> blockHashes, ByteBuffer machineDescription) throws TTransferRejectedException, TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException
+ @Override
+ public TransferInformation requestImageVersionUpload(java.lang.String userToken, java.lang.String imageBaseId, long fileSize, java.util.List<java.nio.ByteBuffer> 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<ByteBuffer> 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<java.nio.ByteBuffer> blockHashes, java.nio.ByteBuffer machineDescription) throws org.apache.thrift.TException
{
requestImageVersionUpload_args args = new requestImageVersionUpload_args();
args.setUserToken(userToken);
@@ -351,13 +330,14 @@ 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<ByteBuffer> blockHashes, String userToken) throws TInvalidTokenException, org.apache.thrift.TException
+ @Override
+ public void updateBlockHashes(java.lang.String uploadToken, java.util.List<java.nio.ByteBuffer> 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<ByteBuffer> blockHashes, String userToken) throws org.apache.thrift.TException
+ public void send_updateBlockHashes(java.lang.String uploadToken, java.util.List<java.nio.ByteBuffer> blockHashes, java.lang.String userToken) throws org.apache.thrift.TException
{
updateBlockHashes_args args = new updateBlockHashes_args();
args.setUploadToken(uploadToken);
@@ -376,13 +356,14 @@ public class SatelliteServer {
return;
}
- public UploadOptions setUploadOptions(String userToken, String uploadToken, UploadOptions options) throws TAuthorizationException, TInvalidTokenException, org.apache.thrift.TException
+ @Override
+ 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 +388,14 @@ 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
+ @Override
+ 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 +412,14 @@ public class SatelliteServer {
return;
}
- public TransferStatus queryUploadStatus(String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException
+ @Override
+ 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 +439,14 @@ 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
+ @Override
+ 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 +476,14 @@ 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
+ @Override
+ 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 +500,14 @@ public class SatelliteServer {
return;
}
- public void isAuthenticated(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ @Override
+ 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 +527,14 @@ public class SatelliteServer {
return;
}
- public WhoamiInfo whoami(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ @Override
+ 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 +557,14 @@ 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
+ @Override
+ 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 +581,14 @@ public class SatelliteServer {
return;
}
- public List<UserInfo> getUserList(String userToken, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public java.util.List<UserInfo> 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 +596,7 @@ public class SatelliteServer {
sendBase("getUserList", args);
}
- public List<UserInfo> recv_getUserList() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ public java.util.List<UserInfo> recv_getUserList() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
{
getUserList_result result = new getUserList_result();
receiveBase(result, "getUserList");
@@ -623,13 +612,14 @@ 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
+ @Override
+ 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 +642,14 @@ 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
+ @Override
+ 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 +670,8 @@ public class SatelliteServer {
return;
}
- public List<OperatingSystem> getOperatingSystems() throws org.apache.thrift.TException
+ @Override
+ public java.util.List<OperatingSystem> getOperatingSystems() throws org.apache.thrift.TException
{
send_getOperatingSystems();
return recv_getOperatingSystems();
@@ -691,7 +683,7 @@ public class SatelliteServer {
sendBase("getOperatingSystems", args);
}
- public List<OperatingSystem> recv_getOperatingSystems() throws org.apache.thrift.TException
+ public java.util.List<OperatingSystem> recv_getOperatingSystems() throws org.apache.thrift.TException
{
getOperatingSystems_result result = new getOperatingSystems_result();
receiveBase(result, "getOperatingSystems");
@@ -701,7 +693,8 @@ public class SatelliteServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOperatingSystems failed: unknown result");
}
- public List<Virtualizer> getVirtualizers() throws org.apache.thrift.TException
+ @Override
+ public java.util.List<Virtualizer> getVirtualizers() throws org.apache.thrift.TException
{
send_getVirtualizers();
return recv_getVirtualizers();
@@ -713,7 +706,7 @@ public class SatelliteServer {
sendBase("getVirtualizers", args);
}
- public List<Virtualizer> recv_getVirtualizers() throws org.apache.thrift.TException
+ public java.util.List<Virtualizer> recv_getVirtualizers() throws org.apache.thrift.TException
{
getVirtualizers_result result = new getVirtualizers_result();
receiveBase(result, "getVirtualizers");
@@ -723,7 +716,8 @@ public class SatelliteServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVirtualizers failed: unknown result");
}
- public List<Organization> getAllOrganizations() throws org.apache.thrift.TException
+ @Override
+ public java.util.List<Organization> getAllOrganizations() throws org.apache.thrift.TException
{
send_getAllOrganizations();
return recv_getAllOrganizations();
@@ -735,7 +729,7 @@ public class SatelliteServer {
sendBase("getAllOrganizations", args);
}
- public List<Organization> recv_getAllOrganizations() throws org.apache.thrift.TException
+ public java.util.List<Organization> recv_getAllOrganizations() throws org.apache.thrift.TException
{
getAllOrganizations_result result = new getAllOrganizations_result();
receiveBase(result, "getAllOrganizations");
@@ -745,7 +739,8 @@ public class SatelliteServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOrganizations failed: unknown result");
}
- public List<Location> getLocations() throws org.apache.thrift.TException
+ @Override
+ public java.util.List<Location> getLocations() throws org.apache.thrift.TException
{
send_getLocations();
return recv_getLocations();
@@ -757,7 +752,7 @@ public class SatelliteServer {
sendBase("getLocations", args);
}
- public List<Location> recv_getLocations() throws org.apache.thrift.TException
+ public java.util.List<Location> recv_getLocations() throws org.apache.thrift.TException
{
getLocations_result result = new getLocations_result();
receiveBase(result, "getLocations");
@@ -767,6 +762,7 @@ public class SatelliteServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLocations failed: unknown result");
}
+ @Override
public SatelliteStatus getStatus() throws org.apache.thrift.TException
{
send_getStatus();
@@ -789,13 +785,14 @@ public class SatelliteServer {
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStatus failed: unknown result");
}
- public List<ImageSummaryRead> getImageList(String userToken, List<String> tagSearch, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public java.util.List<ImageSummaryRead> getImageList(java.lang.String userToken, java.util.List<java.lang.String> 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<String> tagSearch, int page) throws org.apache.thrift.TException
+ public void send_getImageList(java.lang.String userToken, java.util.List<java.lang.String> tagSearch, int page) throws org.apache.thrift.TException
{
getImageList_args args = new getImageList_args();
args.setUserToken(userToken);
@@ -804,7 +801,7 @@ public class SatelliteServer {
sendBase("getImageList", args);
}
- public List<ImageSummaryRead> recv_getImageList() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ public java.util.List<ImageSummaryRead> recv_getImageList() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
{
getImageList_result result = new getImageList_result();
receiveBase(result, "getImageList");
@@ -820,13 +817,14 @@ 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
+ @Override
+ 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 +851,14 @@ 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
+ @Override
+ 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 +866,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 +882,14 @@ 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
+ @Override
+ 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 +914,14 @@ public class SatelliteServer {
return;
}
- public void updateImageVersion(String userToken, String imageVersionId, ImageVersionWrite image) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
+ @Override
+ 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 +946,14 @@ public class SatelliteServer {
return;
}
- public void deleteImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
+ @Override
+ 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 +977,14 @@ public class SatelliteServer {
return;
}
- public void deleteImageBase(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
+ @Override
+ 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 +1008,14 @@ public class SatelliteServer {
return;
}
- public void writeImagePermissions(String userToken, String imageBaseId, Map<String,ImagePermissions> permissions) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public void writeImagePermissions(java.lang.String userToken, java.lang.String imageBaseId, java.util.Map<java.lang.String,ImagePermissions> 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<String,ImagePermissions> permissions) throws org.apache.thrift.TException
+ public void send_writeImagePermissions(java.lang.String userToken, java.lang.String imageBaseId, java.util.Map<java.lang.String,ImagePermissions> permissions) throws org.apache.thrift.TException
{
writeImagePermissions_args args = new writeImagePermissions_args();
args.setUserToken(userToken);
@@ -1036,13 +1040,14 @@ public class SatelliteServer {
return;
}
- public Map<String,ImagePermissions> getImagePermissions(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public java.util.Map<java.lang.String,ImagePermissions> 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 +1055,7 @@ public class SatelliteServer {
sendBase("getImagePermissions", args);
}
- public Map<String,ImagePermissions> recv_getImagePermissions() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
+ public java.util.Map<java.lang.String,ImagePermissions> recv_getImagePermissions() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
{
getImagePermissions_result result = new getImagePermissions_result();
receiveBase(result, "getImagePermissions");
@@ -1069,13 +1074,14 @@ 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
+ @Override
+ 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 +1106,14 @@ public class SatelliteServer {
return;
}
- public void setImageVersionExpiry(String userToken, String imageBaseId, long expireTime) throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException
+ @Override
+ 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 +1141,14 @@ public class SatelliteServer {
return;
}
- public ByteBuffer getImageVersionVirtConfig(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
+ @Override
+ 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 +1156,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 +1175,14 @@ 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
+ @Override
+ 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 +1207,14 @@ public class SatelliteServer {
return;
}
- public String requestImageReplication(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
+ @Override
+ 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 +1222,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 +1241,14 @@ 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
+ @Override
+ 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 +1256,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 +1278,14 @@ 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
+ @Override
+ 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 +1293,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 +1315,14 @@ 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
+ @Override
+ 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 +1350,14 @@ public class SatelliteServer {
return;
}
- public List<LectureSummary> getLectureList(String userToken, int page) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public java.util.List<LectureSummary> 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 +1365,7 @@ public class SatelliteServer {
sendBase("getLectureList", args);
}
- public List<LectureSummary> recv_getLectureList() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ public java.util.List<LectureSummary> recv_getLectureList() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
{
getLectureList_result result = new getLectureList_result();
receiveBase(result, "getLectureList");
@@ -1367,13 +1381,14 @@ 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
+ @Override
+ 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 +1415,14 @@ 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
+ @Override
+ 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 +1446,14 @@ public class SatelliteServer {
return;
}
- public void writeLecturePermissions(String userToken, String lectureId, Map<String,LecturePermissions> permissions) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public void writeLecturePermissions(java.lang.String userToken, java.lang.String lectureId, java.util.Map<java.lang.String,LecturePermissions> 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<String,LecturePermissions> permissions) throws org.apache.thrift.TException
+ public void send_writeLecturePermissions(java.lang.String userToken, java.lang.String lectureId, java.util.Map<java.lang.String,LecturePermissions> permissions) throws org.apache.thrift.TException
{
writeLecturePermissions_args args = new writeLecturePermissions_args();
args.setUserToken(userToken);
@@ -1461,13 +1478,14 @@ public class SatelliteServer {
return;
}
- public Map<String,LecturePermissions> getLecturePermissions(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
+ @Override
+ public java.util.Map<java.lang.String,LecturePermissions> 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 +1493,7 @@ public class SatelliteServer {
sendBase("getLecturePermissions", args);
}
- public Map<String,LecturePermissions> recv_getLecturePermissions() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
+ public java.util.Map<java.lang.String,LecturePermissions> recv_getLecturePermissions() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException
{
getLecturePermissions_result result = new getLecturePermissions_result();
receiveBase(result, "getLecturePermissions");
@@ -1494,13 +1512,14 @@ 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
+ @Override
+ 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 +1544,14 @@ public class SatelliteServer {
return;
}
- public PredefinedData getPredefinedData(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ @Override
+ 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);
@@ -1563,6 +1583,7 @@ public class SatelliteServer {
this.clientManager = clientManager;
this.protocolFactory = protocolFactory;
}
+ @Override
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
return new AsyncClient(protocolFactory, clientManager, transport);
}
@@ -1572,20 +1593,22 @@ public class SatelliteServer {
super(protocolFactory, clientManager, transport);
}
- public void getVersion(long clientVersion, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getVersion(long clientVersion, org.apache.thrift.async.AsyncMethodCallback<java.lang.Long> 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<java.lang.Long> {
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<java.lang.Long> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVersion", org.apache.thrift.protocol.TMessageType.CALL, 0));
getVersion_args args = new getVersion_args();
@@ -1594,9 +1617,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public long getResult() throws org.apache.thrift.TException {
+ @Override
+ 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,18 +1628,20 @@ public class SatelliteServer {
}
}
- public void getSupportedFeatures(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getSupportedFeatures(org.apache.thrift.async.AsyncMethodCallback<java.lang.String> 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<java.lang.String> {
+ public getSupportedFeatures_call(org.apache.thrift.async.AsyncMethodCallback<java.lang.String> 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);
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSupportedFeatures", org.apache.thrift.protocol.TMessageType.CALL, 0));
getSupportedFeatures_args args = new getSupportedFeatures_args();
@@ -1623,9 +1649,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public String getResult() throws org.apache.thrift.TException {
+ @Override
+ 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,18 +1660,20 @@ public class SatelliteServer {
}
}
- public void getConfiguration(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getConfiguration(org.apache.thrift.async.AsyncMethodCallback<SatelliteConfig> 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<SatelliteConfig> {
+ public getConfiguration_call(org.apache.thrift.async.AsyncMethodCallback<SatelliteConfig> 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);
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getConfiguration", org.apache.thrift.protocol.TMessageType.CALL, 0));
getConfiguration_args args = new getConfiguration_args();
@@ -1652,9 +1681,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
+ @Override
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 +1692,21 @@ public class SatelliteServer {
}
}
- public void requestImageVersionUpload(String userToken, String imageBaseId, long fileSize, List<ByteBuffer> blockHashes, ByteBuffer machineDescription, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void requestImageVersionUpload(java.lang.String userToken, java.lang.String imageBaseId, long fileSize, java.util.List<java.nio.ByteBuffer> blockHashes, java.nio.ByteBuffer machineDescription, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> 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<TransferInformation> {
+ private java.lang.String userToken;
+ private java.lang.String imageBaseId;
private long fileSize;
- private List<ByteBuffer> blockHashes;
- private ByteBuffer machineDescription;
- public requestImageVersionUpload_call(String userToken, String imageBaseId, long fileSize, List<ByteBuffer> 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<java.nio.ByteBuffer> blockHashes;
+ private java.nio.ByteBuffer machineDescription;
+ public requestImageVersionUpload_call(java.lang.String userToken, java.lang.String imageBaseId, long fileSize, java.util.List<java.nio.ByteBuffer> blockHashes, java.nio.ByteBuffer machineDescription, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> 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;
@@ -1684,6 +1715,7 @@ public class SatelliteServer {
this.machineDescription = machineDescription;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("requestImageVersionUpload", org.apache.thrift.protocol.TMessageType.CALL, 0));
requestImageVersionUpload_args args = new requestImageVersionUpload_args();
@@ -1696,9 +1728,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
+ @Override
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,24 +1739,26 @@ public class SatelliteServer {
}
}
- public void updateBlockHashes(String uploadToken, List<ByteBuffer> blockHashes, String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void updateBlockHashes(java.lang.String uploadToken, java.util.List<java.nio.ByteBuffer> blockHashes, java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback<Void> 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<ByteBuffer> blockHashes;
- private String userToken;
- public updateBlockHashes_call(String uploadToken, List<ByteBuffer> 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<Void> {
+ private java.lang.String uploadToken;
+ private java.util.List<java.nio.ByteBuffer> blockHashes;
+ private java.lang.String userToken;
+ public updateBlockHashes_call(java.lang.String uploadToken, java.util.List<java.nio.ByteBuffer> blockHashes, java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback<Void> 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;
this.userToken = userToken;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateBlockHashes", org.apache.thrift.protocol.TMessageType.CALL, 0));
updateBlockHashes_args args = new updateBlockHashes_args();
@@ -1734,34 +1769,38 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TInvalidTokenException, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void setUploadOptions(java.lang.String userToken, java.lang.String uploadToken, UploadOptions options, org.apache.thrift.async.AsyncMethodCallback<UploadOptions> 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<UploadOptions> {
+ 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<UploadOptions> 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;
this.options = options;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUploadOptions", org.apache.thrift.protocol.TMessageType.CALL, 0));
setUploadOptions_args args = new setUploadOptions_args();
@@ -1772,9 +1811,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
+ @Override
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,20 +1822,22 @@ public class SatelliteServer {
}
}
- public void cancelUpload(String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void cancelUpload(java.lang.String uploadToken, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ private java.lang.String uploadToken;
+ public cancelUpload_call(java.lang.String uploadToken, org.apache.thrift.async.AsyncMethodCallback<Void> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("cancelUpload", org.apache.thrift.protocol.TMessageType.CALL, 0));
cancelUpload_args args = new cancelUpload_args();
@@ -1804,30 +1846,34 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TInvalidTokenException, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void queryUploadStatus(java.lang.String uploadToken, org.apache.thrift.async.AsyncMethodCallback<TransferStatus> 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<TransferStatus> {
+ private java.lang.String uploadToken;
+ public queryUploadStatus_call(java.lang.String uploadToken, org.apache.thrift.async.AsyncMethodCallback<TransferStatus> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("queryUploadStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
queryUploadStatus_args args = new queryUploadStatus_args();
@@ -1836,9 +1882,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
+ @Override
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,22 +1893,24 @@ public class SatelliteServer {
}
}
- public void requestDownload(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void requestDownload(java.lang.String userToken, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> 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<TransferInformation> {
+ 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<TransferInformation> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("requestDownload", org.apache.thrift.protocol.TMessageType.CALL, 0));
requestDownload_args args = new requestDownload_args();
@@ -1871,9 +1920,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
+ @Override
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,20 +1931,22 @@ public class SatelliteServer {
}
}
- public void cancelDownload(String downloadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void cancelDownload(java.lang.String downloadToken, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ private java.lang.String downloadToken;
+ public cancelDownload_call(java.lang.String downloadToken, org.apache.thrift.async.AsyncMethodCallback<Void> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("cancelDownload", org.apache.thrift.protocol.TMessageType.CALL, 0));
cancelDownload_args args = new cancelDownload_args();
@@ -1903,30 +1955,34 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TInvalidTokenException, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void isAuthenticated(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ private java.lang.String userToken;
+ public isAuthenticated_call(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback<Void> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isAuthenticated", org.apache.thrift.protocol.TMessageType.CALL, 0));
isAuthenticated_args args = new isAuthenticated_args();
@@ -1935,30 +1991,34 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void whoami(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback<WhoamiInfo> 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<WhoamiInfo> {
+ private java.lang.String userToken;
+ public whoami_call(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback<WhoamiInfo> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("whoami", org.apache.thrift.protocol.TMessageType.CALL, 0));
whoami_args args = new whoami_args();
@@ -1967,9 +2027,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
+ @Override
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,20 +2038,22 @@ public class SatelliteServer {
}
}
- public void invalidateSession(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void invalidateSession(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ private java.lang.String userToken;
+ public invalidateSession_call(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback<Void> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("invalidateSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
invalidateSession_args args = new invalidateSession_args();
@@ -1999,32 +2062,36 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TInvalidTokenException, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void getUserList(java.lang.String userToken, int page, org.apache.thrift.async.AsyncMethodCallback<java.util.List<UserInfo>> 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<java.util.List<UserInfo>> {
+ 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<java.util.List<UserInfo>> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserList", org.apache.thrift.protocol.TMessageType.CALL, 0));
getUserList_args args = new getUserList_args();
@@ -2034,9 +2101,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public List<UserInfo> getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.util.List<UserInfo> 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,20 +2112,22 @@ public class SatelliteServer {
}
}
- public void getUserConfig(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getUserConfig(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback<SatelliteUserConfig> 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<SatelliteUserConfig> {
+ private java.lang.String userToken;
+ public getUserConfig_call(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback<SatelliteUserConfig> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
getUserConfig_args args = new getUserConfig_args();
@@ -2066,9 +2136,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
+ @Override
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,22 +2147,24 @@ public class SatelliteServer {
}
}
- public void setUserConfig(String userToken, SatelliteUserConfig config, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void setUserConfig(java.lang.String userToken, SatelliteUserConfig config, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ 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<Void> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUserConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
setUserConfig_args args = new setUserConfig_args();
@@ -2101,28 +2174,32 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void getOperatingSystems(org.apache.thrift.async.AsyncMethodCallback<java.util.List<OperatingSystem>> 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<java.util.List<OperatingSystem>> {
+ public getOperatingSystems_call(org.apache.thrift.async.AsyncMethodCallback<java.util.List<OperatingSystem>> 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);
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOperatingSystems", org.apache.thrift.protocol.TMessageType.CALL, 0));
getOperatingSystems_args args = new getOperatingSystems_args();
@@ -2130,9 +2207,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public List<OperatingSystem> getResult() throws org.apache.thrift.TException {
+ @Override
+ public java.util.List<OperatingSystem> 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,18 +2218,20 @@ public class SatelliteServer {
}
}
- public void getVirtualizers(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getVirtualizers(org.apache.thrift.async.AsyncMethodCallback<java.util.List<Virtualizer>> 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<java.util.List<Virtualizer>> {
+ public getVirtualizers_call(org.apache.thrift.async.AsyncMethodCallback<java.util.List<Virtualizer>> 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);
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVirtualizers", org.apache.thrift.protocol.TMessageType.CALL, 0));
getVirtualizers_args args = new getVirtualizers_args();
@@ -2159,9 +2239,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public List<Virtualizer> getResult() throws org.apache.thrift.TException {
+ @Override
+ public java.util.List<Virtualizer> 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,18 +2250,20 @@ public class SatelliteServer {
}
}
- public void getAllOrganizations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getAllOrganizations(org.apache.thrift.async.AsyncMethodCallback<java.util.List<Organization>> 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<java.util.List<Organization>> {
+ public getAllOrganizations_call(org.apache.thrift.async.AsyncMethodCallback<java.util.List<Organization>> 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);
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllOrganizations", org.apache.thrift.protocol.TMessageType.CALL, 0));
getAllOrganizations_args args = new getAllOrganizations_args();
@@ -2188,9 +2271,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public List<Organization> getResult() throws org.apache.thrift.TException {
+ @Override
+ public java.util.List<Organization> 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,18 +2282,20 @@ public class SatelliteServer {
}
}
- public void getLocations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getLocations(org.apache.thrift.async.AsyncMethodCallback<java.util.List<Location>> 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<java.util.List<Location>> {
+ public getLocations_call(org.apache.thrift.async.AsyncMethodCallback<java.util.List<Location>> 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);
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLocations", org.apache.thrift.protocol.TMessageType.CALL, 0));
getLocations_args args = new getLocations_args();
@@ -2217,9 +2303,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public List<Location> getResult() throws org.apache.thrift.TException {
+ @Override
+ public java.util.List<Location> 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,18 +2314,20 @@ public class SatelliteServer {
}
}
- public void getStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getStatus(org.apache.thrift.async.AsyncMethodCallback<SatelliteStatus> 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<SatelliteStatus> {
+ public getStatus_call(org.apache.thrift.async.AsyncMethodCallback<SatelliteStatus> 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);
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
getStatus_args args = new getStatus_args();
@@ -2246,9 +2335,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
+ @Override
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,24 +2346,26 @@ public class SatelliteServer {
}
}
- public void getImageList(String userToken, List<String> tagSearch, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getImageList(java.lang.String userToken, java.util.List<java.lang.String> tagSearch, int page, org.apache.thrift.async.AsyncMethodCallback<java.util.List<ImageSummaryRead>> 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<String> tagSearch;
+ public static class getImageList_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<ImageSummaryRead>> {
+ private java.lang.String userToken;
+ private java.util.List<java.lang.String> tagSearch;
private int page;
- public getImageList_call(String userToken, List<String> 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<java.lang.String> tagSearch, int page, org.apache.thrift.async.AsyncMethodCallback<java.util.List<ImageSummaryRead>> 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;
this.page = page;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageList", org.apache.thrift.protocol.TMessageType.CALL, 0));
getImageList_args args = new getImageList_args();
@@ -2284,9 +2376,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public List<ImageSummaryRead> getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.util.List<ImageSummaryRead> 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,22 +2387,24 @@ public class SatelliteServer {
}
}
- public void getImageDetails(String userToken, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getImageDetails(java.lang.String userToken, java.lang.String imageBaseId, org.apache.thrift.async.AsyncMethodCallback<ImageDetailsRead> 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<ImageDetailsRead> {
+ 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<ImageDetailsRead> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
getImageDetails_args args = new getImageDetails_args();
@@ -2319,9 +2414,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
+ @Override
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,22 +2425,24 @@ public class SatelliteServer {
}
}
- public void createImage(String userToken, String imageName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void createImage(java.lang.String userToken, java.lang.String imageName, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> 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<java.lang.String> {
+ 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<java.lang.String> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createImage", org.apache.thrift.protocol.TMessageType.CALL, 0));
createImage_args args = new createImage_args();
@@ -2354,9 +2452,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public String getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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,24 +2463,26 @@ public class SatelliteServer {
}
}
- public void updateImageBase(String userToken, String imageBaseId, ImageBaseWrite image, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void updateImageBase(java.lang.String userToken, java.lang.String imageBaseId, ImageBaseWrite image, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ 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<Void> 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;
this.image = image;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateImageBase", org.apache.thrift.protocol.TMessageType.CALL, 0));
updateImageBase_args args = new updateImageBase_args();
@@ -2392,34 +2493,38 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void updateImageVersion(java.lang.String userToken, java.lang.String imageVersionId, ImageVersionWrite image, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ 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<Void> 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;
this.image = image;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateImageVersion", org.apache.thrift.protocol.TMessageType.CALL, 0));
updateImageVersion_args args = new updateImageVersion_args();
@@ -2430,32 +2535,36 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void deleteImageVersion(java.lang.String userToken, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ 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<Void> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteImageVersion", org.apache.thrift.protocol.TMessageType.CALL, 0));
deleteImageVersion_args args = new deleteImageVersion_args();
@@ -2465,32 +2574,36 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void deleteImageBase(java.lang.String userToken, java.lang.String imageBaseId, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ 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<Void> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteImageBase", org.apache.thrift.protocol.TMessageType.CALL, 0));
deleteImageBase_args args = new deleteImageBase_args();
@@ -2500,34 +2613,38 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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<String,ImagePermissions> permissions, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void writeImagePermissions(java.lang.String userToken, java.lang.String imageBaseId, java.util.Map<java.lang.String,ImagePermissions> permissions, org.apache.thrift.async.AsyncMethodCallback<Void> 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<String,ImagePermissions> permissions;
- public writeImagePermissions_call(String userToken, String imageBaseId, Map<String,ImagePermissions> 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<Void> {
+ private java.lang.String userToken;
+ private java.lang.String imageBaseId;
+ private java.util.Map<java.lang.String,ImagePermissions> permissions;
+ public writeImagePermissions_call(java.lang.String userToken, java.lang.String imageBaseId, java.util.Map<java.lang.String,ImagePermissions> permissions, org.apache.thrift.async.AsyncMethodCallback<Void> 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;
this.permissions = permissions;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeImagePermissions", org.apache.thrift.protocol.TMessageType.CALL, 0));
writeImagePermissions_args args = new writeImagePermissions_args();
@@ -2538,32 +2655,36 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void getImagePermissions(java.lang.String userToken, java.lang.String imageBaseId, org.apache.thrift.async.AsyncMethodCallback<java.util.Map<java.lang.String,ImagePermissions>> 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<java.util.Map<java.lang.String,ImagePermissions>> {
+ 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<java.util.Map<java.lang.String,ImagePermissions>> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImagePermissions", org.apache.thrift.protocol.TMessageType.CALL, 0));
getImagePermissions_args args = new getImagePermissions_args();
@@ -2573,9 +2694,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public Map<String,ImagePermissions> getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.util.Map<java.lang.String,ImagePermissions> 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,24 +2705,26 @@ public class SatelliteServer {
}
}
- public void setImageOwner(String userToken, String imageBaseId, String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void setImageOwner(java.lang.String userToken, java.lang.String imageBaseId, java.lang.String newOwnerId, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ 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<Void> 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;
this.newOwnerId = newOwnerId;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setImageOwner", org.apache.thrift.protocol.TMessageType.CALL, 0));
setImageOwner_args args = new setImageOwner_args();
@@ -2611,34 +2735,38 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void setImageVersionExpiry(java.lang.String userToken, java.lang.String imageBaseId, long expireTime, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ 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<Void> 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;
this.expireTime = expireTime;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setImageVersionExpiry", org.apache.thrift.protocol.TMessageType.CALL, 0));
setImageVersionExpiry_args args = new setImageVersionExpiry_args();
@@ -2649,32 +2777,36 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void getImageVersionVirtConfig(java.lang.String userToken, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback<java.nio.ByteBuffer> 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<java.nio.ByteBuffer> {
+ 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<java.nio.ByteBuffer> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageVersionVirtConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
getImageVersionVirtConfig_args args = new getImageVersionVirtConfig_args();
@@ -2684,9 +2816,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public ByteBuffer getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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,24 +2827,26 @@ public class SatelliteServer {
}
}
- public void setImageVersionVirtConfig(String userToken, String imageVersionId, ByteBuffer meta, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void setImageVersionVirtConfig(java.lang.String userToken, java.lang.String imageVersionId, java.nio.ByteBuffer meta, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ 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<Void> 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;
this.meta = meta;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setImageVersionVirtConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
setImageVersionVirtConfig_args args = new setImageVersionVirtConfig_args();
@@ -2722,32 +2857,36 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void requestImageReplication(java.lang.String userToken, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> 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<java.lang.String> {
+ 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<java.lang.String> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("requestImageReplication", org.apache.thrift.protocol.TMessageType.CALL, 0));
requestImageReplication_args args = new requestImageReplication_args();
@@ -2757,9 +2896,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public String getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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,22 +2907,24 @@ public class SatelliteServer {
}
}
- public void publishImageVersion(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void publishImageVersion(java.lang.String userToken, java.lang.String imageVersionId, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> 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<java.lang.String> {
+ 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<java.lang.String> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("publishImageVersion", org.apache.thrift.protocol.TMessageType.CALL, 0));
publishImageVersion_args args = new publishImageVersion_args();
@@ -2792,9 +2934,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public String getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException {
+ @Override
+ 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,22 +2945,24 @@ public class SatelliteServer {
}
}
- public void createLecture(String userToken, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void createLecture(java.lang.String userToken, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> 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<java.lang.String> {
+ 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<java.lang.String> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createLecture", org.apache.thrift.protocol.TMessageType.CALL, 0));
createLecture_args args = new createLecture_args();
@@ -2827,9 +2972,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public String getResult() throws TAuthorizationException, TInvocationException, TInvalidDateParam, TNotFoundException, org.apache.thrift.TException {
+ @Override
+ 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,24 +2983,26 @@ public class SatelliteServer {
}
}
- public void updateLecture(String userToken, String lectureId, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void updateLecture(java.lang.String userToken, java.lang.String lectureId, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ 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<Void> 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;
this.lecture = lecture;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateLecture", org.apache.thrift.protocol.TMessageType.CALL, 0));
updateLecture_args args = new updateLecture_args();
@@ -2865,32 +3013,36 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void getLectureList(java.lang.String userToken, int page, org.apache.thrift.async.AsyncMethodCallback<java.util.List<LectureSummary>> 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<java.util.List<LectureSummary>> {
+ 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<java.util.List<LectureSummary>> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureList", org.apache.thrift.protocol.TMessageType.CALL, 0));
getLectureList_args args = new getLectureList_args();
@@ -2900,9 +3052,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public List<LectureSummary> getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.util.List<LectureSummary> 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,22 +3063,24 @@ public class SatelliteServer {
}
}
- public void getLectureDetails(String userToken, String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void getLectureDetails(java.lang.String userToken, java.lang.String lectureId, org.apache.thrift.async.AsyncMethodCallback<LectureRead> 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<LectureRead> {
+ 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<LectureRead> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
getLectureDetails_args args = new getLectureDetails_args();
@@ -2935,9 +3090,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
+ @Override
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,22 +3101,24 @@ public class SatelliteServer {
}
}
- public void deleteLecture(String userToken, String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void deleteLecture(java.lang.String userToken, java.lang.String lectureId, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ 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<Void> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteLecture", org.apache.thrift.protocol.TMessageType.CALL, 0));
deleteLecture_args args = new deleteLecture_args();
@@ -2970,34 +3128,38 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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<String,LecturePermissions> permissions, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void writeLecturePermissions(java.lang.String userToken, java.lang.String lectureId, java.util.Map<java.lang.String,LecturePermissions> permissions, org.apache.thrift.async.AsyncMethodCallback<Void> 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<String,LecturePermissions> permissions;
- public writeLecturePermissions_call(String userToken, String lectureId, Map<String,LecturePermissions> 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<Void> {
+ private java.lang.String userToken;
+ private java.lang.String lectureId;
+ private java.util.Map<java.lang.String,LecturePermissions> permissions;
+ public writeLecturePermissions_call(java.lang.String userToken, java.lang.String lectureId, java.util.Map<java.lang.String,LecturePermissions> permissions, org.apache.thrift.async.AsyncMethodCallback<Void> 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;
this.permissions = permissions;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("writeLecturePermissions", org.apache.thrift.protocol.TMessageType.CALL, 0));
writeLecturePermissions_args args = new writeLecturePermissions_args();
@@ -3008,32 +3170,36 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void getLecturePermissions(java.lang.String userToken, java.lang.String lectureId, org.apache.thrift.async.AsyncMethodCallback<java.util.Map<java.lang.String,LecturePermissions>> 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<java.util.Map<java.lang.String,LecturePermissions>> {
+ 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<java.util.Map<java.lang.String,LecturePermissions>> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLecturePermissions", org.apache.thrift.protocol.TMessageType.CALL, 0));
getLecturePermissions_args args = new getLecturePermissions_args();
@@ -3043,9 +3209,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public Map<String,LecturePermissions> getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ public java.util.Map<java.lang.String,LecturePermissions> 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,24 +3220,26 @@ public class SatelliteServer {
}
}
- public void setLectureOwner(String userToken, String lectureId, String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ @Override
+ public void setLectureOwner(java.lang.String userToken, java.lang.String lectureId, java.lang.String newOwnerId, org.apache.thrift.async.AsyncMethodCallback<Void> 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<Void> {
+ 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<Void> 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;
this.newOwnerId = newOwnerId;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setLectureOwner", org.apache.thrift.protocol.TMessageType.CALL, 0));
setLectureOwner_args args = new setLectureOwner_args();
@@ -3081,30 +3250,34 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
- public void getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException {
+ @Override
+ 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 {
+ @Override
+ public void getPredefinedData(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback<PredefinedData> 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<PredefinedData> {
+ private java.lang.String userToken;
+ public getPredefinedData_call(java.lang.String userToken, org.apache.thrift.async.AsyncMethodCallback<PredefinedData> 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;
}
+ @Override
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPredefinedData", org.apache.thrift.protocol.TMessageType.CALL, 0));
getPredefinedData_args args = new getPredefinedData_args();
@@ -3113,9 +3286,10 @@ public class SatelliteServer {
prot.writeMessageEnd();
}
+ @Override
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 +3300,16 @@ public class SatelliteServer {
}
public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> 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<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
+ super(iface, getProcessMap(new java.util.HashMap<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
}
- protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
+ protected Processor(I iface, java.util.Map<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
super(iface, getProcessMap(processMap));
}
- private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
+ private static <I extends Iface> java.util.Map<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(java.util.Map<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
processMap.put("getVersion", new getVersion());
processMap.put("getSupportedFeatures", new getSupportedFeatures());
processMap.put("getConfiguration", new getConfiguration());
@@ -3189,14 +3363,22 @@ public class SatelliteServer {
super("getVersion");
}
+ @Override
public getVersion_args getEmptyArgsInstance() {
return new getVersion_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
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);
@@ -3210,14 +3392,22 @@ public class SatelliteServer {
super("getSupportedFeatures");
}
+ @Override
public getSupportedFeatures_args getEmptyArgsInstance() {
return new getSupportedFeatures_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getSupportedFeatures_result getResult(I iface, getSupportedFeatures_args args) throws org.apache.thrift.TException {
getSupportedFeatures_result result = new getSupportedFeatures_result();
result.success = iface.getSupportedFeatures();
@@ -3230,14 +3420,22 @@ public class SatelliteServer {
super("getConfiguration");
}
+ @Override
public getConfiguration_args getEmptyArgsInstance() {
return new getConfiguration_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getConfiguration_result getResult(I iface, getConfiguration_args args) throws org.apache.thrift.TException {
getConfiguration_result result = new getConfiguration_result();
result.success = iface.getConfiguration();
@@ -3250,14 +3448,22 @@ public class SatelliteServer {
super("requestImageVersionUpload");
}
+ @Override
public requestImageVersionUpload_args getEmptyArgsInstance() {
return new requestImageVersionUpload_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public requestImageVersionUpload_result getResult(I iface, requestImageVersionUpload_args args) throws org.apache.thrift.TException {
requestImageVersionUpload_result result = new requestImageVersionUpload_result();
try {
@@ -3280,14 +3486,22 @@ public class SatelliteServer {
super("updateBlockHashes");
}
+ @Override
public updateBlockHashes_args getEmptyArgsInstance() {
return new updateBlockHashes_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public updateBlockHashes_result getResult(I iface, updateBlockHashes_args args) throws org.apache.thrift.TException {
updateBlockHashes_result result = new updateBlockHashes_result();
try {
@@ -3304,14 +3518,22 @@ public class SatelliteServer {
super("setUploadOptions");
}
+ @Override
public setUploadOptions_args getEmptyArgsInstance() {
return new setUploadOptions_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public setUploadOptions_result getResult(I iface, setUploadOptions_args args) throws org.apache.thrift.TException {
setUploadOptions_result result = new setUploadOptions_result();
try {
@@ -3330,14 +3552,22 @@ public class SatelliteServer {
super("cancelUpload");
}
+ @Override
public cancelUpload_args getEmptyArgsInstance() {
return new cancelUpload_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public cancelUpload_result getResult(I iface, cancelUpload_args args) throws org.apache.thrift.TException {
cancelUpload_result result = new cancelUpload_result();
try {
@@ -3354,14 +3584,22 @@ public class SatelliteServer {
super("queryUploadStatus");
}
+ @Override
public queryUploadStatus_args getEmptyArgsInstance() {
return new queryUploadStatus_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public queryUploadStatus_result getResult(I iface, queryUploadStatus_args args) throws org.apache.thrift.TException {
queryUploadStatus_result result = new queryUploadStatus_result();
try {
@@ -3378,14 +3616,22 @@ public class SatelliteServer {
super("requestDownload");
}
+ @Override
public requestDownload_args getEmptyArgsInstance() {
return new requestDownload_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public requestDownload_result getResult(I iface, requestDownload_args args) throws org.apache.thrift.TException {
requestDownload_result result = new requestDownload_result();
try {
@@ -3408,14 +3654,22 @@ public class SatelliteServer {
super("cancelDownload");
}
+ @Override
public cancelDownload_args getEmptyArgsInstance() {
return new cancelDownload_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public cancelDownload_result getResult(I iface, cancelDownload_args args) throws org.apache.thrift.TException {
cancelDownload_result result = new cancelDownload_result();
try {
@@ -3432,14 +3686,22 @@ public class SatelliteServer {
super("isAuthenticated");
}
+ @Override
public isAuthenticated_args getEmptyArgsInstance() {
return new isAuthenticated_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public isAuthenticated_result getResult(I iface, isAuthenticated_args args) throws org.apache.thrift.TException {
isAuthenticated_result result = new isAuthenticated_result();
try {
@@ -3458,14 +3720,22 @@ public class SatelliteServer {
super("whoami");
}
+ @Override
public whoami_args getEmptyArgsInstance() {
return new whoami_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public whoami_result getResult(I iface, whoami_args args) throws org.apache.thrift.TException {
whoami_result result = new whoami_result();
try {
@@ -3484,14 +3754,22 @@ public class SatelliteServer {
super("invalidateSession");
}
+ @Override
public invalidateSession_args getEmptyArgsInstance() {
return new invalidateSession_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public invalidateSession_result getResult(I iface, invalidateSession_args args) throws org.apache.thrift.TException {
invalidateSession_result result = new invalidateSession_result();
try {
@@ -3508,14 +3786,22 @@ public class SatelliteServer {
super("getUserList");
}
+ @Override
public getUserList_args getEmptyArgsInstance() {
return new getUserList_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getUserList_result getResult(I iface, getUserList_args args) throws org.apache.thrift.TException {
getUserList_result result = new getUserList_result();
try {
@@ -3534,14 +3820,22 @@ public class SatelliteServer {
super("getUserConfig");
}
+ @Override
public getUserConfig_args getEmptyArgsInstance() {
return new getUserConfig_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getUserConfig_result getResult(I iface, getUserConfig_args args) throws org.apache.thrift.TException {
getUserConfig_result result = new getUserConfig_result();
try {
@@ -3560,14 +3854,22 @@ public class SatelliteServer {
super("setUserConfig");
}
+ @Override
public setUserConfig_args getEmptyArgsInstance() {
return new setUserConfig_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public setUserConfig_result getResult(I iface, setUserConfig_args args) throws org.apache.thrift.TException {
setUserConfig_result result = new setUserConfig_result();
try {
@@ -3586,14 +3888,22 @@ public class SatelliteServer {
super("getOperatingSystems");
}
+ @Override
public getOperatingSystems_args getEmptyArgsInstance() {
return new getOperatingSystems_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getOperatingSystems_result getResult(I iface, getOperatingSystems_args args) throws org.apache.thrift.TException {
getOperatingSystems_result result = new getOperatingSystems_result();
result.success = iface.getOperatingSystems();
@@ -3606,14 +3916,22 @@ public class SatelliteServer {
super("getVirtualizers");
}
+ @Override
public getVirtualizers_args getEmptyArgsInstance() {
return new getVirtualizers_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getVirtualizers_result getResult(I iface, getVirtualizers_args args) throws org.apache.thrift.TException {
getVirtualizers_result result = new getVirtualizers_result();
result.success = iface.getVirtualizers();
@@ -3626,14 +3944,22 @@ public class SatelliteServer {
super("getAllOrganizations");
}
+ @Override
public getAllOrganizations_args getEmptyArgsInstance() {
return new getAllOrganizations_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getAllOrganizations_result getResult(I iface, getAllOrganizations_args args) throws org.apache.thrift.TException {
getAllOrganizations_result result = new getAllOrganizations_result();
result.success = iface.getAllOrganizations();
@@ -3646,14 +3972,22 @@ public class SatelliteServer {
super("getLocations");
}
+ @Override
public getLocations_args getEmptyArgsInstance() {
return new getLocations_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getLocations_result getResult(I iface, getLocations_args args) throws org.apache.thrift.TException {
getLocations_result result = new getLocations_result();
result.success = iface.getLocations();
@@ -3666,14 +4000,22 @@ public class SatelliteServer {
super("getStatus");
}
+ @Override
public getStatus_args getEmptyArgsInstance() {
return new getStatus_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getStatus_result getResult(I iface, getStatus_args args) throws org.apache.thrift.TException {
getStatus_result result = new getStatus_result();
result.success = iface.getStatus();
@@ -3686,14 +4028,22 @@ public class SatelliteServer {
super("getImageList");
}
+ @Override
public getImageList_args getEmptyArgsInstance() {
return new getImageList_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getImageList_result getResult(I iface, getImageList_args args) throws org.apache.thrift.TException {
getImageList_result result = new getImageList_result();
try {
@@ -3712,14 +4062,22 @@ public class SatelliteServer {
super("getImageDetails");
}
+ @Override
public getImageDetails_args getEmptyArgsInstance() {
return new getImageDetails_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getImageDetails_result getResult(I iface, getImageDetails_args args) throws org.apache.thrift.TException {
getImageDetails_result result = new getImageDetails_result();
try {
@@ -3740,14 +4098,22 @@ public class SatelliteServer {
super("createImage");
}
+ @Override
public createImage_args getEmptyArgsInstance() {
return new createImage_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public createImage_result getResult(I iface, createImage_args args) throws org.apache.thrift.TException {
createImage_result result = new createImage_result();
try {
@@ -3766,14 +4132,22 @@ public class SatelliteServer {
super("updateImageBase");
}
+ @Override
public updateImageBase_args getEmptyArgsInstance() {
return new updateImageBase_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public updateImageBase_result getResult(I iface, updateImageBase_args args) throws org.apache.thrift.TException {
updateImageBase_result result = new updateImageBase_result();
try {
@@ -3794,14 +4168,22 @@ public class SatelliteServer {
super("updateImageVersion");
}
+ @Override
public updateImageVersion_args getEmptyArgsInstance() {
return new updateImageVersion_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public updateImageVersion_result getResult(I iface, updateImageVersion_args args) throws org.apache.thrift.TException {
updateImageVersion_result result = new updateImageVersion_result();
try {
@@ -3822,14 +4204,22 @@ public class SatelliteServer {
super("deleteImageVersion");
}
+ @Override
public deleteImageVersion_args getEmptyArgsInstance() {
return new deleteImageVersion_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public deleteImageVersion_result getResult(I iface, deleteImageVersion_args args) throws org.apache.thrift.TException {
deleteImageVersion_result result = new deleteImageVersion_result();
try {
@@ -3850,14 +4240,22 @@ public class SatelliteServer {
super("deleteImageBase");
}
+ @Override
public deleteImageBase_args getEmptyArgsInstance() {
return new deleteImageBase_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public deleteImageBase_result getResult(I iface, deleteImageBase_args args) throws org.apache.thrift.TException {
deleteImageBase_result result = new deleteImageBase_result();
try {
@@ -3878,14 +4276,22 @@ public class SatelliteServer {
super("writeImagePermissions");
}
+ @Override
public writeImagePermissions_args getEmptyArgsInstance() {
return new writeImagePermissions_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public writeImagePermissions_result getResult(I iface, writeImagePermissions_args args) throws org.apache.thrift.TException {
writeImagePermissions_result result = new writeImagePermissions_result();
try {
@@ -3906,14 +4312,22 @@ public class SatelliteServer {
super("getImagePermissions");
}
+ @Override
public getImagePermissions_args getEmptyArgsInstance() {
return new getImagePermissions_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getImagePermissions_result getResult(I iface, getImagePermissions_args args) throws org.apache.thrift.TException {
getImagePermissions_result result = new getImagePermissions_result();
try {
@@ -3934,14 +4348,22 @@ public class SatelliteServer {
super("setImageOwner");
}
+ @Override
public setImageOwner_args getEmptyArgsInstance() {
return new setImageOwner_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public setImageOwner_result getResult(I iface, setImageOwner_args args) throws org.apache.thrift.TException {
setImageOwner_result result = new setImageOwner_result();
try {
@@ -3962,14 +4384,22 @@ public class SatelliteServer {
super("setImageVersionExpiry");
}
+ @Override
public setImageVersionExpiry_args getEmptyArgsInstance() {
return new setImageVersionExpiry_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public setImageVersionExpiry_result getResult(I iface, setImageVersionExpiry_args args) throws org.apache.thrift.TException {
setImageVersionExpiry_result result = new setImageVersionExpiry_result();
try {
@@ -3992,14 +4422,22 @@ public class SatelliteServer {
super("getImageVersionVirtConfig");
}
+ @Override
public getImageVersionVirtConfig_args getEmptyArgsInstance() {
return new getImageVersionVirtConfig_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getImageVersionVirtConfig_result getResult(I iface, getImageVersionVirtConfig_args args) throws org.apache.thrift.TException {
getImageVersionVirtConfig_result result = new getImageVersionVirtConfig_result();
try {
@@ -4020,14 +4458,22 @@ public class SatelliteServer {
super("setImageVersionVirtConfig");
}
+ @Override
public setImageVersionVirtConfig_args getEmptyArgsInstance() {
return new setImageVersionVirtConfig_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public setImageVersionVirtConfig_result getResult(I iface, setImageVersionVirtConfig_args args) throws org.apache.thrift.TException {
setImageVersionVirtConfig_result result = new setImageVersionVirtConfig_result();
try {
@@ -4048,14 +4494,22 @@ public class SatelliteServer {
super("requestImageReplication");
}
+ @Override
public requestImageReplication_args getEmptyArgsInstance() {
return new requestImageReplication_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public requestImageReplication_result getResult(I iface, requestImageReplication_args args) throws org.apache.thrift.TException {
requestImageReplication_result result = new requestImageReplication_result();
try {
@@ -4076,14 +4530,22 @@ public class SatelliteServer {
super("publishImageVersion");
}
+ @Override
public publishImageVersion_args getEmptyArgsInstance() {
return new publishImageVersion_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public publishImageVersion_result getResult(I iface, publishImageVersion_args args) throws org.apache.thrift.TException {
publishImageVersion_result result = new publishImageVersion_result();
try {
@@ -4106,14 +4568,22 @@ public class SatelliteServer {
super("createLecture");
}
+ @Override
public createLecture_args getEmptyArgsInstance() {
return new createLecture_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public createLecture_result getResult(I iface, createLecture_args args) throws org.apache.thrift.TException {
createLecture_result result = new createLecture_result();
try {
@@ -4136,14 +4606,22 @@ public class SatelliteServer {
super("updateLecture");
}
+ @Override
public updateLecture_args getEmptyArgsInstance() {
return new updateLecture_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public updateLecture_result getResult(I iface, updateLecture_args args) throws org.apache.thrift.TException {
updateLecture_result result = new updateLecture_result();
try {
@@ -4166,14 +4644,22 @@ public class SatelliteServer {
super("getLectureList");
}
+ @Override
public getLectureList_args getEmptyArgsInstance() {
return new getLectureList_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getLectureList_result getResult(I iface, getLectureList_args args) throws org.apache.thrift.TException {
getLectureList_result result = new getLectureList_result();
try {
@@ -4192,14 +4678,22 @@ public class SatelliteServer {
super("getLectureDetails");
}
+ @Override
public getLectureDetails_args getEmptyArgsInstance() {
return new getLectureDetails_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getLectureDetails_result getResult(I iface, getLectureDetails_args args) throws org.apache.thrift.TException {
getLectureDetails_result result = new getLectureDetails_result();
try {
@@ -4220,14 +4714,22 @@ public class SatelliteServer {
super("deleteLecture");
}
+ @Override
public deleteLecture_args getEmptyArgsInstance() {
return new deleteLecture_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public deleteLecture_result getResult(I iface, deleteLecture_args args) throws org.apache.thrift.TException {
deleteLecture_result result = new deleteLecture_result();
try {
@@ -4248,14 +4750,22 @@ public class SatelliteServer {
super("writeLecturePermissions");
}
+ @Override
public writeLecturePermissions_args getEmptyArgsInstance() {
return new writeLecturePermissions_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public writeLecturePermissions_result getResult(I iface, writeLecturePermissions_args args) throws org.apache.thrift.TException {
writeLecturePermissions_result result = new writeLecturePermissions_result();
try {
@@ -4276,14 +4786,22 @@ public class SatelliteServer {
super("getLecturePermissions");
}
+ @Override
public getLecturePermissions_args getEmptyArgsInstance() {
return new getLecturePermissions_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getLecturePermissions_result getResult(I iface, getLecturePermissions_args args) throws org.apache.thrift.TException {
getLecturePermissions_result result = new getLecturePermissions_result();
try {
@@ -4304,14 +4822,22 @@ public class SatelliteServer {
super("setLectureOwner");
}
+ @Override
public setLectureOwner_args getEmptyArgsInstance() {
return new setLectureOwner_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public setLectureOwner_result getResult(I iface, setLectureOwner_args args) throws org.apache.thrift.TException {
setLectureOwner_result result = new setLectureOwner_result();
try {
@@ -4332,14 +4858,22 @@ public class SatelliteServer {
super("getPredefinedData");
}
+ @Override
public getPredefinedData_args getEmptyArgsInstance() {
return new getPredefinedData_args();
}
+ @Override
protected boolean isOneway() {
return false;
}
+ @Override
+ protected boolean rethrowUnhandledExceptions() {
+ return false;
+ }
+
+ @Override
public getPredefinedData_result getResult(I iface, getPredefinedData_args args) throws org.apache.thrift.TException {
getPredefinedData_result result = new getPredefinedData_result();
try {
@@ -4356,16 +4890,16 @@ public class SatelliteServer {
}
public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
- 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<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
+ super(iface, getProcessMap(new java.util.HashMap<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
}
- protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
+ protected AsyncProcessor(I iface, java.util.Map<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
super(iface, getProcessMap(processMap));
}
- private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
+ private static <I extends AsyncIface> java.util.Map<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(java.util.Map<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
processMap.put("getVersion", new getVersion());
processMap.put("getSupportedFeatures", new getSupportedFeatures());
processMap.put("getConfiguration", new getConfiguration());
@@ -4414,105 +4948,137 @@ public class SatelliteServer {
return processMap;
}
- public static class getVersion<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getVersion_args, Long> {
+ public static class getVersion<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getVersion_args, java.lang.Long> {
public getVersion() {
super("getVersion");
}
+ @Override
public getVersion_args getEmptyArgsInstance() {
return new getVersion_args();
}
- public AsyncMethodCallback<Long> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.Long> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Long>() {
- public void onComplete(Long o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.Long>() {
+ @Override
+ 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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getVersion_args args, org.apache.thrift.async.AsyncMethodCallback<Long> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getVersion_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.Long> resultHandler) throws org.apache.thrift.TException {
iface.getVersion(args.clientVersion,resultHandler);
}
}
- public static class getSupportedFeatures<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getSupportedFeatures_args, String> {
+ public static class getSupportedFeatures<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getSupportedFeatures_args, java.lang.String> {
public getSupportedFeatures() {
super("getSupportedFeatures");
}
+ @Override
public getSupportedFeatures_args getEmptyArgsInstance() {
return new getSupportedFeatures_args();
}
- public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.String> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<String>() {
- public void onComplete(String o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.String>() {
+ @Override
+ 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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getSupportedFeatures_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getSupportedFeatures_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> resultHandler) throws org.apache.thrift.TException {
iface.getSupportedFeatures(resultHandler);
}
}
@@ -4522,48 +5088,64 @@ public class SatelliteServer {
super("getConfiguration");
}
+ @Override
public getConfiguration_args getEmptyArgsInstance() {
return new getConfiguration_args();
}
- public AsyncMethodCallback<SatelliteConfig> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<SatelliteConfig> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<SatelliteConfig>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<SatelliteConfig>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback<SatelliteConfig> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback<SatelliteConfig> resultHandler) throws org.apache.thrift.TException {
iface.getConfiguration(resultHandler);
}
}
@@ -4573,69 +5155,80 @@ public class SatelliteServer {
super("requestImageVersionUpload");
}
+ @Override
public requestImageVersionUpload_args getEmptyArgsInstance() {
return new requestImageVersionUpload_args();
}
- public AsyncMethodCallback<TransferInformation> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<TransferInformation> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<TransferInformation>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<TransferInformation>() {
+ @Override
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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, requestImageVersionUpload_args args, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> resultHandler) throws TException {
+ @Override
+ public void start(I iface, requestImageVersionUpload_args args, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> resultHandler) throws org.apache.thrift.TException {
iface.requestImageVersionUpload(args.userToken, args.imageBaseId, args.fileSize, args.blockHashes, args.machineDescription,resultHandler);
}
}
@@ -4645,53 +5238,67 @@ public class SatelliteServer {
super("updateBlockHashes");
}
+ @Override
public updateBlockHashes_args getEmptyArgsInstance() {
return new updateBlockHashes_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, updateBlockHashes_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, updateBlockHashes_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.updateBlockHashes(args.uploadToken, args.blockHashes, args.userToken,resultHandler);
}
}
@@ -4701,59 +5308,72 @@ public class SatelliteServer {
super("setUploadOptions");
}
+ @Override
public setUploadOptions_args getEmptyArgsInstance() {
return new setUploadOptions_args();
}
- public AsyncMethodCallback<UploadOptions> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<UploadOptions> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<UploadOptions>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<UploadOptions>() {
+ @Override
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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, setUploadOptions_args args, org.apache.thrift.async.AsyncMethodCallback<UploadOptions> resultHandler) throws TException {
+ @Override
+ public void start(I iface, setUploadOptions_args args, org.apache.thrift.async.AsyncMethodCallback<UploadOptions> resultHandler) throws org.apache.thrift.TException {
iface.setUploadOptions(args.userToken, args.uploadToken, args.options,resultHandler);
}
}
@@ -4763,53 +5383,67 @@ public class SatelliteServer {
super("cancelUpload");
}
+ @Override
public cancelUpload_args getEmptyArgsInstance() {
return new cancelUpload_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, cancelUpload_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, cancelUpload_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.cancelUpload(args.uploadToken,resultHandler);
}
}
@@ -4819,54 +5453,68 @@ public class SatelliteServer {
super("queryUploadStatus");
}
+ @Override
public queryUploadStatus_args getEmptyArgsInstance() {
return new queryUploadStatus_args();
}
- public AsyncMethodCallback<TransferStatus> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<TransferStatus> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<TransferStatus>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<TransferStatus>() {
+ @Override
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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, queryUploadStatus_args args, org.apache.thrift.async.AsyncMethodCallback<TransferStatus> resultHandler) throws TException {
+ @Override
+ public void start(I iface, queryUploadStatus_args args, org.apache.thrift.async.AsyncMethodCallback<TransferStatus> resultHandler) throws org.apache.thrift.TException {
iface.queryUploadStatus(args.uploadToken,resultHandler);
}
}
@@ -4876,69 +5524,80 @@ public class SatelliteServer {
super("requestDownload");
}
+ @Override
public requestDownload_args getEmptyArgsInstance() {
return new requestDownload_args();
}
- public AsyncMethodCallback<TransferInformation> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<TransferInformation> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<TransferInformation>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<TransferInformation>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, requestDownload_args args, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> resultHandler) throws TException {
+ @Override
+ public void start(I iface, requestDownload_args args, org.apache.thrift.async.AsyncMethodCallback<TransferInformation> resultHandler) throws org.apache.thrift.TException {
iface.requestDownload(args.userToken, args.imageVersionId,resultHandler);
}
}
@@ -4948,53 +5607,67 @@ public class SatelliteServer {
super("cancelDownload");
}
+ @Override
public cancelDownload_args getEmptyArgsInstance() {
return new cancelDownload_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, cancelDownload_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, cancelDownload_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.cancelDownload(args.downloadToken,resultHandler);
}
}
@@ -5004,58 +5677,71 @@ public class SatelliteServer {
super("isAuthenticated");
}
+ @Override
public isAuthenticated_args getEmptyArgsInstance() {
return new isAuthenticated_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, isAuthenticated_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, isAuthenticated_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.isAuthenticated(args.userToken,resultHandler);
}
}
@@ -5065,59 +5751,72 @@ public class SatelliteServer {
super("whoami");
}
+ @Override
public whoami_args getEmptyArgsInstance() {
return new whoami_args();
}
- public AsyncMethodCallback<WhoamiInfo> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<WhoamiInfo> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<WhoamiInfo>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<WhoamiInfo>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, whoami_args args, org.apache.thrift.async.AsyncMethodCallback<WhoamiInfo> resultHandler) throws TException {
+ @Override
+ public void start(I iface, whoami_args args, org.apache.thrift.async.AsyncMethodCallback<WhoamiInfo> resultHandler) throws org.apache.thrift.TException {
iface.whoami(args.userToken,resultHandler);
}
}
@@ -5127,115 +5826,142 @@ public class SatelliteServer {
super("invalidateSession");
}
+ @Override
public invalidateSession_args getEmptyArgsInstance() {
return new invalidateSession_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, invalidateSession_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, invalidateSession_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.invalidateSession(args.userToken,resultHandler);
}
}
- public static class getUserList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getUserList_args, List<UserInfo>> {
+ public static class getUserList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getUserList_args, java.util.List<UserInfo>> {
public getUserList() {
super("getUserList");
}
+ @Override
public getUserList_args getEmptyArgsInstance() {
return new getUserList_args();
}
- public AsyncMethodCallback<List<UserInfo>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<UserInfo>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<UserInfo>>() {
- public void onComplete(List<UserInfo> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<UserInfo>>() {
+ @Override
+ public void onComplete(java.util.List<UserInfo> 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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getUserList_args args, org.apache.thrift.async.AsyncMethodCallback<List<UserInfo>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getUserList_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<UserInfo>> resultHandler) throws org.apache.thrift.TException {
iface.getUserList(args.userToken, args.page,resultHandler);
}
}
@@ -5245,59 +5971,72 @@ public class SatelliteServer {
super("getUserConfig");
}
+ @Override
public getUserConfig_args getEmptyArgsInstance() {
return new getUserConfig_args();
}
- public AsyncMethodCallback<SatelliteUserConfig> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<SatelliteUserConfig> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<SatelliteUserConfig>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<SatelliteUserConfig>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getUserConfig_args args, org.apache.thrift.async.AsyncMethodCallback<SatelliteUserConfig> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getUserConfig_args args, org.apache.thrift.async.AsyncMethodCallback<SatelliteUserConfig> resultHandler) throws org.apache.thrift.TException {
iface.getUserConfig(args.userToken,resultHandler);
}
}
@@ -5307,262 +6046,339 @@ public class SatelliteServer {
super("setUserConfig");
}
+ @Override
public setUserConfig_args getEmptyArgsInstance() {
return new setUserConfig_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, setUserConfig_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, setUserConfig_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.setUserConfig(args.userToken, args.config,resultHandler);
}
}
- public static class getOperatingSystems<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getOperatingSystems_args, List<OperatingSystem>> {
+ public static class getOperatingSystems<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getOperatingSystems_args, java.util.List<OperatingSystem>> {
public getOperatingSystems() {
super("getOperatingSystems");
}
+ @Override
public getOperatingSystems_args getEmptyArgsInstance() {
return new getOperatingSystems_args();
}
- public AsyncMethodCallback<List<OperatingSystem>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<OperatingSystem>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<OperatingSystem>>() {
- public void onComplete(List<OperatingSystem> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<OperatingSystem>>() {
+ @Override
+ public void onComplete(java.util.List<OperatingSystem> 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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getOperatingSystems_args args, org.apache.thrift.async.AsyncMethodCallback<List<OperatingSystem>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getOperatingSystems_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<OperatingSystem>> resultHandler) throws org.apache.thrift.TException {
iface.getOperatingSystems(resultHandler);
}
}
- public static class getVirtualizers<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getVirtualizers_args, List<Virtualizer>> {
+ public static class getVirtualizers<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getVirtualizers_args, java.util.List<Virtualizer>> {
public getVirtualizers() {
super("getVirtualizers");
}
+ @Override
public getVirtualizers_args getEmptyArgsInstance() {
return new getVirtualizers_args();
}
- public AsyncMethodCallback<List<Virtualizer>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<Virtualizer>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<Virtualizer>>() {
- public void onComplete(List<Virtualizer> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<Virtualizer>>() {
+ @Override
+ public void onComplete(java.util.List<Virtualizer> 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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getVirtualizers_args args, org.apache.thrift.async.AsyncMethodCallback<List<Virtualizer>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getVirtualizers_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<Virtualizer>> resultHandler) throws org.apache.thrift.TException {
iface.getVirtualizers(resultHandler);
}
}
- public static class getAllOrganizations<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getAllOrganizations_args, List<Organization>> {
+ public static class getAllOrganizations<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getAllOrganizations_args, java.util.List<Organization>> {
public getAllOrganizations() {
super("getAllOrganizations");
}
+ @Override
public getAllOrganizations_args getEmptyArgsInstance() {
return new getAllOrganizations_args();
}
- public AsyncMethodCallback<List<Organization>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<Organization>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<Organization>>() {
- public void onComplete(List<Organization> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<Organization>>() {
+ @Override
+ public void onComplete(java.util.List<Organization> 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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getAllOrganizations_args args, org.apache.thrift.async.AsyncMethodCallback<List<Organization>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getAllOrganizations_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<Organization>> resultHandler) throws org.apache.thrift.TException {
iface.getAllOrganizations(resultHandler);
}
}
- public static class getLocations<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLocations_args, List<Location>> {
+ public static class getLocations<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLocations_args, java.util.List<Location>> {
public getLocations() {
super("getLocations");
}
+ @Override
public getLocations_args getEmptyArgsInstance() {
return new getLocations_args();
}
- public AsyncMethodCallback<List<Location>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<Location>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<Location>>() {
- public void onComplete(List<Location> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<Location>>() {
+ @Override
+ public void onComplete(java.util.List<Location> 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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getLocations_args args, org.apache.thrift.async.AsyncMethodCallback<List<Location>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getLocations_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<Location>> resultHandler) throws org.apache.thrift.TException {
iface.getLocations(resultHandler);
}
}
@@ -5572,110 +6388,139 @@ public class SatelliteServer {
super("getStatus");
}
+ @Override
public getStatus_args getEmptyArgsInstance() {
return new getStatus_args();
}
- public AsyncMethodCallback<SatelliteStatus> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<SatelliteStatus> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<SatelliteStatus>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<SatelliteStatus>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getStatus_args args, org.apache.thrift.async.AsyncMethodCallback<SatelliteStatus> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getStatus_args args, org.apache.thrift.async.AsyncMethodCallback<SatelliteStatus> resultHandler) throws org.apache.thrift.TException {
iface.getStatus(resultHandler);
}
}
- public static class getImageList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImageList_args, List<ImageSummaryRead>> {
+ public static class getImageList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImageList_args, java.util.List<ImageSummaryRead>> {
public getImageList() {
super("getImageList");
}
+ @Override
public getImageList_args getEmptyArgsInstance() {
return new getImageList_args();
}
- public AsyncMethodCallback<List<ImageSummaryRead>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<ImageSummaryRead>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<ImageSummaryRead>>() {
- public void onComplete(List<ImageSummaryRead> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<ImageSummaryRead>>() {
+ @Override
+ public void onComplete(java.util.List<ImageSummaryRead> 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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getImageList_args args, org.apache.thrift.async.AsyncMethodCallback<List<ImageSummaryRead>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getImageList_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<ImageSummaryRead>> resultHandler) throws org.apache.thrift.TException {
iface.getImageList(args.userToken, args.tagSearch, args.page,resultHandler);
}
}
@@ -5685,126 +6530,151 @@ public class SatelliteServer {
super("getImageDetails");
}
+ @Override
public getImageDetails_args getEmptyArgsInstance() {
return new getImageDetails_args();
}
- public AsyncMethodCallback<ImageDetailsRead> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<ImageDetailsRead> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<ImageDetailsRead>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<ImageDetailsRead>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getImageDetails_args args, org.apache.thrift.async.AsyncMethodCallback<ImageDetailsRead> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getImageDetails_args args, org.apache.thrift.async.AsyncMethodCallback<ImageDetailsRead> resultHandler) throws org.apache.thrift.TException {
iface.getImageDetails(args.userToken, args.imageBaseId,resultHandler);
}
}
- public static class createImage<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createImage_args, String> {
+ public static class createImage<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createImage_args, java.lang.String> {
public createImage() {
super("createImage");
}
+ @Override
public createImage_args getEmptyArgsInstance() {
return new createImage_args();
}
- public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.String> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<String>() {
- public void onComplete(String o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.String>() {
+ @Override
+ 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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, createImage_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
+ @Override
+ public void start(I iface, createImage_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> resultHandler) throws org.apache.thrift.TException {
iface.createImage(args.userToken, args.imageName,resultHandler);
}
}
@@ -5814,63 +6684,75 @@ public class SatelliteServer {
super("updateImageBase");
}
+ @Override
public updateImageBase_args getEmptyArgsInstance() {
return new updateImageBase_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, updateImageBase_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, updateImageBase_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.updateImageBase(args.userToken, args.imageBaseId, args.image,resultHandler);
}
}
@@ -5880,63 +6762,75 @@ public class SatelliteServer {
super("updateImageVersion");
}
+ @Override
public updateImageVersion_args getEmptyArgsInstance() {
return new updateImageVersion_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, updateImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, updateImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.updateImageVersion(args.userToken, args.imageVersionId, args.image,resultHandler);
}
}
@@ -5946,63 +6840,75 @@ public class SatelliteServer {
super("deleteImageVersion");
}
+ @Override
public deleteImageVersion_args getEmptyArgsInstance() {
return new deleteImageVersion_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, deleteImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, deleteImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.deleteImageVersion(args.userToken, args.imageVersionId,resultHandler);
}
}
@@ -6012,63 +6918,75 @@ public class SatelliteServer {
super("deleteImageBase");
}
+ @Override
public deleteImageBase_args getEmptyArgsInstance() {
return new deleteImageBase_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, deleteImageBase_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, deleteImageBase_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.deleteImageBase(args.userToken, args.imageBaseId,resultHandler);
}
}
@@ -6078,130 +6996,154 @@ public class SatelliteServer {
super("writeImagePermissions");
}
+ @Override
public writeImagePermissions_args getEmptyArgsInstance() {
return new writeImagePermissions_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, writeImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, writeImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.writeImagePermissions(args.userToken, args.imageBaseId, args.permissions,resultHandler);
}
}
- public static class getImagePermissions<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImagePermissions_args, Map<String,ImagePermissions>> {
+ public static class getImagePermissions<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImagePermissions_args, java.util.Map<java.lang.String,ImagePermissions>> {
public getImagePermissions() {
super("getImagePermissions");
}
+ @Override
public getImagePermissions_args getEmptyArgsInstance() {
return new getImagePermissions_args();
}
- public AsyncMethodCallback<Map<String,ImagePermissions>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.Map<java.lang.String,ImagePermissions>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Map<String,ImagePermissions>>() {
- public void onComplete(Map<String,ImagePermissions> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.Map<java.lang.String,ImagePermissions>>() {
+ @Override
+ public void onComplete(java.util.Map<java.lang.String,ImagePermissions> 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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback<Map<String,ImagePermissions>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.Map<java.lang.String,ImagePermissions>> resultHandler) throws org.apache.thrift.TException {
iface.getImagePermissions(args.userToken, args.imageBaseId,resultHandler);
}
}
@@ -6211,63 +7153,75 @@ public class SatelliteServer {
super("setImageOwner");
}
+ @Override
public setImageOwner_args getEmptyArgsInstance() {
return new setImageOwner_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, setImageOwner_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, setImageOwner_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.setImageOwner(args.userToken, args.imageBaseId, args.newOwnerId,resultHandler);
}
}
@@ -6277,135 +7231,158 @@ public class SatelliteServer {
super("setImageVersionExpiry");
}
+ @Override
public setImageVersionExpiry_args getEmptyArgsInstance() {
return new setImageVersionExpiry_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, setImageVersionExpiry_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, setImageVersionExpiry_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.setImageVersionExpiry(args.userToken, args.imageBaseId, args.expireTime,resultHandler);
}
}
- public static class getImageVersionVirtConfig<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImageVersionVirtConfig_args, ByteBuffer> {
+ public static class getImageVersionVirtConfig<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getImageVersionVirtConfig_args, java.nio.ByteBuffer> {
public getImageVersionVirtConfig() {
super("getImageVersionVirtConfig");
}
+ @Override
public getImageVersionVirtConfig_args getEmptyArgsInstance() {
return new getImageVersionVirtConfig_args();
}
- public AsyncMethodCallback<ByteBuffer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.nio.ByteBuffer> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<ByteBuffer>() {
- public void onComplete(ByteBuffer o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.nio.ByteBuffer>() {
+ @Override
+ 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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getImageVersionVirtConfig_args args, org.apache.thrift.async.AsyncMethodCallback<ByteBuffer> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getImageVersionVirtConfig_args args, org.apache.thrift.async.AsyncMethodCallback<java.nio.ByteBuffer> resultHandler) throws org.apache.thrift.TException {
iface.getImageVersionVirtConfig(args.userToken, args.imageVersionId,resultHandler);
}
}
@@ -6415,274 +7392,320 @@ public class SatelliteServer {
super("setImageVersionVirtConfig");
}
+ @Override
public setImageVersionVirtConfig_args getEmptyArgsInstance() {
return new setImageVersionVirtConfig_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, setImageVersionVirtConfig_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, setImageVersionVirtConfig_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.setImageVersionVirtConfig(args.userToken, args.imageVersionId, args.meta,resultHandler);
}
}
- public static class requestImageReplication<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, requestImageReplication_args, String> {
+ public static class requestImageReplication<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, requestImageReplication_args, java.lang.String> {
public requestImageReplication() {
super("requestImageReplication");
}
+ @Override
public requestImageReplication_args getEmptyArgsInstance() {
return new requestImageReplication_args();
}
- public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.String> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<String>() {
- public void onComplete(String o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.String>() {
+ @Override
+ 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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, requestImageReplication_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
+ @Override
+ public void start(I iface, requestImageReplication_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> resultHandler) throws org.apache.thrift.TException {
iface.requestImageReplication(args.userToken, args.imageVersionId,resultHandler);
}
}
- public static class publishImageVersion<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, publishImageVersion_args, String> {
+ public static class publishImageVersion<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, publishImageVersion_args, java.lang.String> {
public publishImageVersion() {
super("publishImageVersion");
}
+ @Override
public publishImageVersion_args getEmptyArgsInstance() {
return new publishImageVersion_args();
}
- public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.String> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<String>() {
- public void onComplete(String o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.String>() {
+ @Override
+ 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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, publishImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
+ @Override
+ public void start(I iface, publishImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> resultHandler) throws org.apache.thrift.TException {
iface.publishImageVersion(args.userToken, args.imageVersionId,resultHandler);
}
}
- public static class createLecture<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createLecture_args, String> {
+ public static class createLecture<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createLecture_args, java.lang.String> {
public createLecture() {
super("createLecture");
}
+ @Override
public createLecture_args getEmptyArgsInstance() {
return new createLecture_args();
}
- public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.String> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<String>() {
- public void onComplete(String o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.String>() {
+ @Override
+ 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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, createLecture_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException {
+ @Override
+ public void start(I iface, createLecture_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> resultHandler) throws org.apache.thrift.TException {
iface.createLecture(args.userToken, args.lecture,resultHandler);
}
}
@@ -6692,130 +7715,154 @@ public class SatelliteServer {
super("updateLecture");
}
+ @Override
public updateLecture_args getEmptyArgsInstance() {
return new updateLecture_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, updateLecture_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, updateLecture_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.updateLecture(args.userToken, args.lectureId, args.lecture,resultHandler);
}
}
- public static class getLectureList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLectureList_args, List<LectureSummary>> {
+ public static class getLectureList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLectureList_args, java.util.List<LectureSummary>> {
public getLectureList() {
super("getLectureList");
}
+ @Override
public getLectureList_args getEmptyArgsInstance() {
return new getLectureList_args();
}
- public AsyncMethodCallback<List<LectureSummary>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<LectureSummary>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<List<LectureSummary>>() {
- public void onComplete(List<LectureSummary> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<LectureSummary>>() {
+ @Override
+ public void onComplete(java.util.List<LectureSummary> 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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getLectureList_args args, org.apache.thrift.async.AsyncMethodCallback<List<LectureSummary>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getLectureList_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<LectureSummary>> resultHandler) throws org.apache.thrift.TException {
iface.getLectureList(args.userToken, args.page,resultHandler);
}
}
@@ -6825,64 +7872,76 @@ public class SatelliteServer {
super("getLectureDetails");
}
+ @Override
public getLectureDetails_args getEmptyArgsInstance() {
return new getLectureDetails_args();
}
- public AsyncMethodCallback<LectureRead> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<LectureRead> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<LectureRead>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<LectureRead>() {
+ @Override
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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getLectureDetails_args args, org.apache.thrift.async.AsyncMethodCallback<LectureRead> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getLectureDetails_args args, org.apache.thrift.async.AsyncMethodCallback<LectureRead> resultHandler) throws org.apache.thrift.TException {
iface.getLectureDetails(args.userToken, args.lectureId,resultHandler);
}
}
@@ -6892,63 +7951,75 @@ public class SatelliteServer {
super("deleteLecture");
}
+ @Override
public deleteLecture_args getEmptyArgsInstance() {
return new deleteLecture_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, deleteLecture_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, deleteLecture_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.deleteLecture(args.userToken, args.lectureId,resultHandler);
}
}
@@ -6958,130 +8029,154 @@ public class SatelliteServer {
super("writeLecturePermissions");
}
+ @Override
public writeLecturePermissions_args getEmptyArgsInstance() {
return new writeLecturePermissions_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, writeLecturePermissions_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, writeLecturePermissions_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.writeLecturePermissions(args.userToken, args.lectureId, args.permissions,resultHandler);
}
}
- public static class getLecturePermissions<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLecturePermissions_args, Map<String,LecturePermissions>> {
+ public static class getLecturePermissions<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getLecturePermissions_args, java.util.Map<java.lang.String,LecturePermissions>> {
public getLecturePermissions() {
super("getLecturePermissions");
}
+ @Override
public getLecturePermissions_args getEmptyArgsInstance() {
return new getLecturePermissions_args();
}
- public AsyncMethodCallback<Map<String,LecturePermissions>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.Map<java.lang.String,LecturePermissions>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Map<String,LecturePermissions>>() {
- public void onComplete(Map<String,LecturePermissions> o) {
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.Map<java.lang.String,LecturePermissions>>() {
+ @Override
+ public void onComplete(java.util.Map<java.lang.String,LecturePermissions> 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) {
+ @Override
+ 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.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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getLecturePermissions_args args, org.apache.thrift.async.AsyncMethodCallback<Map<String,LecturePermissions>> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getLecturePermissions_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.Map<java.lang.String,LecturePermissions>> resultHandler) throws org.apache.thrift.TException {
iface.getLecturePermissions(args.userToken, args.lectureId,resultHandler);
}
}
@@ -7091,63 +8186,75 @@ public class SatelliteServer {
super("setLectureOwner");
}
+ @Override
public setLectureOwner_args getEmptyArgsInstance() {
return new setLectureOwner_args();
}
- public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<Void> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<Void>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<Void>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, setLectureOwner_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
+ @Override
+ public void start(I iface, setLectureOwner_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
iface.setLectureOwner(args.userToken, args.lectureId, args.newOwnerId,resultHandler);
}
}
@@ -7157,75 +8264,86 @@ public class SatelliteServer {
super("getPredefinedData");
}
+ @Override
public getPredefinedData_args getEmptyArgsInstance() {
return new getPredefinedData_args();
}
- public AsyncMethodCallback<PredefinedData> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ @Override
+ public org.apache.thrift.async.AsyncMethodCallback<PredefinedData> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new AsyncMethodCallback<PredefinedData>() {
+ return new org.apache.thrift.async.AsyncMethodCallback<PredefinedData>() {
+ @Override
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) {
+ @Override
+ 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();
}
};
}
+ @Override
protected boolean isOneway() {
return false;
}
- public void start(I iface, getPredefinedData_args args, org.apache.thrift.async.AsyncMethodCallback<PredefinedData> resultHandler) throws TException {
+ @Override
+ public void start(I iface, getPredefinedData_args args, org.apache.thrift.async.AsyncMethodCallback<PredefinedData> resultHandler) throws org.apache.thrift.TException {
iface.getPredefinedData(args.userToken,resultHandler);
}
}
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getVersion_args implements org.apache.thrift.TBase<getVersion_args, getVersion_args._Fields>, java.io.Serializable, Cloneable, Comparable<getVersion_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVersion_args");
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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +8351,10 @@ public class SatelliteServer {
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
CLIENT_VERSION((short)1, "clientVersion");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -7244,6 +8362,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,30 +8378,33 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -7290,12 +8412,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);
}
@@ -7318,6 +8440,7 @@ public class SatelliteServer {
this.clientVersion = other.clientVersion;
}
+ @Override
public getVersion_args deepCopy() {
return new getVersion_args(this);
}
@@ -7339,57 +8462,59 @@ 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) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +8523,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 +8540,11 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +8555,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 +8568,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +8609,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,14 +8619,16 @@ public class SatelliteServer {
}
}
- private static class getVersion_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getVersion_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getVersion_argsStandardScheme getScheme() {
return new getVersion_argsStandardScheme();
}
}
- private static class getVersion_argsStandardScheme extends StandardScheme<getVersion_args> {
+ private static class getVersion_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getVersion_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getVersion_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -7528,6 +8658,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getVersion_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -7541,18 +8672,19 @@ public class SatelliteServer {
}
- private static class getVersion_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getVersion_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getVersion_argsTupleScheme getScheme() {
return new getVersion_argsTupleScheme();
}
}
- private static class getVersion_argsTupleScheme extends TupleScheme<getVersion_args> {
+ private static class getVersion_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getVersion_args> {
@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 +8696,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,18 +8705,19 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getVersion_result implements org.apache.thrift.TBase<getVersion_result, getVersion_result._Fields>, java.io.Serializable, Cloneable, Comparable<getVersion_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVersion_result");
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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +8725,10 @@ public class SatelliteServer {
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -7603,6 +8736,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,30 +8752,33 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -7649,12 +8786,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);
}
@@ -7677,6 +8814,7 @@ public class SatelliteServer {
this.success = other.success;
}
+ @Override
public getVersion_result deepCopy() {
return new getVersion_result(this);
}
@@ -7698,57 +8836,59 @@ 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) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +8897,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 +8914,11 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +8929,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 +8942,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +8982,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,14 +8992,16 @@ public class SatelliteServer {
}
}
- private static class getVersion_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getVersion_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getVersion_resultStandardScheme getScheme() {
return new getVersion_resultStandardScheme();
}
}
- private static class getVersion_resultStandardScheme extends StandardScheme<getVersion_result> {
+ private static class getVersion_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getVersion_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getVersion_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -7887,6 +9031,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getVersion_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -7902,18 +9047,19 @@ public class SatelliteServer {
}
- private static class getVersion_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getVersion_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getVersion_resultTupleScheme getScheme() {
return new getVersion_resultTupleScheme();
}
}
- private static class getVersion_resultTupleScheme extends TupleScheme<getVersion_result> {
+ private static class getVersion_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getVersion_result> {
@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 +9071,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 +9080,28 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getSupportedFeatures_args implements org.apache.thrift.TBase<getSupportedFeatures_args, getSupportedFeatures_args._Fields>, java.io.Serializable, Cloneable, Comparable<getSupportedFeatures_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSupportedFeatures_args");
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -7962,6 +9109,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,37 +9123,40 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -8018,6 +9169,7 @@ public class SatelliteServer {
public getSupportedFeatures_args(getSupportedFeatures_args other) {
}
+ @Override
public getSupportedFeatures_args deepCopy() {
return new getSupportedFeatures_args(this);
}
@@ -8026,32 +9178,34 @@ public class SatelliteServer {
public void clear() {
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +9214,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<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -8082,21 +9238,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +9276,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,14 +9284,16 @@ public class SatelliteServer {
}
}
- private static class getSupportedFeatures_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getSupportedFeatures_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getSupportedFeatures_argsStandardScheme getScheme() {
return new getSupportedFeatures_argsStandardScheme();
}
}
- private static class getSupportedFeatures_argsStandardScheme extends StandardScheme<getSupportedFeatures_args> {
+ private static class getSupportedFeatures_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getSupportedFeatures_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getSupportedFeatures_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -8153,6 +9315,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getSupportedFeatures_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -8163,48 +9326,50 @@ public class SatelliteServer {
}
- private static class getSupportedFeatures_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getSupportedFeatures_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getSupportedFeatures_argsTupleScheme getScheme() {
return new getSupportedFeatures_argsTupleScheme();
}
}
- private static class getSupportedFeatures_argsTupleScheme extends TupleScheme<getSupportedFeatures_args> {
+ private static class getSupportedFeatures_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getSupportedFeatures_args> {
@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 extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getSupportedFeatures_result implements org.apache.thrift.TBase<getSupportedFeatures_result, getSupportedFeatures_result._Fields>, java.io.Serializable, Cloneable, Comparable<getSupportedFeatures_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSupportedFeatures_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -8212,6 +9377,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,41 +9393,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +9438,7 @@ public class SatelliteServer {
}
public getSupportedFeatures_result(
- String success)
+ java.lang.String success)
{
this();
this.success = success;
@@ -8284,6 +9453,7 @@ public class SatelliteServer {
}
}
+ @Override
public getSupportedFeatures_result deepCopy() {
return new getSupportedFeatures_result(this);
}
@@ -8293,11 +9463,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 +9488,47 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +9537,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 +9554,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +9571,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 +9584,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +9628,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,14 +9636,16 @@ public class SatelliteServer {
}
}
- private static class getSupportedFeatures_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getSupportedFeatures_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getSupportedFeatures_resultStandardScheme getScheme() {
return new getSupportedFeatures_resultStandardScheme();
}
}
- private static class getSupportedFeatures_resultStandardScheme extends StandardScheme<getSupportedFeatures_result> {
+ private static class getSupportedFeatures_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getSupportedFeatures_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getSupportedFeatures_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -8496,6 +9675,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getSupportedFeatures_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -8511,18 +9691,19 @@ public class SatelliteServer {
}
- private static class getSupportedFeatures_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getSupportedFeatures_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getSupportedFeatures_resultTupleScheme getScheme() {
return new getSupportedFeatures_resultTupleScheme();
}
}
- private static class getSupportedFeatures_resultTupleScheme extends TupleScheme<getSupportedFeatures_result> {
+ private static class getSupportedFeatures_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getSupportedFeatures_result> {
@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 +9715,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 +9724,28 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getConfiguration_args implements org.apache.thrift.TBase<getConfiguration_args, getConfiguration_args._Fields>, java.io.Serializable, Cloneable, Comparable<getConfiguration_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getConfiguration_args");
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -8571,6 +9753,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,37 +9767,40 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -8627,6 +9813,7 @@ public class SatelliteServer {
public getConfiguration_args(getConfiguration_args other) {
}
+ @Override
public getConfiguration_args deepCopy() {
return new getConfiguration_args(this);
}
@@ -8635,32 +9822,34 @@ public class SatelliteServer {
public void clear() {
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +9858,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<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -8691,21 +9882,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +9920,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,14 +9928,16 @@ public class SatelliteServer {
}
}
- private static class getConfiguration_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getConfiguration_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getConfiguration_argsStandardScheme getScheme() {
return new getConfiguration_argsStandardScheme();
}
}
- private static class getConfiguration_argsStandardScheme extends StandardScheme<getConfiguration_args> {
+ private static class getConfiguration_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getConfiguration_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getConfiguration_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -8762,6 +9959,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getConfiguration_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -8772,48 +9970,50 @@ public class SatelliteServer {
}
- private static class getConfiguration_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getConfiguration_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getConfiguration_argsTupleScheme getScheme() {
return new getConfiguration_argsTupleScheme();
}
}
- private static class getConfiguration_argsTupleScheme extends TupleScheme<getConfiguration_args> {
+ private static class getConfiguration_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getConfiguration_args> {
@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 extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getConfiguration_result implements org.apache.thrift.TBase<getConfiguration_result, getConfiguration_result._Fields>, java.io.Serializable, Cloneable, Comparable<getConfiguration_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getConfiguration_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -8821,6 +10021,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,41 +10037,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -8893,6 +10097,7 @@ public class SatelliteServer {
}
}
+ @Override
public getConfiguration_result deepCopy() {
return new getConfiguration_result(this);
}
@@ -8902,11 +10107,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 +10132,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -8939,32 +10146,33 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ 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 */
+ @Override
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 +10181,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 +10198,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +10215,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 +10228,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +10275,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,14 +10283,16 @@ public class SatelliteServer {
}
}
- private static class getConfiguration_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getConfiguration_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getConfiguration_resultStandardScheme getScheme() {
return new getConfiguration_resultStandardScheme();
}
}
- private static class getConfiguration_resultStandardScheme extends StandardScheme<getConfiguration_result> {
+ private static class getConfiguration_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getConfiguration_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getConfiguration_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -9109,6 +10323,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getConfiguration_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -9124,18 +10339,19 @@ public class SatelliteServer {
}
- private static class getConfiguration_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getConfiguration_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getConfiguration_resultTupleScheme getScheme() {
return new getConfiguration_resultTupleScheme();
}
}
- private static class getConfiguration_resultTupleScheme extends TupleScheme<getConfiguration_result> {
+ private static class getConfiguration_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getConfiguration_result> {
@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 +10363,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,8 +10373,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class requestImageVersionUpload_args implements org.apache.thrift.TBase<requestImageVersionUpload_args, requestImageVersionUpload_args._Fields>, java.io.Serializable, Cloneable, Comparable<requestImageVersionUpload_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestImageVersionUpload_args");
@@ -9168,17 +10388,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<ByteBuffer> blockHashes; // required
- public ByteBuffer machineDescription; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<java.nio.ByteBuffer> 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 +10405,10 @@ public class SatelliteServer {
BLOCK_HASHES((short)4, "blockHashes"),
MACHINE_DESCRIPTION((short)5, "machineDescription");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -9199,6 +10416,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,30 +10440,33 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -9253,9 +10474,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 +10488,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 +10496,11 @@ public class SatelliteServer {
}
public requestImageVersionUpload_args(
- String userToken,
- String imageBaseId,
+ java.lang.String userToken,
+ java.lang.String imageBaseId,
long fileSize,
- List<ByteBuffer> blockHashes,
- ByteBuffer machineDescription)
+ java.util.List<java.nio.ByteBuffer> blockHashes,
+ java.nio.ByteBuffer machineDescription)
{
this();
this.userToken = userToken;
@@ -9303,7 +10524,7 @@ public class SatelliteServer {
}
this.fileSize = other.fileSize;
if (other.isSetBlockHashes()) {
- List<ByteBuffer> __this__blockHashes = new ArrayList<ByteBuffer>(other.blockHashes);
+ java.util.List<java.nio.ByteBuffer> __this__blockHashes = new java.util.ArrayList<java.nio.ByteBuffer>(other.blockHashes);
this.blockHashes = __this__blockHashes;
}
if (other.isSetMachineDescription()) {
@@ -9311,6 +10532,7 @@ public class SatelliteServer {
}
}
+ @Override
public requestImageVersionUpload_args deepCopy() {
return new requestImageVersionUpload_args(this);
}
@@ -9325,11 +10547,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 +10572,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 +10608,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<ByteBuffer> getBlockHashesIterator() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.Iterator<java.nio.ByteBuffer> 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<ByteBuffer>();
+ this.blockHashes = new java.util.ArrayList<java.nio.ByteBuffer>();
}
this.blockHashes.add(elem);
}
- public List<ByteBuffer> getBlockHashes() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<java.nio.ByteBuffer> getBlockHashes() {
return this.blockHashes;
}
- public requestImageVersionUpload_args setBlockHashes(List<ByteBuffer> blockHashes) {
+ public requestImageVersionUpload_args setBlockHashes(@org.apache.thrift.annotation.Nullable java.util.List<java.nio.ByteBuffer> blockHashes) {
this.blockHashes = blockHashes;
return this;
}
@@ -9440,16 +10666,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 +10695,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +10710,7 @@ public class SatelliteServer {
if (value == null) {
unsetImageBaseId();
} else {
- setImageBaseId((String)value);
+ setImageBaseId((java.lang.String)value);
}
break;
@@ -9491,7 +10718,7 @@ public class SatelliteServer {
if (value == null) {
unsetFileSize();
} else {
- setFileSize((Long)value);
+ setFileSize((java.lang.Long)value);
}
break;
@@ -9499,7 +10726,7 @@ public class SatelliteServer {
if (value == null) {
unsetBlockHashes();
} else {
- setBlockHashes((List<ByteBuffer>)value);
+ setBlockHashes((java.util.List<java.nio.ByteBuffer>)value);
}
break;
@@ -9507,14 +10734,20 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -9532,13 +10765,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -9553,13 +10787,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 +10800,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 +10853,27 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +10884,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 +10894,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 +10904,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 +10914,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 +10924,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 +10937,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +11010,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,14 +11020,16 @@ public class SatelliteServer {
}
}
- private static class requestImageVersionUpload_argsStandardSchemeFactory implements SchemeFactory {
+ private static class requestImageVersionUpload_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public requestImageVersionUpload_argsStandardScheme getScheme() {
return new requestImageVersionUpload_argsStandardScheme();
}
}
- private static class requestImageVersionUpload_argsStandardScheme extends StandardScheme<requestImageVersionUpload_args> {
+ private static class requestImageVersionUpload_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<requestImageVersionUpload_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageVersionUpload_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -9834,13 +11067,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<ByteBuffer>(_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<java.nio.ByteBuffer>(_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();
}
@@ -9868,6 +11101,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, requestImageVersionUpload_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -9889,9 +11123,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 +11142,19 @@ public class SatelliteServer {
}
- private static class requestImageVersionUpload_argsTupleSchemeFactory implements SchemeFactory {
+ private static class requestImageVersionUpload_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public requestImageVersionUpload_argsTupleScheme getScheme() {
return new requestImageVersionUpload_argsTupleScheme();
}
}
- private static class requestImageVersionUpload_argsTupleScheme extends TupleScheme<requestImageVersionUpload_args> {
+ private static class requestImageVersionUpload_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<requestImageVersionUpload_args> {
@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 +11183,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 +11196,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 +11212,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<ByteBuffer>(_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<java.nio.ByteBuffer>(_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,8 +11230,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class requestImageVersionUpload_result implements org.apache.thrift.TBase<requestImageVersionUpload_result, requestImageVersionUpload_result._Fields>, java.io.Serializable, Cloneable, Comparable<requestImageVersionUpload_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestImageVersionUpload_result");
@@ -10006,17 +11245,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +11262,10 @@ public class SatelliteServer {
FFFF((short)3, "ffff"),
SDF((short)4, "sdf");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -10037,6 +11273,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,49 +11297,52 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -10145,6 +11385,7 @@ public class SatelliteServer {
}
}
+ @Override
public requestImageVersionUpload_result deepCopy() {
return new requestImageVersionUpload_result(this);
}
@@ -10158,11 +11399,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 +11424,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 +11449,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 +11474,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 +11499,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 +11524,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -10323,7 +11570,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -10341,13 +11590,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -10362,13 +11612,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 +11625,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 +11678,29 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +11711,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 +11721,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 +11731,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 +11741,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 +11751,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 +11764,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +11843,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,14 +11851,16 @@ public class SatelliteServer {
}
}
- private static class requestImageVersionUpload_resultStandardSchemeFactory implements SchemeFactory {
+ private static class requestImageVersionUpload_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public requestImageVersionUpload_resultStandardScheme getScheme() {
return new requestImageVersionUpload_resultStandardScheme();
}
}
- private static class requestImageVersionUpload_resultStandardScheme extends StandardScheme<requestImageVersionUpload_result> {
+ private static class requestImageVersionUpload_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<requestImageVersionUpload_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageVersionUpload_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -10677,6 +11927,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, requestImageVersionUpload_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -10712,18 +11963,19 @@ public class SatelliteServer {
}
- private static class requestImageVersionUpload_resultTupleSchemeFactory implements SchemeFactory {
+ private static class requestImageVersionUpload_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public requestImageVersionUpload_resultTupleScheme getScheme() {
return new requestImageVersionUpload_resultTupleScheme();
}
}
- private static class requestImageVersionUpload_resultTupleScheme extends TupleScheme<requestImageVersionUpload_result> {
+ private static class requestImageVersionUpload_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<requestImageVersionUpload_result> {
@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 +12011,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,8 +12041,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class updateBlockHashes_args implements org.apache.thrift.TBase<updateBlockHashes_args, updateBlockHashes_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateBlockHashes_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateBlockHashes_args");
@@ -10798,15 +12054,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<ByteBuffer> 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<java.nio.ByteBuffer> 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 +12067,10 @@ public class SatelliteServer {
BLOCK_HASHES((short)2, "blockHashes"),
USER_TOKEN((short)3, "userToken");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -10825,6 +12078,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,38 +12098,41 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +12140,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 +12148,9 @@ public class SatelliteServer {
}
public updateBlockHashes_args(
- String uploadToken,
- List<ByteBuffer> blockHashes,
- String userToken)
+ java.lang.String uploadToken,
+ java.util.List<java.nio.ByteBuffer> blockHashes,
+ java.lang.String userToken)
{
this();
this.uploadToken = uploadToken;
@@ -10909,7 +12166,7 @@ public class SatelliteServer {
this.uploadToken = other.uploadToken;
}
if (other.isSetBlockHashes()) {
- List<ByteBuffer> __this__blockHashes = new ArrayList<ByteBuffer>(other.blockHashes);
+ java.util.List<java.nio.ByteBuffer> __this__blockHashes = new java.util.ArrayList<java.nio.ByteBuffer>(other.blockHashes);
this.blockHashes = __this__blockHashes;
}
if (other.isSetUserToken()) {
@@ -10917,6 +12174,7 @@ public class SatelliteServer {
}
}
+ @Override
public updateBlockHashes_args deepCopy() {
return new updateBlockHashes_args(this);
}
@@ -10928,11 +12186,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 +12215,24 @@ public class SatelliteServer {
return (this.blockHashes == null) ? 0 : this.blockHashes.size();
}
- public java.util.Iterator<ByteBuffer> getBlockHashesIterator() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.Iterator<java.nio.ByteBuffer> 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<ByteBuffer>();
+ this.blockHashes = new java.util.ArrayList<java.nio.ByteBuffer>();
}
this.blockHashes.add(elem);
}
- public List<ByteBuffer> getBlockHashes() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<java.nio.ByteBuffer> getBlockHashes() {
return this.blockHashes;
}
- public updateBlockHashes_args setBlockHashes(List<ByteBuffer> blockHashes) {
+ public updateBlockHashes_args setBlockHashes(@org.apache.thrift.annotation.Nullable java.util.List<java.nio.ByteBuffer> blockHashes) {
this.blockHashes = blockHashes;
return this;
}
@@ -10991,11 +12252,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 +12277,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +12292,7 @@ public class SatelliteServer {
if (value == null) {
unsetBlockHashes();
} else {
- setBlockHashes((List<ByteBuffer>)value);
+ setBlockHashes((java.util.List<java.nio.ByteBuffer>)value);
}
break;
@@ -11037,14 +12300,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case UPLOAD_TOKEN:
return getUploadToken();
@@ -11056,13 +12321,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -11073,13 +12339,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 +12352,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 +12387,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +12412,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 +12422,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 +12432,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 +12445,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +12506,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,14 +12514,16 @@ public class SatelliteServer {
}
}
- private static class updateBlockHashes_argsStandardSchemeFactory implements SchemeFactory {
+ private static class updateBlockHashes_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateBlockHashes_argsStandardScheme getScheme() {
return new updateBlockHashes_argsStandardScheme();
}
}
- private static class updateBlockHashes_argsStandardScheme extends StandardScheme<updateBlockHashes_args> {
+ private static class updateBlockHashes_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<updateBlockHashes_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, updateBlockHashes_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -11276,13 +12545,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<ByteBuffer>(_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<java.nio.ByteBuffer>(_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();
}
@@ -11310,6 +12579,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, updateBlockHashes_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -11323,9 +12593,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 +12612,19 @@ public class SatelliteServer {
}
- private static class updateBlockHashes_argsTupleSchemeFactory implements SchemeFactory {
+ private static class updateBlockHashes_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateBlockHashes_argsTupleScheme getScheme() {
return new updateBlockHashes_argsTupleScheme();
}
}
- private static class updateBlockHashes_argsTupleScheme extends TupleScheme<updateBlockHashes_args> {
+ private static class updateBlockHashes_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<updateBlockHashes_args> {
@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 +12641,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 +12654,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<ByteBuffer>(_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<java.nio.ByteBuffer>(_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,29 +12680,30 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class updateBlockHashes_result implements org.apache.thrift.TBase<updateBlockHashes_result, updateBlockHashes_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateBlockHashes_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateBlockHashes_result");
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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -11439,6 +12711,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,41 +12727,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -11511,6 +12787,7 @@ public class SatelliteServer {
}
}
+ @Override
public updateBlockHashes_result deepCopy() {
return new updateBlockHashes_result(this);
}
@@ -11520,11 +12797,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 +12822,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case EX1:
if (value == null) {
@@ -11557,32 +12836,33 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ 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 */
+ @Override
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 +12871,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 +12888,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +12905,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 +12918,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +12962,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,14 +12970,16 @@ public class SatelliteServer {
}
}
- private static class updateBlockHashes_resultStandardSchemeFactory implements SchemeFactory {
+ private static class updateBlockHashes_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateBlockHashes_resultStandardScheme getScheme() {
return new updateBlockHashes_resultStandardScheme();
}
}
- private static class updateBlockHashes_resultStandardScheme extends StandardScheme<updateBlockHashes_result> {
+ private static class updateBlockHashes_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<updateBlockHashes_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, updateBlockHashes_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -11724,6 +13010,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, updateBlockHashes_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -11739,18 +13026,19 @@ public class SatelliteServer {
}
- private static class updateBlockHashes_resultTupleSchemeFactory implements SchemeFactory {
+ private static class updateBlockHashes_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateBlockHashes_resultTupleScheme getScheme() {
return new updateBlockHashes_resultTupleScheme();
}
}
- private static class updateBlockHashes_resultTupleScheme extends TupleScheme<updateBlockHashes_result> {
+ private static class updateBlockHashes_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<updateBlockHashes_result> {
@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 +13050,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,8 +13060,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class setUploadOptions_args implements org.apache.thrift.TBase<setUploadOptions_args, setUploadOptions_args._Fields>, java.io.Serializable, Cloneable, Comparable<setUploadOptions_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUploadOptions_args");
@@ -11781,15 +13073,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +13086,10 @@ public class SatelliteServer {
UPLOAD_TOKEN((short)2, "uploadToken"),
OPTIONS((short)3, "options");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -11808,6 +13097,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,45 +13117,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +13166,8 @@ public class SatelliteServer {
}
public setUploadOptions_args(
- String userToken,
- String uploadToken,
+ java.lang.String userToken,
+ java.lang.String uploadToken,
UploadOptions options)
{
this();
@@ -11898,6 +13191,7 @@ public class SatelliteServer {
}
}
+ @Override
public setUploadOptions_args deepCopy() {
return new setUploadOptions_args(this);
}
@@ -11909,11 +13203,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 +13228,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 +13253,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 +13278,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +13293,7 @@ public class SatelliteServer {
if (value == null) {
unsetUploadToken();
} else {
- setUploadToken((String)value);
+ setUploadToken((java.lang.String)value);
}
break;
@@ -12010,7 +13308,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -12022,13 +13322,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -12039,13 +13340,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 +13353,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 +13388,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +13413,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 +13423,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 +13433,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 +13446,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +13510,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,14 +13518,16 @@ public class SatelliteServer {
}
}
- private static class setUploadOptions_argsStandardSchemeFactory implements SchemeFactory {
+ private static class setUploadOptions_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setUploadOptions_argsStandardScheme getScheme() {
return new setUploadOptions_argsStandardScheme();
}
}
- private static class setUploadOptions_argsStandardScheme extends StandardScheme<setUploadOptions_args> {
+ private static class setUploadOptions_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<setUploadOptions_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, setUploadOptions_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -12270,6 +13574,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, setUploadOptions_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -12295,18 +13600,19 @@ public class SatelliteServer {
}
- private static class setUploadOptions_argsTupleSchemeFactory implements SchemeFactory {
+ private static class setUploadOptions_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setUploadOptions_argsTupleScheme getScheme() {
return new setUploadOptions_argsTupleScheme();
}
}
- private static class setUploadOptions_argsTupleScheme extends TupleScheme<setUploadOptions_args> {
+ private static class setUploadOptions_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<setUploadOptions_args> {
@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 +13636,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,8 +13654,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class setUploadOptions_result implements org.apache.thrift.TBase<setUploadOptions_result, setUploadOptions_result._Fields>, java.io.Serializable, Cloneable, Comparable<setUploadOptions_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUploadOptions_result");
@@ -12357,15 +13667,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +13680,10 @@ public class SatelliteServer {
FROOTLOOPS((short)1, "frootloops"),
IMCYBORGBUTTHATSOK((short)2, "imcyborgbutthatsok");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -12384,6 +13691,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,45 +13711,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -12474,6 +13785,7 @@ public class SatelliteServer {
}
}
+ @Override
public setUploadOptions_result deepCopy() {
return new setUploadOptions_result(this);
}
@@ -12485,11 +13797,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 +13822,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 +13847,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 +13872,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -12586,7 +13902,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -12598,13 +13916,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -12615,13 +13934,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 +13947,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 +13982,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +14007,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 +14017,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 +14027,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 +14040,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +14103,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,14 +14111,16 @@ public class SatelliteServer {
}
}
- private static class setUploadOptions_resultStandardSchemeFactory implements SchemeFactory {
+ private static class setUploadOptions_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setUploadOptions_resultStandardScheme getScheme() {
return new setUploadOptions_resultStandardScheme();
}
}
- private static class setUploadOptions_resultStandardScheme extends StandardScheme<setUploadOptions_result> {
+ private static class setUploadOptions_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<setUploadOptions_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, setUploadOptions_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -12848,6 +14169,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, setUploadOptions_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -12873,18 +14195,19 @@ public class SatelliteServer {
}
- private static class setUploadOptions_resultTupleSchemeFactory implements SchemeFactory {
+ private static class setUploadOptions_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setUploadOptions_resultTupleScheme getScheme() {
return new setUploadOptions_resultTupleScheme();
}
}
- private static class setUploadOptions_resultTupleScheme extends TupleScheme<setUploadOptions_result> {
+ private static class setUploadOptions_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<setUploadOptions_result> {
@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 +14231,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,29 +14251,30 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class cancelUpload_args implements org.apache.thrift.TBase<cancelUpload_args, cancelUpload_args._Fields>, java.io.Serializable, Cloneable, Comparable<cancelUpload_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cancelUpload_args");
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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -12958,6 +14282,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,41 +14298,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +14343,7 @@ public class SatelliteServer {
}
public cancelUpload_args(
- String uploadToken)
+ java.lang.String uploadToken)
{
this();
this.uploadToken = uploadToken;
@@ -13030,6 +14358,7 @@ public class SatelliteServer {
}
}
+ @Override
public cancelUpload_args deepCopy() {
return new cancelUpload_args(this);
}
@@ -13039,11 +14368,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 +14393,47 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +14442,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 +14459,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +14476,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 +14489,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +14534,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,14 +14542,16 @@ public class SatelliteServer {
}
}
- private static class cancelUpload_argsStandardSchemeFactory implements SchemeFactory {
+ private static class cancelUpload_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public cancelUpload_argsStandardScheme getScheme() {
return new cancelUpload_argsStandardScheme();
}
}
- private static class cancelUpload_argsStandardScheme extends StandardScheme<cancelUpload_args> {
+ private static class cancelUpload_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<cancelUpload_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, cancelUpload_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -13242,6 +14581,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, cancelUpload_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -13257,18 +14597,19 @@ public class SatelliteServer {
}
- private static class cancelUpload_argsTupleSchemeFactory implements SchemeFactory {
+ private static class cancelUpload_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public cancelUpload_argsTupleScheme getScheme() {
return new cancelUpload_argsTupleScheme();
}
}
- private static class cancelUpload_argsTupleScheme extends TupleScheme<cancelUpload_args> {
+ private static class cancelUpload_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<cancelUpload_args> {
@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 +14621,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,29 +14630,30 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class cancelUpload_result implements org.apache.thrift.TBase<cancelUpload_result, cancelUpload_result._Fields>, java.io.Serializable, Cloneable, Comparable<cancelUpload_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cancelUpload_result");
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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -13319,6 +14661,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,41 +14677,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -13391,6 +14737,7 @@ public class SatelliteServer {
}
}
+ @Override
public cancelUpload_result deepCopy() {
return new cancelUpload_result(this);
}
@@ -13400,11 +14747,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 +14772,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case EX1:
if (value == null) {
@@ -13437,32 +14786,33 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ 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 */
+ @Override
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 +14821,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 +14838,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +14855,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 +14868,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +14912,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,14 +14920,16 @@ public class SatelliteServer {
}
}
- private static class cancelUpload_resultStandardSchemeFactory implements SchemeFactory {
+ private static class cancelUpload_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public cancelUpload_resultStandardScheme getScheme() {
return new cancelUpload_resultStandardScheme();
}
}
- private static class cancelUpload_resultStandardScheme extends StandardScheme<cancelUpload_result> {
+ private static class cancelUpload_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<cancelUpload_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, cancelUpload_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -13604,6 +14960,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, cancelUpload_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -13619,18 +14976,19 @@ public class SatelliteServer {
}
- private static class cancelUpload_resultTupleSchemeFactory implements SchemeFactory {
+ private static class cancelUpload_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public cancelUpload_resultTupleScheme getScheme() {
return new cancelUpload_resultTupleScheme();
}
}
- private static class cancelUpload_resultTupleScheme extends TupleScheme<cancelUpload_result> {
+ private static class cancelUpload_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<cancelUpload_result> {
@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 +15000,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,29 +15010,30 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class queryUploadStatus_args implements org.apache.thrift.TBase<queryUploadStatus_args, queryUploadStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<queryUploadStatus_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("queryUploadStatus_args");
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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -13682,6 +15041,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,41 +15057,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +15102,7 @@ public class SatelliteServer {
}
public queryUploadStatus_args(
- String uploadToken)
+ java.lang.String uploadToken)
{
this();
this.uploadToken = uploadToken;
@@ -13754,6 +15117,7 @@ public class SatelliteServer {
}
}
+ @Override
public queryUploadStatus_args deepCopy() {
return new queryUploadStatus_args(this);
}
@@ -13763,11 +15127,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 +15152,47 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +15201,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 +15218,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +15235,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 +15248,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +15293,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,14 +15301,16 @@ public class SatelliteServer {
}
}
- private static class queryUploadStatus_argsStandardSchemeFactory implements SchemeFactory {
+ private static class queryUploadStatus_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public queryUploadStatus_argsStandardScheme getScheme() {
return new queryUploadStatus_argsStandardScheme();
}
}
- private static class queryUploadStatus_argsStandardScheme extends StandardScheme<queryUploadStatus_args> {
+ private static class queryUploadStatus_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<queryUploadStatus_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, queryUploadStatus_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -13966,6 +15340,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, queryUploadStatus_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -13981,18 +15356,19 @@ public class SatelliteServer {
}
- private static class queryUploadStatus_argsTupleSchemeFactory implements SchemeFactory {
+ private static class queryUploadStatus_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public queryUploadStatus_argsTupleScheme getScheme() {
return new queryUploadStatus_argsTupleScheme();
}
}
- private static class queryUploadStatus_argsTupleScheme extends TupleScheme<queryUploadStatus_args> {
+ private static class queryUploadStatus_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<queryUploadStatus_args> {
@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 +15380,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,32 +15389,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class queryUploadStatus_result implements org.apache.thrift.TBase<queryUploadStatus_result, queryUploadStatus_result._Fields>, java.io.Serializable, Cloneable, Comparable<queryUploadStatus_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("queryUploadStatus_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.protocol.TField EX1_FIELD_DESC = new org.apache.thrift.protocol.TField("ex1", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -14046,6 +15423,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,43 +15441,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -14127,6 +15508,7 @@ public class SatelliteServer {
}
}
+ @Override
public queryUploadStatus_result deepCopy() {
return new queryUploadStatus_result(this);
}
@@ -14137,11 +15519,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 +15544,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 +15569,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -14206,7 +15591,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -14215,13 +15602,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -14230,13 +15618,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 +15631,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 +15657,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +15678,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 +15688,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 +15701,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +15756,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,14 +15764,16 @@ public class SatelliteServer {
}
}
- private static class queryUploadStatus_resultStandardSchemeFactory implements SchemeFactory {
+ private static class queryUploadStatus_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public queryUploadStatus_resultStandardScheme getScheme() {
return new queryUploadStatus_resultStandardScheme();
}
}
- private static class queryUploadStatus_resultStandardScheme extends StandardScheme<queryUploadStatus_result> {
+ private static class queryUploadStatus_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<queryUploadStatus_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, queryUploadStatus_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -14422,6 +15813,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, queryUploadStatus_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -14442,18 +15834,19 @@ public class SatelliteServer {
}
- private static class queryUploadStatus_resultTupleSchemeFactory implements SchemeFactory {
+ private static class queryUploadStatus_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public queryUploadStatus_resultTupleScheme getScheme() {
return new queryUploadStatus_resultTupleScheme();
}
}
- private static class queryUploadStatus_resultTupleScheme extends TupleScheme<queryUploadStatus_result> {
+ private static class queryUploadStatus_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<queryUploadStatus_result> {
@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 +15864,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,32 +15879,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class requestDownload_args implements org.apache.thrift.TBase<requestDownload_args, requestDownload_args._Fields>, java.io.Serializable, Cloneable, Comparable<requestDownload_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestDownload_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -14519,6 +15913,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,43 +15931,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +15978,8 @@ public class SatelliteServer {
}
public requestDownload_args(
- String userToken,
- String imageVersionId)
+ java.lang.String userToken,
+ java.lang.String imageVersionId)
{
this();
this.userToken = userToken;
@@ -14600,6 +15998,7 @@ public class SatelliteServer {
}
}
+ @Override
public requestDownload_args deepCopy() {
return new requestDownload_args(this);
}
@@ -14610,11 +16009,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 +16034,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 +16059,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +16074,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -14688,13 +16092,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -14703,13 +16108,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 +16121,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 +16147,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +16168,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 +16178,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 +16191,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +16244,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,14 +16252,16 @@ public class SatelliteServer {
}
}
- private static class requestDownload_argsStandardSchemeFactory implements SchemeFactory {
+ private static class requestDownload_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public requestDownload_argsStandardScheme getScheme() {
return new requestDownload_argsStandardScheme();
}
}
- private static class requestDownload_argsStandardScheme extends StandardScheme<requestDownload_args> {
+ private static class requestDownload_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<requestDownload_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, requestDownload_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -14890,6 +16299,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, requestDownload_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -14910,18 +16320,19 @@ public class SatelliteServer {
}
- private static class requestDownload_argsTupleSchemeFactory implements SchemeFactory {
+ private static class requestDownload_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public requestDownload_argsTupleScheme getScheme() {
return new requestDownload_argsTupleScheme();
}
}
- private static class requestDownload_argsTupleScheme extends TupleScheme<requestDownload_args> {
+ private static class requestDownload_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<requestDownload_args> {
@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 +16350,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,8 +16363,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class requestDownload_result implements org.apache.thrift.TBase<requestDownload_result, requestDownload_result._Fields>, java.io.Serializable, Cloneable, Comparable<requestDownload_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestDownload_result");
@@ -14963,17 +16378,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +16395,10 @@ public class SatelliteServer {
FFFF((short)3, "ffff"),
SDF((short)4, "sdf");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -14994,6 +16406,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,49 +16430,52 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -15102,6 +16518,7 @@ public class SatelliteServer {
}
}
+ @Override
public requestDownload_result deepCopy() {
return new requestDownload_result(this);
}
@@ -15115,11 +16532,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 +16557,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 +16582,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 +16607,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 +16632,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 +16657,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -15280,7 +16703,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -15298,13 +16723,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -15319,13 +16745,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 +16758,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 +16811,29 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +16844,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 +16854,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 +16864,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 +16874,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 +16884,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 +16897,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +16976,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,14 +16984,16 @@ public class SatelliteServer {
}
}
- private static class requestDownload_resultStandardSchemeFactory implements SchemeFactory {
+ private static class requestDownload_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public requestDownload_resultStandardScheme getScheme() {
return new requestDownload_resultStandardScheme();
}
}
- private static class requestDownload_resultStandardScheme extends StandardScheme<requestDownload_result> {
+ private static class requestDownload_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<requestDownload_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, requestDownload_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -15634,6 +17060,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, requestDownload_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -15669,18 +17096,19 @@ public class SatelliteServer {
}
- private static class requestDownload_resultTupleSchemeFactory implements SchemeFactory {
+ private static class requestDownload_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public requestDownload_resultTupleScheme getScheme() {
return new requestDownload_resultTupleScheme();
}
}
- private static class requestDownload_resultTupleScheme extends TupleScheme<requestDownload_result> {
+ private static class requestDownload_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<requestDownload_result> {
@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 +17144,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,29 +17174,30 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class cancelDownload_args implements org.apache.thrift.TBase<cancelDownload_args, cancelDownload_args._Fields>, java.io.Serializable, Cloneable, Comparable<cancelDownload_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cancelDownload_args");
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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -15776,6 +17205,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,41 +17221,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +17266,7 @@ public class SatelliteServer {
}
public cancelDownload_args(
- String downloadToken)
+ java.lang.String downloadToken)
{
this();
this.downloadToken = downloadToken;
@@ -15848,6 +17281,7 @@ public class SatelliteServer {
}
}
+ @Override
public cancelDownload_args deepCopy() {
return new cancelDownload_args(this);
}
@@ -15857,11 +17291,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 +17316,47 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +17365,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 +17382,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +17399,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 +17412,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +17457,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,14 +17465,16 @@ public class SatelliteServer {
}
}
- private static class cancelDownload_argsStandardSchemeFactory implements SchemeFactory {
+ private static class cancelDownload_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public cancelDownload_argsStandardScheme getScheme() {
return new cancelDownload_argsStandardScheme();
}
}
- private static class cancelDownload_argsStandardScheme extends StandardScheme<cancelDownload_args> {
+ private static class cancelDownload_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<cancelDownload_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, cancelDownload_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -16060,6 +17504,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, cancelDownload_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -16075,18 +17520,19 @@ public class SatelliteServer {
}
- private static class cancelDownload_argsTupleSchemeFactory implements SchemeFactory {
+ private static class cancelDownload_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public cancelDownload_argsTupleScheme getScheme() {
return new cancelDownload_argsTupleScheme();
}
}
- private static class cancelDownload_argsTupleScheme extends TupleScheme<cancelDownload_args> {
+ private static class cancelDownload_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<cancelDownload_args> {
@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 +17544,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,29 +17553,30 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class cancelDownload_result implements org.apache.thrift.TBase<cancelDownload_result, cancelDownload_result._Fields>, java.io.Serializable, Cloneable, Comparable<cancelDownload_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cancelDownload_result");
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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -16137,6 +17584,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,41 +17600,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -16209,6 +17660,7 @@ public class SatelliteServer {
}
}
+ @Override
public cancelDownload_result deepCopy() {
return new cancelDownload_result(this);
}
@@ -16218,11 +17670,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 +17695,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case EX1:
if (value == null) {
@@ -16255,32 +17709,33 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ 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 */
+ @Override
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 +17744,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 +17761,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +17778,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 +17791,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +17835,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,14 +17843,16 @@ public class SatelliteServer {
}
}
- private static class cancelDownload_resultStandardSchemeFactory implements SchemeFactory {
+ private static class cancelDownload_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public cancelDownload_resultStandardScheme getScheme() {
return new cancelDownload_resultStandardScheme();
}
}
- private static class cancelDownload_resultStandardScheme extends StandardScheme<cancelDownload_result> {
+ private static class cancelDownload_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<cancelDownload_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, cancelDownload_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -16422,6 +17883,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, cancelDownload_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -16437,18 +17899,19 @@ public class SatelliteServer {
}
- private static class cancelDownload_resultTupleSchemeFactory implements SchemeFactory {
+ private static class cancelDownload_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public cancelDownload_resultTupleScheme getScheme() {
return new cancelDownload_resultTupleScheme();
}
}
- private static class cancelDownload_resultTupleScheme extends TupleScheme<cancelDownload_result> {
+ private static class cancelDownload_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<cancelDownload_result> {
@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 +17923,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,29 +17933,30 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class isAuthenticated_args implements org.apache.thrift.TBase<isAuthenticated_args, isAuthenticated_args._Fields>, java.io.Serializable, Cloneable, Comparable<isAuthenticated_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isAuthenticated_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -16500,6 +17964,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,41 +17980,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +18025,7 @@ public class SatelliteServer {
}
public isAuthenticated_args(
- String userToken)
+ java.lang.String userToken)
{
this();
this.userToken = userToken;
@@ -16572,6 +18040,7 @@ public class SatelliteServer {
}
}
+ @Override
public isAuthenticated_args deepCopy() {
return new isAuthenticated_args(this);
}
@@ -16581,11 +18050,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 +18075,47 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +18124,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 +18141,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +18158,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 +18171,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +18216,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,14 +18224,16 @@ public class SatelliteServer {
}
}
- private static class isAuthenticated_argsStandardSchemeFactory implements SchemeFactory {
+ private static class isAuthenticated_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public isAuthenticated_argsStandardScheme getScheme() {
return new isAuthenticated_argsStandardScheme();
}
}
- private static class isAuthenticated_argsStandardScheme extends StandardScheme<isAuthenticated_args> {
+ private static class isAuthenticated_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<isAuthenticated_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, isAuthenticated_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -16784,6 +18263,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, isAuthenticated_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -16799,18 +18279,19 @@ public class SatelliteServer {
}
- private static class isAuthenticated_argsTupleSchemeFactory implements SchemeFactory {
+ private static class isAuthenticated_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public isAuthenticated_argsTupleScheme getScheme() {
return new isAuthenticated_argsTupleScheme();
}
}
- private static class isAuthenticated_argsTupleScheme extends TupleScheme<isAuthenticated_args> {
+ private static class isAuthenticated_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<isAuthenticated_args> {
@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 +18303,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,32 +18312,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class isAuthenticated_result implements org.apache.thrift.TBase<isAuthenticated_result, isAuthenticated_result._Fields>, java.io.Serializable, Cloneable, Comparable<isAuthenticated_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isAuthenticated_result");
private static final org.apache.thrift.protocol.TField 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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -16864,6 +18346,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,43 +18364,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -16945,6 +18431,7 @@ public class SatelliteServer {
}
}
+ @Override
public isAuthenticated_result deepCopy() {
return new isAuthenticated_result(this);
}
@@ -16955,11 +18442,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 +18467,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 +18492,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case AUTH_ERROR:
if (value == null) {
@@ -17024,7 +18514,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case AUTH_ERROR:
return getAuthError();
@@ -17033,13 +18525,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -17048,13 +18541,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 +18554,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 +18580,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +18601,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 +18611,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 +18624,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +18676,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,14 +18684,16 @@ public class SatelliteServer {
}
}
- private static class isAuthenticated_resultStandardSchemeFactory implements SchemeFactory {
+ private static class isAuthenticated_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public isAuthenticated_resultStandardScheme getScheme() {
return new isAuthenticated_resultStandardScheme();
}
}
- private static class isAuthenticated_resultStandardScheme extends StandardScheme<isAuthenticated_result> {
+ private static class isAuthenticated_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<isAuthenticated_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, isAuthenticated_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -17237,6 +18733,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, isAuthenticated_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -17257,18 +18754,19 @@ public class SatelliteServer {
}
- private static class isAuthenticated_resultTupleSchemeFactory implements SchemeFactory {
+ private static class isAuthenticated_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public isAuthenticated_resultTupleScheme getScheme() {
return new isAuthenticated_resultTupleScheme();
}
}
- private static class isAuthenticated_resultTupleScheme extends TupleScheme<isAuthenticated_result> {
+ private static class isAuthenticated_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<isAuthenticated_result> {
@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 +18784,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,29 +18799,30 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class whoami_args implements org.apache.thrift.TBase<whoami_args, whoami_args._Fields>, java.io.Serializable, Cloneable, Comparable<whoami_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("whoami_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -17331,6 +18830,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,41 +18846,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +18891,7 @@ public class SatelliteServer {
}
public whoami_args(
- String userToken)
+ java.lang.String userToken)
{
this();
this.userToken = userToken;
@@ -17403,6 +18906,7 @@ public class SatelliteServer {
}
}
+ @Override
public whoami_args deepCopy() {
return new whoami_args(this);
}
@@ -17412,11 +18916,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 +18941,47 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +18990,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 +19007,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +19024,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 +19037,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +19082,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,14 +19090,16 @@ public class SatelliteServer {
}
}
- private static class whoami_argsStandardSchemeFactory implements SchemeFactory {
+ private static class whoami_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public whoami_argsStandardScheme getScheme() {
return new whoami_argsStandardScheme();
}
}
- private static class whoami_argsStandardScheme extends StandardScheme<whoami_args> {
+ private static class whoami_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<whoami_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, whoami_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -17615,6 +19129,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, whoami_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -17630,18 +19145,19 @@ public class SatelliteServer {
}
- private static class whoami_argsTupleSchemeFactory implements SchemeFactory {
+ private static class whoami_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public whoami_argsTupleScheme getScheme() {
return new whoami_argsTupleScheme();
}
}
- private static class whoami_argsTupleScheme extends TupleScheme<whoami_args> {
+ private static class whoami_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<whoami_args> {
@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 +19169,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,8 +19178,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class whoami_result implements org.apache.thrift.TBase<whoami_result, whoami_result._Fields>, java.io.Serializable, Cloneable, Comparable<whoami_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("whoami_result");
@@ -17671,15 +19191,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +19204,10 @@ public class SatelliteServer {
AUTH_ERROR((short)1, "authError"),
SERVER_ERROR((short)2, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -17698,6 +19215,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,45 +19235,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -17788,6 +19309,7 @@ public class SatelliteServer {
}
}
+ @Override
public whoami_result deepCopy() {
return new whoami_result(this);
}
@@ -17799,11 +19321,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 +19346,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 +19371,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 +19396,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -17900,7 +19426,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -17912,13 +19440,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -17929,13 +19458,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 +19471,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 +19506,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +19531,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 +19541,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 +19551,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 +19564,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +19627,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,14 +19635,16 @@ public class SatelliteServer {
}
}
- private static class whoami_resultStandardSchemeFactory implements SchemeFactory {
+ private static class whoami_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public whoami_resultStandardScheme getScheme() {
return new whoami_resultStandardScheme();
}
}
- private static class whoami_resultStandardScheme extends StandardScheme<whoami_result> {
+ private static class whoami_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<whoami_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, whoami_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -18162,6 +19693,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, whoami_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -18187,18 +19719,19 @@ public class SatelliteServer {
}
- private static class whoami_resultTupleSchemeFactory implements SchemeFactory {
+ private static class whoami_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public whoami_resultTupleScheme getScheme() {
return new whoami_resultTupleScheme();
}
}
- private static class whoami_resultTupleScheme extends TupleScheme<whoami_result> {
+ private static class whoami_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<whoami_result> {
@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 +19755,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,29 +19775,30 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class invalidateSession_args implements org.apache.thrift.TBase<invalidateSession_args, invalidateSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<invalidateSession_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("invalidateSession_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -18272,6 +19806,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,41 +19822,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +19867,7 @@ public class SatelliteServer {
}
public invalidateSession_args(
- String userToken)
+ java.lang.String userToken)
{
this();
this.userToken = userToken;
@@ -18344,6 +19882,7 @@ public class SatelliteServer {
}
}
+ @Override
public invalidateSession_args deepCopy() {
return new invalidateSession_args(this);
}
@@ -18353,11 +19892,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 +19917,47 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +19966,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 +19983,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +20000,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 +20013,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +20058,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,14 +20066,16 @@ public class SatelliteServer {
}
}
- private static class invalidateSession_argsStandardSchemeFactory implements SchemeFactory {
+ private static class invalidateSession_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public invalidateSession_argsStandardScheme getScheme() {
return new invalidateSession_argsStandardScheme();
}
}
- private static class invalidateSession_argsStandardScheme extends StandardScheme<invalidateSession_args> {
+ private static class invalidateSession_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<invalidateSession_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -18556,6 +20105,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, invalidateSession_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -18571,18 +20121,19 @@ public class SatelliteServer {
}
- private static class invalidateSession_argsTupleSchemeFactory implements SchemeFactory {
+ private static class invalidateSession_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public invalidateSession_argsTupleScheme getScheme() {
return new invalidateSession_argsTupleScheme();
}
}
- private static class invalidateSession_argsTupleScheme extends TupleScheme<invalidateSession_args> {
+ private static class invalidateSession_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<invalidateSession_args> {
@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 +20145,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,29 +20154,30 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class invalidateSession_result implements org.apache.thrift.TBase<invalidateSession_result, invalidateSession_result._Fields>, java.io.Serializable, Cloneable, Comparable<invalidateSession_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("invalidateSession_result");
private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -18633,6 +20185,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,41 +20201,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -18705,6 +20261,7 @@ public class SatelliteServer {
}
}
+ @Override
public invalidateSession_result deepCopy() {
return new invalidateSession_result(this);
}
@@ -18714,11 +20271,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 +20296,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case EX:
if (value == null) {
@@ -18751,32 +20310,33 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ 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 */
+ @Override
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 +20345,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 +20362,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +20379,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 +20392,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +20436,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,14 +20444,16 @@ public class SatelliteServer {
}
}
- private static class invalidateSession_resultStandardSchemeFactory implements SchemeFactory {
+ private static class invalidateSession_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public invalidateSession_resultStandardScheme getScheme() {
return new invalidateSession_resultStandardScheme();
}
}
- private static class invalidateSession_resultStandardScheme extends StandardScheme<invalidateSession_result> {
+ private static class invalidateSession_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<invalidateSession_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -18918,6 +20484,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, invalidateSession_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -18933,18 +20500,19 @@ public class SatelliteServer {
}
- private static class invalidateSession_resultTupleSchemeFactory implements SchemeFactory {
+ private static class invalidateSession_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public invalidateSession_resultTupleScheme getScheme() {
return new invalidateSession_resultTupleScheme();
}
}
- private static class invalidateSession_resultTupleScheme extends TupleScheme<invalidateSession_result> {
+ private static class invalidateSession_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<invalidateSession_result> {
@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 +20524,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,21 +20534,22 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getUserList_args implements org.apache.thrift.TBase<getUserList_args, getUserList_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUserList_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserList_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField PAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("page", org.apache.thrift.protocol.TType.I32, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +20557,10 @@ public class SatelliteServer {
USER_TOKEN((short)1, "userToken"),
PAGE((short)2, "page");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -18999,6 +20568,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,30 +20586,33 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -19047,14 +20620,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 +20635,7 @@ public class SatelliteServer {
}
public getUserList_args(
- String userToken,
+ java.lang.String userToken,
int page)
{
this();
@@ -19082,6 +20655,7 @@ public class SatelliteServer {
this.page = other.page;
}
+ @Override
public getUserList_args deepCopy() {
return new getUserList_args(this);
}
@@ -19093,11 +20667,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 +20703,26 @@ 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) {
+ @Override
+ 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 +20730,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -19170,13 +20748,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -19185,13 +20764,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 +20777,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 +20803,15 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +20822,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 +20832,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 +20845,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +20894,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,14 +20904,16 @@ public class SatelliteServer {
}
}
- private static class getUserList_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getUserList_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUserList_argsStandardScheme getScheme() {
return new getUserList_argsStandardScheme();
}
}
- private static class getUserList_argsStandardScheme extends StandardScheme<getUserList_args> {
+ private static class getUserList_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getUserList_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getUserList_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -19370,6 +20951,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getUserList_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -19388,18 +20970,19 @@ public class SatelliteServer {
}
- private static class getUserList_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getUserList_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUserList_argsTupleScheme getScheme() {
return new getUserList_argsTupleScheme();
}
}
- private static class getUserList_argsTupleScheme extends TupleScheme<getUserList_args> {
+ private static class getUserList_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getUserList_args> {
@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 +21000,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,8 +21013,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getUserList_result implements org.apache.thrift.TBase<getUserList_result, getUserList_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUserList_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserList_result");
@@ -19439,15 +21026,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<UserInfo> success; // required
- public TAuthorizationException failure; // required
- public TInvocationException serverError; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<UserInfo> 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 +21039,10 @@ public class SatelliteServer {
FAILURE((short)1, "failure"),
SERVER_ERROR((short)2, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -19466,6 +21050,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,46 +21070,49 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +21120,7 @@ public class SatelliteServer {
}
public getUserList_result(
- List<UserInfo> success,
+ java.util.List<UserInfo> success,
TAuthorizationException failure,
TInvocationException serverError)
{
@@ -19547,7 +21135,7 @@ public class SatelliteServer {
*/
public getUserList_result(getUserList_result other) {
if (other.isSetSuccess()) {
- List<UserInfo> __this__success = new ArrayList<UserInfo>(other.success.size());
+ java.util.List<UserInfo> __this__success = new java.util.ArrayList<UserInfo>(other.success.size());
for (UserInfo other_element : other.success) {
__this__success.add(new UserInfo(other_element));
}
@@ -19561,6 +21149,7 @@ public class SatelliteServer {
}
}
+ @Override
public getUserList_result deepCopy() {
return new getUserList_result(this);
}
@@ -19576,22 +21165,24 @@ public class SatelliteServer {
return (this.success == null) ? 0 : this.success.size();
}
+ @org.apache.thrift.annotation.Nullable
public java.util.Iterator<UserInfo> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(UserInfo elem) {
if (this.success == null) {
- this.success = new ArrayList<UserInfo>();
+ this.success = new java.util.ArrayList<UserInfo>();
}
this.success.add(elem);
}
- public List<UserInfo> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<UserInfo> getSuccess() {
return this.success;
}
- public getUserList_result setSuccess(List<UserInfo> success) {
+ public getUserList_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<UserInfo> success) {
this.success = success;
return this;
}
@@ -19611,11 +21202,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 +21227,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 +21252,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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<UserInfo>)value);
+ setSuccess((java.util.List<UserInfo>)value);
}
break;
@@ -19688,7 +21282,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -19700,13 +21296,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -19717,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 getUserList_result)
return this.equals((getUserList_result)that);
return false;
@@ -19732,6 +21327,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 +21362,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +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;
}
@@ -19803,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;
}
@@ -19813,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;
}
@@ -19826,21 +21420,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +21480,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,14 +21488,16 @@ public class SatelliteServer {
}
}
- private static class getUserList_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getUserList_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUserList_resultStandardScheme getScheme() {
return new getUserList_resultStandardScheme();
}
}
- private static class getUserList_resultStandardScheme extends StandardScheme<getUserList_result> {
+ private static class getUserList_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getUserList_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getUserList_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -19912,14 +21511,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<UserInfo>(_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<UserInfo>(_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();
}
@@ -19957,6 +21556,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getUserList_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -19965,9 +21565,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 +21589,19 @@ public class SatelliteServer {
}
- private static class getUserList_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getUserList_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUserList_resultTupleScheme getScheme() {
return new getUserList_resultTupleScheme();
}
}
- private static class getUserList_resultTupleScheme extends TupleScheme<getUserList_result> {
+ private static class getUserList_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getUserList_result> {
@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 +21615,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 +21631,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<UserInfo>(_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<UserInfo>(_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,29 +21660,30 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getUserConfig_args implements org.apache.thrift.TBase<getUserConfig_args, getUserConfig_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUserConfig_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserConfig_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -20089,6 +21691,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,41 +21707,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +21752,7 @@ public class SatelliteServer {
}
public getUserConfig_args(
- String userToken)
+ java.lang.String userToken)
{
this();
this.userToken = userToken;
@@ -20161,6 +21767,7 @@ public class SatelliteServer {
}
}
+ @Override
public getUserConfig_args deepCopy() {
return new getUserConfig_args(this);
}
@@ -20170,11 +21777,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 +21802,47 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +21851,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 +21868,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +21885,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 +21898,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +21943,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,14 +21951,16 @@ public class SatelliteServer {
}
}
- private static class getUserConfig_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getUserConfig_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUserConfig_argsStandardScheme getScheme() {
return new getUserConfig_argsStandardScheme();
}
}
- private static class getUserConfig_argsStandardScheme extends StandardScheme<getUserConfig_args> {
+ private static class getUserConfig_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getUserConfig_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getUserConfig_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -20373,6 +21990,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getUserConfig_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -20388,18 +22006,19 @@ public class SatelliteServer {
}
- private static class getUserConfig_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getUserConfig_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUserConfig_argsTupleScheme getScheme() {
return new getUserConfig_argsTupleScheme();
}
}
- private static class getUserConfig_argsTupleScheme extends TupleScheme<getUserConfig_args> {
+ private static class getUserConfig_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getUserConfig_args> {
@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 +22030,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,8 +22039,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getUserConfig_result implements org.apache.thrift.TBase<getUserConfig_result, getUserConfig_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUserConfig_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserConfig_result");
@@ -20429,15 +22052,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +22065,10 @@ public class SatelliteServer {
FAILURE((short)1, "failure"),
SERVER_ERROR((short)2, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -20456,6 +22076,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,45 +22096,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -20546,6 +22170,7 @@ public class SatelliteServer {
}
}
+ @Override
public getUserConfig_result deepCopy() {
return new getUserConfig_result(this);
}
@@ -20557,11 +22182,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 +22207,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 +22232,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 +22257,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -20658,7 +22287,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -20670,13 +22301,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -20687,13 +22319,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 +22332,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 +22367,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +22392,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 +22402,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 +22412,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 +22425,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +22488,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,14 +22496,16 @@ public class SatelliteServer {
}
}
- private static class getUserConfig_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getUserConfig_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUserConfig_resultStandardScheme getScheme() {
return new getUserConfig_resultStandardScheme();
}
}
- private static class getUserConfig_resultStandardScheme extends StandardScheme<getUserConfig_result> {
+ private static class getUserConfig_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getUserConfig_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getUserConfig_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -20920,6 +22554,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getUserConfig_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -20945,18 +22580,19 @@ public class SatelliteServer {
}
- private static class getUserConfig_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getUserConfig_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getUserConfig_resultTupleScheme getScheme() {
return new getUserConfig_resultTupleScheme();
}
}
- private static class getUserConfig_resultTupleScheme extends TupleScheme<getUserConfig_result> {
+ private static class getUserConfig_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getUserConfig_result> {
@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 +22616,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,32 +22636,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class setUserConfig_args implements org.apache.thrift.TBase<setUserConfig_args, setUserConfig_args._Fields>, java.io.Serializable, Cloneable, Comparable<setUserConfig_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserConfig_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField CONFIG_FIELD_DESC = new org.apache.thrift.protocol.TField("config", org.apache.thrift.protocol.TType.STRUCT, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -21033,6 +22670,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,43 +22688,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +22735,7 @@ public class SatelliteServer {
}
public setUserConfig_args(
- String userToken,
+ java.lang.String userToken,
SatelliteUserConfig config)
{
this();
@@ -21114,6 +22755,7 @@ public class SatelliteServer {
}
}
+ @Override
public setUserConfig_args deepCopy() {
return new setUserConfig_args(this);
}
@@ -21124,11 +22766,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 +22791,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 +22816,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +22838,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -21202,13 +22849,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -21217,13 +22865,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 +22878,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 +22904,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +22925,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 +22935,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 +22948,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +23004,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,14 +23012,16 @@ public class SatelliteServer {
}
}
- private static class setUserConfig_argsStandardSchemeFactory implements SchemeFactory {
+ private static class setUserConfig_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setUserConfig_argsStandardScheme getScheme() {
return new setUserConfig_argsStandardScheme();
}
}
- private static class setUserConfig_argsStandardScheme extends StandardScheme<setUserConfig_args> {
+ private static class setUserConfig_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<setUserConfig_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, setUserConfig_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -21408,6 +23060,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, setUserConfig_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -21428,18 +23081,19 @@ public class SatelliteServer {
}
- private static class setUserConfig_argsTupleSchemeFactory implements SchemeFactory {
+ private static class setUserConfig_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setUserConfig_argsTupleScheme getScheme() {
return new setUserConfig_argsTupleScheme();
}
}
- private static class setUserConfig_argsTupleScheme extends TupleScheme<setUserConfig_args> {
+ private static class setUserConfig_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<setUserConfig_args> {
@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 +23111,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,32 +23125,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class setUserConfig_result implements org.apache.thrift.TBase<setUserConfig_result, setUserConfig_result._Fields>, java.io.Serializable, Cloneable, Comparable<setUserConfig_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserConfig_result");
private static final org.apache.thrift.protocol.TField 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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -21504,6 +23159,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,43 +23177,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -21585,6 +23244,7 @@ public class SatelliteServer {
}
}
+ @Override
public setUserConfig_result deepCopy() {
return new setUserConfig_result(this);
}
@@ -21595,11 +23255,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 +23280,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 +23305,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case FAILURE:
if (value == null) {
@@ -21664,7 +23327,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case FAILURE:
return getFailure();
@@ -21673,13 +23338,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -21688,13 +23354,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 +23367,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 +23393,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +23414,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 +23424,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 +23437,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +23489,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,14 +23497,16 @@ public class SatelliteServer {
}
}
- private static class setUserConfig_resultStandardSchemeFactory implements SchemeFactory {
+ private static class setUserConfig_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setUserConfig_resultStandardScheme getScheme() {
return new setUserConfig_resultStandardScheme();
}
}
- private static class setUserConfig_resultStandardScheme extends StandardScheme<setUserConfig_result> {
+ private static class setUserConfig_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<setUserConfig_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, setUserConfig_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -21877,6 +23546,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, setUserConfig_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -21897,18 +23567,19 @@ public class SatelliteServer {
}
- private static class setUserConfig_resultTupleSchemeFactory implements SchemeFactory {
+ private static class setUserConfig_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setUserConfig_resultTupleScheme getScheme() {
return new setUserConfig_resultTupleScheme();
}
}
- private static class setUserConfig_resultTupleScheme extends TupleScheme<setUserConfig_result> {
+ private static class setUserConfig_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<setUserConfig_result> {
@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 +23597,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 +23612,28 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getOperatingSystems_args implements org.apache.thrift.TBase<getOperatingSystems_args, getOperatingSystems_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOperatingSystems_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOperatingSystems_args");
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -21969,6 +23641,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,37 +23655,40 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -22025,6 +23701,7 @@ public class SatelliteServer {
public getOperatingSystems_args(getOperatingSystems_args other) {
}
+ @Override
public getOperatingSystems_args deepCopy() {
return new getOperatingSystems_args(this);
}
@@ -22033,32 +23710,34 @@ public class SatelliteServer {
public void clear() {
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +23746,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<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -22089,21 +23770,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +23808,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,14 +23816,16 @@ public class SatelliteServer {
}
}
- private static class getOperatingSystems_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getOperatingSystems_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getOperatingSystems_argsStandardScheme getScheme() {
return new getOperatingSystems_argsStandardScheme();
}
}
- private static class getOperatingSystems_argsStandardScheme extends StandardScheme<getOperatingSystems_args> {
+ private static class getOperatingSystems_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getOperatingSystems_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -22160,6 +23847,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getOperatingSystems_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -22170,48 +23858,50 @@ public class SatelliteServer {
}
- private static class getOperatingSystems_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getOperatingSystems_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getOperatingSystems_argsTupleScheme getScheme() {
return new getOperatingSystems_argsTupleScheme();
}
}
- private static class getOperatingSystems_argsTupleScheme extends TupleScheme<getOperatingSystems_args> {
+ private static class getOperatingSystems_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getOperatingSystems_args> {
@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 extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getOperatingSystems_result implements org.apache.thrift.TBase<getOperatingSystems_result, getOperatingSystems_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOperatingSystems_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOperatingSystems_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<OperatingSystem> success; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<OperatingSystem> 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -22219,6 +23909,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,42 +23925,45 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +23971,7 @@ public class SatelliteServer {
}
public getOperatingSystems_result(
- List<OperatingSystem> success)
+ java.util.List<OperatingSystem> success)
{
this();
this.success = success;
@@ -22288,7 +23982,7 @@ public class SatelliteServer {
*/
public getOperatingSystems_result(getOperatingSystems_result other) {
if (other.isSetSuccess()) {
- List<OperatingSystem> __this__success = new ArrayList<OperatingSystem>(other.success.size());
+ java.util.List<OperatingSystem> __this__success = new java.util.ArrayList<OperatingSystem>(other.success.size());
for (OperatingSystem other_element : other.success) {
__this__success.add(new OperatingSystem(other_element));
}
@@ -22296,6 +23990,7 @@ public class SatelliteServer {
}
}
+ @Override
public getOperatingSystems_result deepCopy() {
return new getOperatingSystems_result(this);
}
@@ -22309,22 +24004,24 @@ public class SatelliteServer {
return (this.success == null) ? 0 : this.success.size();
}
+ @org.apache.thrift.annotation.Nullable
public java.util.Iterator<OperatingSystem> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(OperatingSystem elem) {
if (this.success == null) {
- this.success = new ArrayList<OperatingSystem>();
+ this.success = new java.util.ArrayList<OperatingSystem>();
}
this.success.add(elem);
}
- public List<OperatingSystem> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<OperatingSystem> getSuccess() {
return this.success;
}
- public getOperatingSystems_result setSuccess(List<OperatingSystem> success) {
+ public getOperatingSystems_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<OperatingSystem> success) {
this.success = success;
return this;
}
@@ -22344,45 +24041,47 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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<OperatingSystem>)value);
+ setSuccess((java.util.List<OperatingSystem>)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ 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 */
+ @Override
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 +24090,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 +24107,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +24124,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 +24137,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +24181,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,14 +24189,16 @@ public class SatelliteServer {
}
}
- private static class getOperatingSystems_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getOperatingSystems_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getOperatingSystems_resultStandardScheme getScheme() {
return new getOperatingSystems_resultStandardScheme();
}
}
- private static class getOperatingSystems_resultStandardScheme extends StandardScheme<getOperatingSystems_result> {
+ private static class getOperatingSystems_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getOperatingSystems_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -22507,14 +24212,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<OperatingSystem>(_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<OperatingSystem>(_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();
}
@@ -22534,6 +24239,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getOperatingSystems_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -22542,9 +24248,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 +24262,19 @@ public class SatelliteServer {
}
- private static class getOperatingSystems_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getOperatingSystems_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getOperatingSystems_resultTupleScheme getScheme() {
return new getOperatingSystems_resultTupleScheme();
}
}
- private static class getOperatingSystems_resultTupleScheme extends TupleScheme<getOperatingSystems_result> {
+ private static class getOperatingSystems_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getOperatingSystems_result> {
@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 +24282,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 +24292,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<OperatingSystem>(_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<OperatingSystem>(_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 +24311,28 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getVirtualizers_args implements org.apache.thrift.TBase<getVirtualizers_args, getVirtualizers_args._Fields>, java.io.Serializable, Cloneable, Comparable<getVirtualizers_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVirtualizers_args");
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -22632,6 +24340,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,37 +24354,40 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -22688,6 +24400,7 @@ public class SatelliteServer {
public getVirtualizers_args(getVirtualizers_args other) {
}
+ @Override
public getVirtualizers_args deepCopy() {
return new getVirtualizers_args(this);
}
@@ -22696,32 +24409,34 @@ public class SatelliteServer {
public void clear() {
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +24445,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<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -22752,21 +24469,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +24507,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,14 +24515,16 @@ public class SatelliteServer {
}
}
- private static class getVirtualizers_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getVirtualizers_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getVirtualizers_argsStandardScheme getScheme() {
return new getVirtualizers_argsStandardScheme();
}
}
- private static class getVirtualizers_argsStandardScheme extends StandardScheme<getVirtualizers_args> {
+ private static class getVirtualizers_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getVirtualizers_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -22823,6 +24546,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getVirtualizers_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -22833,48 +24557,50 @@ public class SatelliteServer {
}
- private static class getVirtualizers_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getVirtualizers_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getVirtualizers_argsTupleScheme getScheme() {
return new getVirtualizers_argsTupleScheme();
}
}
- private static class getVirtualizers_argsTupleScheme extends TupleScheme<getVirtualizers_args> {
+ private static class getVirtualizers_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getVirtualizers_args> {
@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 extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getVirtualizers_result implements org.apache.thrift.TBase<getVirtualizers_result, getVirtualizers_result._Fields>, java.io.Serializable, Cloneable, Comparable<getVirtualizers_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVirtualizers_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<Virtualizer> success; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<Virtualizer> 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -22882,6 +24608,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,42 +24624,45 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +24670,7 @@ public class SatelliteServer {
}
public getVirtualizers_result(
- List<Virtualizer> success)
+ java.util.List<Virtualizer> success)
{
this();
this.success = success;
@@ -22951,7 +24681,7 @@ public class SatelliteServer {
*/
public getVirtualizers_result(getVirtualizers_result other) {
if (other.isSetSuccess()) {
- List<Virtualizer> __this__success = new ArrayList<Virtualizer>(other.success.size());
+ java.util.List<Virtualizer> __this__success = new java.util.ArrayList<Virtualizer>(other.success.size());
for (Virtualizer other_element : other.success) {
__this__success.add(new Virtualizer(other_element));
}
@@ -22959,6 +24689,7 @@ public class SatelliteServer {
}
}
+ @Override
public getVirtualizers_result deepCopy() {
return new getVirtualizers_result(this);
}
@@ -22972,22 +24703,24 @@ public class SatelliteServer {
return (this.success == null) ? 0 : this.success.size();
}
+ @org.apache.thrift.annotation.Nullable
public java.util.Iterator<Virtualizer> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(Virtualizer elem) {
if (this.success == null) {
- this.success = new ArrayList<Virtualizer>();
+ this.success = new java.util.ArrayList<Virtualizer>();
}
this.success.add(elem);
}
- public List<Virtualizer> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<Virtualizer> getSuccess() {
return this.success;
}
- public getVirtualizers_result setSuccess(List<Virtualizer> success) {
+ public getVirtualizers_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<Virtualizer> success) {
this.success = success;
return this;
}
@@ -23007,45 +24740,47 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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<Virtualizer>)value);
+ setSuccess((java.util.List<Virtualizer>)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ 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 */
+ @Override
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 +24789,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 +24806,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +24823,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 +24836,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +24880,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,14 +24888,16 @@ public class SatelliteServer {
}
}
- private static class getVirtualizers_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getVirtualizers_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getVirtualizers_resultStandardScheme getScheme() {
return new getVirtualizers_resultStandardScheme();
}
}
- private static class getVirtualizers_resultStandardScheme extends StandardScheme<getVirtualizers_result> {
+ private static class getVirtualizers_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getVirtualizers_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -23170,14 +24911,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<Virtualizer>(_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<Virtualizer>(_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();
}
@@ -23197,6 +24938,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getVirtualizers_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -23205,9 +24947,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 +24961,19 @@ public class SatelliteServer {
}
- private static class getVirtualizers_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getVirtualizers_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getVirtualizers_resultTupleScheme getScheme() {
return new getVirtualizers_resultTupleScheme();
}
}
- private static class getVirtualizers_resultTupleScheme extends TupleScheme<getVirtualizers_result> {
+ private static class getVirtualizers_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getVirtualizers_result> {
@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 +24981,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 +24991,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<Virtualizer>(_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<Virtualizer>(_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 +25010,28 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getAllOrganizations_args implements org.apache.thrift.TBase<getAllOrganizations_args, getAllOrganizations_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllOrganizations_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrganizations_args");
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -23295,6 +25039,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,37 +25053,40 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -23351,6 +25099,7 @@ public class SatelliteServer {
public getAllOrganizations_args(getAllOrganizations_args other) {
}
+ @Override
public getAllOrganizations_args deepCopy() {
return new getAllOrganizations_args(this);
}
@@ -23359,32 +25108,34 @@ public class SatelliteServer {
public void clear() {
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +25144,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<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -23415,21 +25168,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +25206,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,14 +25214,16 @@ public class SatelliteServer {
}
}
- private static class getAllOrganizations_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getAllOrganizations_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getAllOrganizations_argsStandardScheme getScheme() {
return new getAllOrganizations_argsStandardScheme();
}
}
- private static class getAllOrganizations_argsStandardScheme extends StandardScheme<getAllOrganizations_args> {
+ private static class getAllOrganizations_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getAllOrganizations_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOrganizations_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -23486,6 +25245,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOrganizations_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -23496,48 +25256,50 @@ public class SatelliteServer {
}
- private static class getAllOrganizations_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getAllOrganizations_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getAllOrganizations_argsTupleScheme getScheme() {
return new getAllOrganizations_argsTupleScheme();
}
}
- private static class getAllOrganizations_argsTupleScheme extends TupleScheme<getAllOrganizations_args> {
+ private static class getAllOrganizations_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getAllOrganizations_args> {
@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 extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getAllOrganizations_result implements org.apache.thrift.TBase<getAllOrganizations_result, getAllOrganizations_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllOrganizations_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrganizations_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<Organization> success; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<Organization> 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -23545,6 +25307,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,42 +25323,45 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +25369,7 @@ public class SatelliteServer {
}
public getAllOrganizations_result(
- List<Organization> success)
+ java.util.List<Organization> success)
{
this();
this.success = success;
@@ -23614,7 +25380,7 @@ public class SatelliteServer {
*/
public getAllOrganizations_result(getAllOrganizations_result other) {
if (other.isSetSuccess()) {
- List<Organization> __this__success = new ArrayList<Organization>(other.success.size());
+ java.util.List<Organization> __this__success = new java.util.ArrayList<Organization>(other.success.size());
for (Organization other_element : other.success) {
__this__success.add(new Organization(other_element));
}
@@ -23622,6 +25388,7 @@ public class SatelliteServer {
}
}
+ @Override
public getAllOrganizations_result deepCopy() {
return new getAllOrganizations_result(this);
}
@@ -23635,22 +25402,24 @@ public class SatelliteServer {
return (this.success == null) ? 0 : this.success.size();
}
+ @org.apache.thrift.annotation.Nullable
public java.util.Iterator<Organization> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(Organization elem) {
if (this.success == null) {
- this.success = new ArrayList<Organization>();
+ this.success = new java.util.ArrayList<Organization>();
}
this.success.add(elem);
}
- public List<Organization> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<Organization> getSuccess() {
return this.success;
}
- public getAllOrganizations_result setSuccess(List<Organization> success) {
+ public getAllOrganizations_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<Organization> success) {
this.success = success;
return this;
}
@@ -23670,45 +25439,47 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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<Organization>)value);
+ setSuccess((java.util.List<Organization>)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ 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 */
+ @Override
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 +25488,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 +25505,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +25522,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 +25535,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +25579,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,14 +25587,16 @@ public class SatelliteServer {
}
}
- private static class getAllOrganizations_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getAllOrganizations_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getAllOrganizations_resultStandardScheme getScheme() {
return new getAllOrganizations_resultStandardScheme();
}
}
- private static class getAllOrganizations_resultStandardScheme extends StandardScheme<getAllOrganizations_result> {
+ private static class getAllOrganizations_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getAllOrganizations_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOrganizations_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -23833,14 +25610,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<Organization>(_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<Organization>(_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();
}
@@ -23860,6 +25637,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOrganizations_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -23868,9 +25646,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 +25660,19 @@ public class SatelliteServer {
}
- private static class getAllOrganizations_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getAllOrganizations_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getAllOrganizations_resultTupleScheme getScheme() {
return new getAllOrganizations_resultTupleScheme();
}
}
- private static class getAllOrganizations_resultTupleScheme extends TupleScheme<getAllOrganizations_result> {
+ private static class getAllOrganizations_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getAllOrganizations_result> {
@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 +25680,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 +25690,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<Organization>(_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<Organization>(_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 +25709,28 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getLocations_args implements org.apache.thrift.TBase<getLocations_args, getLocations_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLocations_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocations_args");
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -23958,6 +25738,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,37 +25752,40 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -24014,6 +25798,7 @@ public class SatelliteServer {
public getLocations_args(getLocations_args other) {
}
+ @Override
public getLocations_args deepCopy() {
return new getLocations_args(this);
}
@@ -24022,32 +25807,34 @@ public class SatelliteServer {
public void clear() {
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +25843,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<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -24078,21 +25867,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +25905,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,14 +25913,16 @@ public class SatelliteServer {
}
}
- private static class getLocations_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getLocations_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLocations_argsStandardScheme getScheme() {
return new getLocations_argsStandardScheme();
}
}
- private static class getLocations_argsStandardScheme extends StandardScheme<getLocations_args> {
+ private static class getLocations_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getLocations_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getLocations_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -24149,6 +25944,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getLocations_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -24159,48 +25955,50 @@ public class SatelliteServer {
}
- private static class getLocations_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getLocations_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLocations_argsTupleScheme getScheme() {
return new getLocations_argsTupleScheme();
}
}
- private static class getLocations_argsTupleScheme extends TupleScheme<getLocations_args> {
+ private static class getLocations_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getLocations_args> {
@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 extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getLocations_result implements org.apache.thrift.TBase<getLocations_result, getLocations_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLocations_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocations_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<Location> success; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<Location> 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -24208,6 +26006,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,42 +26022,45 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +26068,7 @@ public class SatelliteServer {
}
public getLocations_result(
- List<Location> success)
+ java.util.List<Location> success)
{
this();
this.success = success;
@@ -24277,7 +26079,7 @@ public class SatelliteServer {
*/
public getLocations_result(getLocations_result other) {
if (other.isSetSuccess()) {
- List<Location> __this__success = new ArrayList<Location>(other.success.size());
+ java.util.List<Location> __this__success = new java.util.ArrayList<Location>(other.success.size());
for (Location other_element : other.success) {
__this__success.add(new Location(other_element));
}
@@ -24285,6 +26087,7 @@ public class SatelliteServer {
}
}
+ @Override
public getLocations_result deepCopy() {
return new getLocations_result(this);
}
@@ -24298,22 +26101,24 @@ public class SatelliteServer {
return (this.success == null) ? 0 : this.success.size();
}
+ @org.apache.thrift.annotation.Nullable
public java.util.Iterator<Location> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(Location elem) {
if (this.success == null) {
- this.success = new ArrayList<Location>();
+ this.success = new java.util.ArrayList<Location>();
}
this.success.add(elem);
}
- public List<Location> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<Location> getSuccess() {
return this.success;
}
- public getLocations_result setSuccess(List<Location> success) {
+ public getLocations_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<Location> success) {
this.success = success;
return this;
}
@@ -24333,45 +26138,47 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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<Location>)value);
+ setSuccess((java.util.List<Location>)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ 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 */
+ @Override
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 +26187,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 +26204,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +26221,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 +26234,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +26278,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,14 +26286,16 @@ public class SatelliteServer {
}
}
- private static class getLocations_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getLocations_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLocations_resultStandardScheme getScheme() {
return new getLocations_resultStandardScheme();
}
}
- private static class getLocations_resultStandardScheme extends StandardScheme<getLocations_result> {
+ private static class getLocations_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getLocations_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getLocations_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -24496,14 +26309,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<Location>(_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<Location>(_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();
}
@@ -24523,6 +26336,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getLocations_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -24531,9 +26345,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 +26359,19 @@ public class SatelliteServer {
}
- private static class getLocations_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getLocations_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLocations_resultTupleScheme getScheme() {
return new getLocations_resultTupleScheme();
}
}
- private static class getLocations_resultTupleScheme extends TupleScheme<getLocations_result> {
+ private static class getLocations_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getLocations_result> {
@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 +26379,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 +26389,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<Location>(_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<Location>(_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 +26408,28 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getStatus_args implements org.apache.thrift.TBase<getStatus_args, getStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<getStatus_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStatus_args");
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -24621,6 +26437,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,37 +26451,40 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -24677,6 +26497,7 @@ public class SatelliteServer {
public getStatus_args(getStatus_args other) {
}
+ @Override
public getStatus_args deepCopy() {
return new getStatus_args(this);
}
@@ -24685,32 +26506,34 @@ public class SatelliteServer {
public void clear() {
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +26542,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<Object> list = new ArrayList<Object>();
+ int hashCode = 1;
- return list.hashCode();
+ return hashCode;
}
@Override
@@ -24741,21 +26566,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +26604,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,14 +26612,16 @@ public class SatelliteServer {
}
}
- private static class getStatus_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getStatus_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getStatus_argsStandardScheme getScheme() {
return new getStatus_argsStandardScheme();
}
}
- private static class getStatus_argsStandardScheme extends StandardScheme<getStatus_args> {
+ private static class getStatus_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getStatus_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getStatus_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -24812,6 +26643,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getStatus_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -24822,48 +26654,50 @@ public class SatelliteServer {
}
- private static class getStatus_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getStatus_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getStatus_argsTupleScheme getScheme() {
return new getStatus_argsTupleScheme();
}
}
- private static class getStatus_argsTupleScheme extends TupleScheme<getStatus_args> {
+ private static class getStatus_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getStatus_args> {
@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 extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getStatus_result implements org.apache.thrift.TBase<getStatus_result, getStatus_result._Fields>, java.io.Serializable, Cloneable, Comparable<getStatus_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStatus_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -24871,6 +26705,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,41 +26721,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -24943,6 +26781,7 @@ public class SatelliteServer {
}
}
+ @Override
public getStatus_result deepCopy() {
return new getStatus_result(this);
}
@@ -24952,11 +26791,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 +26816,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -24989,32 +26830,33 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ 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 */
+ @Override
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 +26865,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 +26882,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +26899,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 +26912,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +26959,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,14 +26967,16 @@ public class SatelliteServer {
}
}
- private static class getStatus_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getStatus_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getStatus_resultStandardScheme getScheme() {
return new getStatus_resultStandardScheme();
}
}
- private static class getStatus_resultStandardScheme extends StandardScheme<getStatus_result> {
+ private static class getStatus_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getStatus_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getStatus_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -25159,6 +27007,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getStatus_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -25174,18 +27023,19 @@ public class SatelliteServer {
}
- private static class getStatus_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getStatus_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getStatus_resultTupleScheme getScheme() {
return new getStatus_resultTupleScheme();
}
}
- private static class getStatus_resultTupleScheme extends TupleScheme<getStatus_result> {
+ private static class getStatus_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getStatus_result> {
@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 +27047,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,8 +27057,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getImageList_args implements org.apache.thrift.TBase<getImageList_args, getImageList_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImageList_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageList_args");
@@ -25216,14 +27070,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String> tagSearch; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String userToken; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> tagSearch; // required
public int page; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
@@ -25232,10 +27083,10 @@ public class SatelliteServer {
TAG_SEARCH((short)2, "tagSearch"),
PAGE((short)3, "page");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -25243,6 +27094,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,30 +27114,33 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -25293,9 +27148,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 +27158,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 +27166,8 @@ public class SatelliteServer {
}
public getImageList_args(
- String userToken,
- List<String> tagSearch,
+ java.lang.String userToken,
+ java.util.List<java.lang.String> tagSearch,
int page)
{
this();
@@ -25331,12 +27186,13 @@ public class SatelliteServer {
this.userToken = other.userToken;
}
if (other.isSetTagSearch()) {
- List<String> __this__tagSearch = new ArrayList<String>(other.tagSearch);
+ java.util.List<java.lang.String> __this__tagSearch = new java.util.ArrayList<java.lang.String>(other.tagSearch);
this.tagSearch = __this__tagSearch;
}
this.page = other.page;
}
+ @Override
public getImageList_args deepCopy() {
return new getImageList_args(this);
}
@@ -25349,11 +27205,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 +27234,24 @@ public class SatelliteServer {
return (this.tagSearch == null) ? 0 : this.tagSearch.size();
}
- public java.util.Iterator<String> getTagSearchIterator() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.Iterator<java.lang.String> 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<String>();
+ this.tagSearch = new java.util.ArrayList<java.lang.String>();
}
this.tagSearch.add(elem);
}
- public List<String> getTagSearch() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<java.lang.String> getTagSearch() {
return this.tagSearch;
}
- public getImageList_args setTagSearch(List<String> tagSearch) {
+ public getImageList_args setTagSearch(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> tagSearch) {
this.tagSearch = tagSearch;
return this;
}
@@ -25423,25 +27282,26 @@ 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) {
+ @Override
+ 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 +27309,7 @@ public class SatelliteServer {
if (value == null) {
unsetTagSearch();
} else {
- setTagSearch((List<String>)value);
+ setTagSearch((java.util.List<java.lang.String>)value);
}
break;
@@ -25457,14 +27317,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -25476,13 +27338,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -25493,13 +27356,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 +27369,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 +27404,19 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +27427,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 +27437,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 +27447,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 +27460,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +27517,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,14 +27527,16 @@ public class SatelliteServer {
}
}
- private static class getImageList_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getImageList_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageList_argsStandardScheme getScheme() {
return new getImageList_argsStandardScheme();
}
}
- private static class getImageList_argsStandardScheme extends StandardScheme<getImageList_args> {
+ private static class getImageList_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getImageList_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -25694,13 +27558,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<String>(_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<java.lang.String>(_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();
}
@@ -25728,6 +27592,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -25741,9 +27606,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 +27623,19 @@ public class SatelliteServer {
}
- private static class getImageList_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getImageList_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageList_argsTupleScheme getScheme() {
return new getImageList_argsTupleScheme();
}
}
- private static class getImageList_argsTupleScheme extends TupleScheme<getImageList_args> {
+ private static class getImageList_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getImageList_args> {
@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 +27652,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 +27665,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<String>(_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<java.lang.String>(_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,8 +27691,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getImageList_result implements org.apache.thrift.TBase<getImageList_result, getImageList_result._Fields>, java.io.Serializable, Cloneable, Comparable<getImageList_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageList_result");
@@ -25834,15 +27704,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<ImageSummaryRead> success; // required
- public TAuthorizationException authError; // required
- public TInvocationException serverError; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<ImageSummaryRead> 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 +27717,10 @@ public class SatelliteServer {
AUTH_ERROR((short)1, "authError"),
SERVER_ERROR((short)2, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -25861,6 +27728,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,46 +27748,49 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +27798,7 @@ public class SatelliteServer {
}
public getImageList_result(
- List<ImageSummaryRead> success,
+ java.util.List<ImageSummaryRead> success,
TAuthorizationException authError,
TInvocationException serverError)
{
@@ -25942,7 +27813,7 @@ public class SatelliteServer {
*/
public getImageList_result(getImageList_result other) {
if (other.isSetSuccess()) {
- List<ImageSummaryRead> __this__success = new ArrayList<ImageSummaryRead>(other.success.size());
+ java.util.List<ImageSummaryRead> __this__success = new java.util.ArrayList<ImageSummaryRead>(other.success.size());
for (ImageSummaryRead other_element : other.success) {
__this__success.add(new ImageSummaryRead(other_element));
}
@@ -25956,6 +27827,7 @@ public class SatelliteServer {
}
}
+ @Override
public getImageList_result deepCopy() {
return new getImageList_result(this);
}
@@ -25971,22 +27843,24 @@ public class SatelliteServer {
return (this.success == null) ? 0 : this.success.size();
}
+ @org.apache.thrift.annotation.Nullable
public java.util.Iterator<ImageSummaryRead> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(ImageSummaryRead elem) {
if (this.success == null) {
- this.success = new ArrayList<ImageSummaryRead>();
+ this.success = new java.util.ArrayList<ImageSummaryRead>();
}
this.success.add(elem);
}
- public List<ImageSummaryRead> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<ImageSummaryRead> getSuccess() {
return this.success;
}
- public getImageList_result setSuccess(List<ImageSummaryRead> success) {
+ public getImageList_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<ImageSummaryRead> success) {
this.success = success;
return this;
}
@@ -26006,11 +27880,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 +27905,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 +27930,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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<ImageSummaryRead>)value);
+ setSuccess((java.util.List<ImageSummaryRead>)value);
}
break;
@@ -26083,7 +27960,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -26095,13 +27974,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -26112,13 +27992,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 +28005,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 +28040,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +28065,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 +28075,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 +28085,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 +28098,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +28158,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,14 +28166,16 @@ public class SatelliteServer {
}
}
- private static class getImageList_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getImageList_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageList_resultStandardScheme getScheme() {
return new getImageList_resultStandardScheme();
}
}
- private static class getImageList_resultStandardScheme extends StandardScheme<getImageList_result> {
+ private static class getImageList_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getImageList_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -26307,14 +28189,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<ImageSummaryRead>(_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<ImageSummaryRead>(_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();
}
@@ -26352,6 +28234,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -26360,9 +28243,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 +28267,19 @@ public class SatelliteServer {
}
- private static class getImageList_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getImageList_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageList_resultTupleScheme getScheme() {
return new getImageList_resultTupleScheme();
}
}
- private static class getImageList_resultTupleScheme extends TupleScheme<getImageList_result> {
+ private static class getImageList_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getImageList_result> {
@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 +28293,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 +28309,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<ImageSummaryRead>(_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<ImageSummaryRead>(_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,32 +28338,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getImageDetails_args implements org.apache.thrift.TBase<getImageDetails_args, getImageDetails_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImageDetails_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageDetails_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -26487,6 +28372,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,43 +28390,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +28437,8 @@ public class SatelliteServer {
}
public getImageDetails_args(
- String userToken,
- String imageBaseId)
+ java.lang.String userToken,
+ java.lang.String imageBaseId)
{
this();
this.userToken = userToken;
@@ -26568,6 +28457,7 @@ public class SatelliteServer {
}
}
+ @Override
public getImageDetails_args deepCopy() {
return new getImageDetails_args(this);
}
@@ -26578,11 +28468,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 +28493,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 +28518,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +28533,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -26656,13 +28551,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -26671,13 +28567,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 +28580,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 +28606,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +28627,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 +28637,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 +28650,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +28703,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,14 +28711,16 @@ public class SatelliteServer {
}
}
- private static class getImageDetails_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getImageDetails_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageDetails_argsStandardScheme getScheme() {
return new getImageDetails_argsStandardScheme();
}
}
- private static class getImageDetails_argsStandardScheme extends StandardScheme<getImageDetails_args> {
+ private static class getImageDetails_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getImageDetails_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -26858,6 +28758,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getImageDetails_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -26878,18 +28779,19 @@ public class SatelliteServer {
}
- private static class getImageDetails_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getImageDetails_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageDetails_argsTupleScheme getScheme() {
return new getImageDetails_argsTupleScheme();
}
}
- private static class getImageDetails_argsTupleScheme extends TupleScheme<getImageDetails_args> {
+ private static class getImageDetails_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getImageDetails_args> {
@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 +28809,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,8 +28822,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getImageDetails_result implements org.apache.thrift.TBase<getImageDetails_result, getImageDetails_result._Fields>, java.io.Serializable, Cloneable, Comparable<getImageDetails_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageDetails_result");
@@ -26930,16 +28836,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +28851,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -26959,6 +28862,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,47 +28884,50 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -27058,6 +28965,7 @@ public class SatelliteServer {
}
}
+ @Override
public getImageDetails_result deepCopy() {
return new getImageDetails_result(this);
}
@@ -27070,11 +28978,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 +29003,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 +29028,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 +29053,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 +29078,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -27203,7 +29116,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -27218,13 +29133,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -27237,13 +29153,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 +29166,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 +29210,25 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +29239,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 +29249,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 +29259,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 +29269,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 +29282,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +29353,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,14 +29361,16 @@ public class SatelliteServer {
}
}
- private static class getImageDetails_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getImageDetails_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageDetails_resultStandardScheme getScheme() {
return new getImageDetails_resultStandardScheme();
}
}
- private static class getImageDetails_resultStandardScheme extends StandardScheme<getImageDetails_result> {
+ private static class getImageDetails_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getImageDetails_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -27511,6 +29428,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getImageDetails_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -27541,18 +29459,19 @@ public class SatelliteServer {
}
- private static class getImageDetails_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getImageDetails_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageDetails_resultTupleScheme getScheme() {
return new getImageDetails_resultTupleScheme();
}
}
- private static class getImageDetails_resultTupleScheme extends TupleScheme<getImageDetails_result> {
+ private static class getImageDetails_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getImageDetails_result> {
@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 +29501,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,32 +29526,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class createImage_args implements org.apache.thrift.TBase<createImage_args, createImage_args._Fields>, java.io.Serializable, Cloneable, Comparable<createImage_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createImage_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField IMAGE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imageName", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -27640,6 +29560,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,43 +29578,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +29625,8 @@ public class SatelliteServer {
}
public createImage_args(
- String userToken,
- String imageName)
+ java.lang.String userToken,
+ java.lang.String imageName)
{
this();
this.userToken = userToken;
@@ -27721,6 +29645,7 @@ public class SatelliteServer {
}
}
+ @Override
public createImage_args deepCopy() {
return new createImage_args(this);
}
@@ -27731,11 +29656,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 +29681,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 +29706,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +29721,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -27809,13 +29739,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -27824,13 +29755,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 +29768,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 +29794,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +29815,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 +29825,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 +29838,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +29891,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,14 +29899,16 @@ public class SatelliteServer {
}
}
- private static class createImage_argsStandardSchemeFactory implements SchemeFactory {
+ private static class createImage_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public createImage_argsStandardScheme getScheme() {
return new createImage_argsStandardScheme();
}
}
- private static class createImage_argsStandardScheme extends StandardScheme<createImage_args> {
+ private static class createImage_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<createImage_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, createImage_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -28011,6 +29946,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, createImage_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -28031,18 +29967,19 @@ public class SatelliteServer {
}
- private static class createImage_argsTupleSchemeFactory implements SchemeFactory {
+ private static class createImage_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public createImage_argsTupleScheme getScheme() {
return new createImage_argsTupleScheme();
}
}
- private static class createImage_argsTupleScheme extends TupleScheme<createImage_args> {
+ private static class createImage_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<createImage_args> {
@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 +29997,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,8 +30010,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class createImage_result implements org.apache.thrift.TBase<createImage_result, createImage_result._Fields>, java.io.Serializable, Cloneable, Comparable<createImage_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createImage_result");
@@ -28082,15 +30023,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +30036,10 @@ public class SatelliteServer {
AUTH_ERROR((short)1, "authError"),
ERROR((short)2, "error");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -28109,6 +30047,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,45 +30067,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +30116,7 @@ public class SatelliteServer {
}
public createImage_result(
- String success,
+ java.lang.String success,
TAuthorizationException authError,
TInvocationException error)
{
@@ -28199,6 +30141,7 @@ public class SatelliteServer {
}
}
+ @Override
public createImage_result deepCopy() {
return new createImage_result(this);
}
@@ -28210,11 +30153,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 +30178,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 +30203,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 +30228,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +30258,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -28323,13 +30272,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -28340,13 +30290,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 +30303,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 +30338,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +30363,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 +30373,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 +30383,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 +30396,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +30456,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,14 +30464,16 @@ public class SatelliteServer {
}
}
- private static class createImage_resultStandardSchemeFactory implements SchemeFactory {
+ private static class createImage_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public createImage_resultStandardScheme getScheme() {
return new createImage_resultStandardScheme();
}
}
- private static class createImage_resultStandardScheme extends StandardScheme<createImage_result> {
+ private static class createImage_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<createImage_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, createImage_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -28569,6 +30521,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, createImage_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -28594,18 +30547,19 @@ public class SatelliteServer {
}
- private static class createImage_resultTupleSchemeFactory implements SchemeFactory {
+ private static class createImage_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public createImage_resultTupleScheme getScheme() {
return new createImage_resultTupleScheme();
}
}
- private static class createImage_resultTupleScheme extends TupleScheme<createImage_result> {
+ private static class createImage_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<createImage_result> {
@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 +30583,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,8 +30602,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class updateImageBase_args implements org.apache.thrift.TBase<updateImageBase_args, updateImageBase_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateImageBase_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageBase_args");
@@ -28657,15 +30615,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +30628,10 @@ public class SatelliteServer {
IMAGE_BASE_ID((short)2, "imageBaseId"),
IMAGE((short)3, "image");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -28684,6 +30639,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,45 +30659,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +30708,8 @@ public class SatelliteServer {
}
public updateImageBase_args(
- String userToken,
- String imageBaseId,
+ java.lang.String userToken,
+ java.lang.String imageBaseId,
ImageBaseWrite image)
{
this();
@@ -28774,6 +30733,7 @@ public class SatelliteServer {
}
}
+ @Override
public updateImageBase_args deepCopy() {
return new updateImageBase_args(this);
}
@@ -28785,11 +30745,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 +30770,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 +30795,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 +30820,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +30835,7 @@ public class SatelliteServer {
if (value == null) {
unsetImageBaseId();
} else {
- setImageBaseId((String)value);
+ setImageBaseId((java.lang.String)value);
}
break;
@@ -28886,7 +30850,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -28898,13 +30864,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -28915,13 +30882,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 +30895,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 +30930,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +30955,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 +30965,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 +30975,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 +30988,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +31052,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,14 +31060,16 @@ public class SatelliteServer {
}
}
- private static class updateImageBase_argsStandardSchemeFactory implements SchemeFactory {
+ private static class updateImageBase_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateImageBase_argsStandardScheme getScheme() {
return new updateImageBase_argsStandardScheme();
}
}
- private static class updateImageBase_argsStandardScheme extends StandardScheme<updateImageBase_args> {
+ private static class updateImageBase_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<updateImageBase_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageBase_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -29146,6 +31116,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageBase_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -29171,18 +31142,19 @@ public class SatelliteServer {
}
- private static class updateImageBase_argsTupleSchemeFactory implements SchemeFactory {
+ private static class updateImageBase_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateImageBase_argsTupleScheme getScheme() {
return new updateImageBase_argsTupleScheme();
}
}
- private static class updateImageBase_argsTupleScheme extends TupleScheme<updateImageBase_args> {
+ private static class updateImageBase_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<updateImageBase_args> {
@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 +31178,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,8 +31196,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class updateImageBase_result implements org.apache.thrift.TBase<updateImageBase_result, updateImageBase_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateImageBase_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageBase_result");
@@ -29233,15 +31209,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +31222,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
IMG_ERROR((short)3, "imgError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -29260,6 +31233,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,45 +31253,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -29350,6 +31327,7 @@ public class SatelliteServer {
}
}
+ @Override
public updateImageBase_result deepCopy() {
return new updateImageBase_result(this);
}
@@ -29361,11 +31339,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 +31364,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 +31389,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 +31414,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case AUTH_ERROR:
if (value == null) {
@@ -29462,7 +31444,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case AUTH_ERROR:
return getAuthError();
@@ -29474,13 +31458,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -29491,13 +31476,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 +31489,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 +31524,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +31549,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 +31559,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 +31569,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 +31582,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +31642,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,14 +31650,16 @@ public class SatelliteServer {
}
}
- private static class updateImageBase_resultStandardSchemeFactory implements SchemeFactory {
+ private static class updateImageBase_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateImageBase_resultStandardScheme getScheme() {
return new updateImageBase_resultStandardScheme();
}
}
- private static class updateImageBase_resultStandardScheme extends StandardScheme<updateImageBase_result> {
+ private static class updateImageBase_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<updateImageBase_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageBase_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -29721,6 +31708,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageBase_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -29746,18 +31734,19 @@ public class SatelliteServer {
}
- private static class updateImageBase_resultTupleSchemeFactory implements SchemeFactory {
+ private static class updateImageBase_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateImageBase_resultTupleScheme getScheme() {
return new updateImageBase_resultTupleScheme();
}
}
- private static class updateImageBase_resultTupleScheme extends TupleScheme<updateImageBase_result> {
+ private static class updateImageBase_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<updateImageBase_result> {
@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 +31770,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,8 +31790,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class updateImageVersion_args implements org.apache.thrift.TBase<updateImageVersion_args, updateImageVersion_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateImageVersion_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageVersion_args");
@@ -29810,15 +31803,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +31816,10 @@ public class SatelliteServer {
IMAGE_VERSION_ID((short)2, "imageVersionId"),
IMAGE((short)3, "image");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -29837,6 +31827,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,45 +31847,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +31896,8 @@ public class SatelliteServer {
}
public updateImageVersion_args(
- String userToken,
- String imageVersionId,
+ java.lang.String userToken,
+ java.lang.String imageVersionId,
ImageVersionWrite image)
{
this();
@@ -29927,6 +31921,7 @@ public class SatelliteServer {
}
}
+ @Override
public updateImageVersion_args deepCopy() {
return new updateImageVersion_args(this);
}
@@ -29938,11 +31933,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 +31958,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 +31983,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 +32008,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +32023,7 @@ public class SatelliteServer {
if (value == null) {
unsetImageVersionId();
} else {
- setImageVersionId((String)value);
+ setImageVersionId((java.lang.String)value);
}
break;
@@ -30039,7 +32038,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -30051,13 +32052,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -30068,13 +32070,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 +32083,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 +32118,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +32143,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 +32153,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 +32163,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 +32176,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +32240,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,14 +32248,16 @@ public class SatelliteServer {
}
}
- private static class updateImageVersion_argsStandardSchemeFactory implements SchemeFactory {
+ private static class updateImageVersion_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateImageVersion_argsStandardScheme getScheme() {
return new updateImageVersion_argsStandardScheme();
}
}
- private static class updateImageVersion_argsStandardScheme extends StandardScheme<updateImageVersion_args> {
+ private static class updateImageVersion_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<updateImageVersion_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageVersion_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -30299,6 +32304,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageVersion_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -30324,18 +32330,19 @@ public class SatelliteServer {
}
- private static class updateImageVersion_argsTupleSchemeFactory implements SchemeFactory {
+ private static class updateImageVersion_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateImageVersion_argsTupleScheme getScheme() {
return new updateImageVersion_argsTupleScheme();
}
}
- private static class updateImageVersion_argsTupleScheme extends TupleScheme<updateImageVersion_args> {
+ private static class updateImageVersion_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<updateImageVersion_args> {
@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 +32366,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,8 +32384,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class updateImageVersion_result implements org.apache.thrift.TBase<updateImageVersion_result, updateImageVersion_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateImageVersion_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageVersion_result");
@@ -30386,15 +32397,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +32410,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
IMG_ERROR((short)3, "imgError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -30413,6 +32421,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,45 +32441,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -30503,6 +32515,7 @@ public class SatelliteServer {
}
}
+ @Override
public updateImageVersion_result deepCopy() {
return new updateImageVersion_result(this);
}
@@ -30514,11 +32527,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 +32552,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 +32577,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 +32602,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case AUTH_ERROR:
if (value == null) {
@@ -30615,7 +32632,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case AUTH_ERROR:
return getAuthError();
@@ -30627,13 +32646,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -30644,13 +32664,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 +32677,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 +32712,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +32737,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 +32747,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 +32757,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 +32770,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +32830,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,14 +32838,16 @@ public class SatelliteServer {
}
}
- private static class updateImageVersion_resultStandardSchemeFactory implements SchemeFactory {
+ private static class updateImageVersion_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateImageVersion_resultStandardScheme getScheme() {
return new updateImageVersion_resultStandardScheme();
}
}
- private static class updateImageVersion_resultStandardScheme extends StandardScheme<updateImageVersion_result> {
+ private static class updateImageVersion_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<updateImageVersion_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageVersion_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -30874,6 +32896,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageVersion_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -30899,18 +32922,19 @@ public class SatelliteServer {
}
- private static class updateImageVersion_resultTupleSchemeFactory implements SchemeFactory {
+ private static class updateImageVersion_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateImageVersion_resultTupleScheme getScheme() {
return new updateImageVersion_resultTupleScheme();
}
}
- private static class updateImageVersion_resultTupleScheme extends TupleScheme<updateImageVersion_result> {
+ private static class updateImageVersion_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<updateImageVersion_result> {
@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 +32958,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,32 +32978,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class deleteImageVersion_args implements org.apache.thrift.TBase<deleteImageVersion_args, deleteImageVersion_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteImageVersion_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageVersion_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -30987,6 +33012,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,43 +33030,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +33077,8 @@ public class SatelliteServer {
}
public deleteImageVersion_args(
- String userToken,
- String imageVersionId)
+ java.lang.String userToken,
+ java.lang.String imageVersionId)
{
this();
this.userToken = userToken;
@@ -31068,6 +33097,7 @@ public class SatelliteServer {
}
}
+ @Override
public deleteImageVersion_args deepCopy() {
return new deleteImageVersion_args(this);
}
@@ -31078,11 +33108,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 +33133,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 +33158,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +33173,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -31156,13 +33191,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -31171,13 +33207,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 +33220,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 +33246,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +33267,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 +33277,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 +33290,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +33343,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,14 +33351,16 @@ public class SatelliteServer {
}
}
- private static class deleteImageVersion_argsStandardSchemeFactory implements SchemeFactory {
+ private static class deleteImageVersion_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public deleteImageVersion_argsStandardScheme getScheme() {
return new deleteImageVersion_argsStandardScheme();
}
}
- private static class deleteImageVersion_argsStandardScheme extends StandardScheme<deleteImageVersion_args> {
+ private static class deleteImageVersion_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<deleteImageVersion_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageVersion_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -31358,6 +33398,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageVersion_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -31378,18 +33419,19 @@ public class SatelliteServer {
}
- private static class deleteImageVersion_argsTupleSchemeFactory implements SchemeFactory {
+ private static class deleteImageVersion_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public deleteImageVersion_argsTupleScheme getScheme() {
return new deleteImageVersion_argsTupleScheme();
}
}
- private static class deleteImageVersion_argsTupleScheme extends TupleScheme<deleteImageVersion_args> {
+ private static class deleteImageVersion_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<deleteImageVersion_args> {
@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 +33449,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,8 +33462,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class deleteImageVersion_result implements org.apache.thrift.TBase<deleteImageVersion_result, deleteImageVersion_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteImageVersion_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageVersion_result");
@@ -31429,15 +33475,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +33488,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -31456,6 +33499,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,45 +33519,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -31546,6 +33593,7 @@ public class SatelliteServer {
}
}
+ @Override
public deleteImageVersion_result deepCopy() {
return new deleteImageVersion_result(this);
}
@@ -31557,11 +33605,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 +33630,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 +33655,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 +33680,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case AUTH_ERROR:
if (value == null) {
@@ -31658,7 +33710,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case AUTH_ERROR:
return getAuthError();
@@ -31670,13 +33724,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -31687,13 +33742,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 +33755,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 +33790,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +33815,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 +33825,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 +33835,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 +33848,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +33908,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,14 +33916,16 @@ public class SatelliteServer {
}
}
- private static class deleteImageVersion_resultStandardSchemeFactory implements SchemeFactory {
+ private static class deleteImageVersion_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public deleteImageVersion_resultStandardScheme getScheme() {
return new deleteImageVersion_resultStandardScheme();
}
}
- private static class deleteImageVersion_resultStandardScheme extends StandardScheme<deleteImageVersion_result> {
+ private static class deleteImageVersion_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<deleteImageVersion_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageVersion_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -31917,6 +33974,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageVersion_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -31942,18 +34000,19 @@ public class SatelliteServer {
}
- private static class deleteImageVersion_resultTupleSchemeFactory implements SchemeFactory {
+ private static class deleteImageVersion_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public deleteImageVersion_resultTupleScheme getScheme() {
return new deleteImageVersion_resultTupleScheme();
}
}
- private static class deleteImageVersion_resultTupleScheme extends TupleScheme<deleteImageVersion_result> {
+ private static class deleteImageVersion_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<deleteImageVersion_result> {
@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 +34036,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,32 +34056,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class deleteImageBase_args implements org.apache.thrift.TBase<deleteImageBase_args, deleteImageBase_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteImageBase_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageBase_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -32030,6 +34090,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,43 +34108,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +34155,8 @@ public class SatelliteServer {
}
public deleteImageBase_args(
- String userToken,
- String imageBaseId)
+ java.lang.String userToken,
+ java.lang.String imageBaseId)
{
this();
this.userToken = userToken;
@@ -32111,6 +34175,7 @@ public class SatelliteServer {
}
}
+ @Override
public deleteImageBase_args deepCopy() {
return new deleteImageBase_args(this);
}
@@ -32121,11 +34186,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 +34211,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 +34236,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +34251,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -32199,13 +34269,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -32214,13 +34285,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 +34298,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 +34324,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +34345,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 +34355,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 +34368,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +34421,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,14 +34429,16 @@ public class SatelliteServer {
}
}
- private static class deleteImageBase_argsStandardSchemeFactory implements SchemeFactory {
+ private static class deleteImageBase_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public deleteImageBase_argsStandardScheme getScheme() {
return new deleteImageBase_argsStandardScheme();
}
}
- private static class deleteImageBase_argsStandardScheme extends StandardScheme<deleteImageBase_args> {
+ private static class deleteImageBase_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<deleteImageBase_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageBase_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -32401,6 +34476,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageBase_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -32421,18 +34497,19 @@ public class SatelliteServer {
}
- private static class deleteImageBase_argsTupleSchemeFactory implements SchemeFactory {
+ private static class deleteImageBase_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public deleteImageBase_argsTupleScheme getScheme() {
return new deleteImageBase_argsTupleScheme();
}
}
- private static class deleteImageBase_argsTupleScheme extends TupleScheme<deleteImageBase_args> {
+ private static class deleteImageBase_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<deleteImageBase_args> {
@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 +34527,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,8 +34540,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class deleteImageBase_result implements org.apache.thrift.TBase<deleteImageBase_result, deleteImageBase_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteImageBase_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageBase_result");
@@ -32472,15 +34553,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +34566,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -32499,6 +34577,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,45 +34597,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -32589,6 +34671,7 @@ public class SatelliteServer {
}
}
+ @Override
public deleteImageBase_result deepCopy() {
return new deleteImageBase_result(this);
}
@@ -32600,11 +34683,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 +34708,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 +34733,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 +34758,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case AUTH_ERROR:
if (value == null) {
@@ -32701,7 +34788,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case AUTH_ERROR:
return getAuthError();
@@ -32713,13 +34802,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -32730,13 +34820,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 +34833,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 +34868,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +34893,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 +34903,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 +34913,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 +34926,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +34986,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,14 +34994,16 @@ public class SatelliteServer {
}
}
- private static class deleteImageBase_resultStandardSchemeFactory implements SchemeFactory {
+ private static class deleteImageBase_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public deleteImageBase_resultStandardScheme getScheme() {
return new deleteImageBase_resultStandardScheme();
}
}
- private static class deleteImageBase_resultStandardScheme extends StandardScheme<deleteImageBase_result> {
+ private static class deleteImageBase_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<deleteImageBase_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageBase_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -32960,6 +35052,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageBase_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -32985,18 +35078,19 @@ public class SatelliteServer {
}
- private static class deleteImageBase_resultTupleSchemeFactory implements SchemeFactory {
+ private static class deleteImageBase_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public deleteImageBase_resultTupleScheme getScheme() {
return new deleteImageBase_resultTupleScheme();
}
}
- private static class deleteImageBase_resultTupleScheme extends TupleScheme<deleteImageBase_result> {
+ private static class deleteImageBase_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<deleteImageBase_result> {
@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 +35114,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,8 +35134,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class writeImagePermissions_args implements org.apache.thrift.TBase<writeImagePermissions_args, writeImagePermissions_args._Fields>, java.io.Serializable, Cloneable, Comparable<writeImagePermissions_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImagePermissions_args");
@@ -33049,15 +35147,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String,ImagePermissions> 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<java.lang.String,ImagePermissions> 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 +35160,10 @@ public class SatelliteServer {
IMAGE_BASE_ID((short)2, "imageBaseId"),
PERMISSIONS((short)3, "permissions");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -33076,6 +35171,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,38 +35191,41 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +35234,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 +35242,9 @@ public class SatelliteServer {
}
public writeImagePermissions_args(
- String userToken,
- String imageBaseId,
- Map<String,ImagePermissions> permissions)
+ java.lang.String userToken,
+ java.lang.String imageBaseId,
+ java.util.Map<java.lang.String,ImagePermissions> permissions)
{
this();
this.userToken = userToken;
@@ -33164,13 +35263,13 @@ public class SatelliteServer {
this.imageBaseId = other.imageBaseId;
}
if (other.isSetPermissions()) {
- Map<String,ImagePermissions> __this__permissions = new HashMap<String,ImagePermissions>(other.permissions.size());
- for (Map.Entry<String, ImagePermissions> other_element : other.permissions.entrySet()) {
+ java.util.Map<java.lang.String,ImagePermissions> __this__permissions = new java.util.HashMap<java.lang.String,ImagePermissions>(other.permissions.size());
+ for (java.util.Map.Entry<java.lang.String, ImagePermissions> 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);
@@ -33180,6 +35279,7 @@ public class SatelliteServer {
}
}
+ @Override
public writeImagePermissions_args deepCopy() {
return new writeImagePermissions_args(this);
}
@@ -33191,11 +35291,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 +35316,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 +35345,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<String,ImagePermissions>();
+ this.permissions = new java.util.HashMap<java.lang.String,ImagePermissions>();
}
this.permissions.put(key, val);
}
- public Map<String,ImagePermissions> getPermissions() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.Map<java.lang.String,ImagePermissions> getPermissions() {
return this.permissions;
}
- public writeImagePermissions_args setPermissions(Map<String,ImagePermissions> permissions) {
+ public writeImagePermissions_args setPermissions(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.String,ImagePermissions> permissions) {
this.permissions = permissions;
return this;
}
@@ -33274,13 +35377,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +35392,7 @@ public class SatelliteServer {
if (value == null) {
unsetImageBaseId();
} else {
- setImageBaseId((String)value);
+ setImageBaseId((java.lang.String)value);
}
break;
@@ -33296,14 +35400,16 @@ public class SatelliteServer {
if (value == null) {
unsetPermissions();
} else {
- setPermissions((Map<String,ImagePermissions>)value);
+ setPermissions((java.util.Map<java.lang.String,ImagePermissions>)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -33315,13 +35421,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -33332,13 +35439,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 +35452,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 +35487,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +35512,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 +35522,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 +35532,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 +35545,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +35606,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,14 +35614,16 @@ public class SatelliteServer {
}
}
- private static class writeImagePermissions_argsStandardSchemeFactory implements SchemeFactory {
+ private static class writeImagePermissions_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public writeImagePermissions_argsStandardScheme getScheme() {
return new writeImagePermissions_argsStandardScheme();
}
}
- private static class writeImagePermissions_argsStandardScheme extends StandardScheme<writeImagePermissions_args> {
+ private static class writeImagePermissions_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<writeImagePermissions_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -33543,16 +35653,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<String,ImagePermissions>(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<java.lang.String,ImagePermissions>(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();
}
@@ -33572,6 +35682,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -33590,10 +35701,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<String, ImagePermissions> _iter294 : struct.permissions.entrySet())
+ for (java.util.Map.Entry<java.lang.String, ImagePermissions> _iter374 : struct.permissions.entrySet())
{
- oprot.writeString(_iter294.getKey());
- _iter294.getValue().write(oprot);
+ oprot.writeString(_iter374.getKey());
+ _iter374.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -33605,18 +35716,19 @@ public class SatelliteServer {
}
- private static class writeImagePermissions_argsTupleSchemeFactory implements SchemeFactory {
+ private static class writeImagePermissions_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public writeImagePermissions_argsTupleScheme getScheme() {
return new writeImagePermissions_argsTupleScheme();
}
}
- private static class writeImagePermissions_argsTupleScheme extends TupleScheme<writeImagePermissions_args> {
+ private static class writeImagePermissions_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<writeImagePermissions_args> {
@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 +35748,10 @@ public class SatelliteServer {
if (struct.isSetPermissions()) {
{
oprot.writeI32(struct.permissions.size());
- for (Map.Entry<String, ImagePermissions> _iter295 : struct.permissions.entrySet())
+ for (java.util.Map.Entry<java.lang.String, ImagePermissions> _iter375 : struct.permissions.entrySet())
{
- oprot.writeString(_iter295.getKey());
- _iter295.getValue().write(oprot);
+ oprot.writeString(_iter375.getKey());
+ _iter375.getValue().write(oprot);
}
}
}
@@ -33647,8 +35759,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 +35771,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<String,ImagePermissions>(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<java.lang.String,ImagePermissions>(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,8 +35788,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class writeImagePermissions_result implements org.apache.thrift.TBase<writeImagePermissions_result, writeImagePermissions_result._Fields>, java.io.Serializable, Cloneable, Comparable<writeImagePermissions_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImagePermissions_result");
@@ -33685,15 +35801,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +35814,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -33712,6 +35825,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,45 +35845,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -33802,6 +35919,7 @@ public class SatelliteServer {
}
}
+ @Override
public writeImagePermissions_result deepCopy() {
return new writeImagePermissions_result(this);
}
@@ -33813,11 +35931,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 +35956,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 +35981,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 +36006,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case AUTH_ERROR:
if (value == null) {
@@ -33914,7 +36036,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case AUTH_ERROR:
return getAuthError();
@@ -33926,13 +36050,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -33943,13 +36068,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 +36081,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 +36116,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +36141,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 +36151,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 +36161,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 +36174,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +36234,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,14 +36242,16 @@ public class SatelliteServer {
}
}
- private static class writeImagePermissions_resultStandardSchemeFactory implements SchemeFactory {
+ private static class writeImagePermissions_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public writeImagePermissions_resultStandardScheme getScheme() {
return new writeImagePermissions_resultStandardScheme();
}
}
- private static class writeImagePermissions_resultStandardScheme extends StandardScheme<writeImagePermissions_result> {
+ private static class writeImagePermissions_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<writeImagePermissions_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -34173,6 +36300,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -34198,18 +36326,19 @@ public class SatelliteServer {
}
- private static class writeImagePermissions_resultTupleSchemeFactory implements SchemeFactory {
+ private static class writeImagePermissions_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public writeImagePermissions_resultTupleScheme getScheme() {
return new writeImagePermissions_resultTupleScheme();
}
}
- private static class writeImagePermissions_resultTupleScheme extends TupleScheme<writeImagePermissions_result> {
+ private static class writeImagePermissions_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<writeImagePermissions_result> {
@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 +36362,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,32 +36382,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getImagePermissions_args implements org.apache.thrift.TBase<getImagePermissions_args, getImagePermissions_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImagePermissions_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImagePermissions_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -34286,6 +36416,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,43 +36434,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +36481,8 @@ public class SatelliteServer {
}
public getImagePermissions_args(
- String userToken,
- String imageBaseId)
+ java.lang.String userToken,
+ java.lang.String imageBaseId)
{
this();
this.userToken = userToken;
@@ -34367,6 +36501,7 @@ public class SatelliteServer {
}
}
+ @Override
public getImagePermissions_args deepCopy() {
return new getImagePermissions_args(this);
}
@@ -34377,11 +36512,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 +36537,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 +36562,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +36577,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -34455,13 +36595,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -34470,13 +36611,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 +36624,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 +36650,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +36671,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 +36681,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 +36694,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +36747,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,14 +36755,16 @@ public class SatelliteServer {
}
}
- private static class getImagePermissions_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getImagePermissions_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImagePermissions_argsStandardScheme getScheme() {
return new getImagePermissions_argsStandardScheme();
}
}
- private static class getImagePermissions_argsStandardScheme extends StandardScheme<getImagePermissions_args> {
+ private static class getImagePermissions_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getImagePermissions_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -34657,6 +36802,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getImagePermissions_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -34677,18 +36823,19 @@ public class SatelliteServer {
}
- private static class getImagePermissions_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getImagePermissions_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImagePermissions_argsTupleScheme getScheme() {
return new getImagePermissions_argsTupleScheme();
}
}
- private static class getImagePermissions_argsTupleScheme extends TupleScheme<getImagePermissions_args> {
+ private static class getImagePermissions_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getImagePermissions_args> {
@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 +36853,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,8 +36866,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getImagePermissions_result implements org.apache.thrift.TBase<getImagePermissions_result, getImagePermissions_result._Fields>, java.io.Serializable, Cloneable, Comparable<getImagePermissions_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImagePermissions_result");
@@ -34729,16 +36880,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String,ImagePermissions> success; // required
- public TAuthorizationException authError; // required
- public TNotFoundException notFound; // required
- public TInvocationException serverError; // required
+ public @org.apache.thrift.annotation.Nullable java.util.Map<java.lang.String,ImagePermissions> 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 +36895,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -34758,6 +36906,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,49 +36928,52 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +36981,7 @@ public class SatelliteServer {
}
public getImagePermissions_result(
- Map<String,ImagePermissions> success,
+ java.util.Map<java.lang.String,ImagePermissions> success,
TAuthorizationException authError,
TNotFoundException notFound,
TInvocationException serverError)
@@ -34846,13 +36998,13 @@ public class SatelliteServer {
*/
public getImagePermissions_result(getImagePermissions_result other) {
if (other.isSetSuccess()) {
- Map<String,ImagePermissions> __this__success = new HashMap<String,ImagePermissions>(other.success.size());
- for (Map.Entry<String, ImagePermissions> other_element : other.success.entrySet()) {
+ java.util.Map<java.lang.String,ImagePermissions> __this__success = new java.util.HashMap<java.lang.String,ImagePermissions>(other.success.size());
+ for (java.util.Map.Entry<java.lang.String, ImagePermissions> 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);
@@ -34871,6 +37023,7 @@ public class SatelliteServer {
}
}
+ @Override
public getImagePermissions_result deepCopy() {
return new getImagePermissions_result(this);
}
@@ -34887,18 +37040,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<String,ImagePermissions>();
+ this.success = new java.util.HashMap<java.lang.String,ImagePermissions>();
}
this.success.put(key, val);
}
- public Map<String,ImagePermissions> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.Map<java.lang.String,ImagePermissions> getSuccess() {
return this.success;
}
- public getImagePermissions_result setSuccess(Map<String,ImagePermissions> success) {
+ public getImagePermissions_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.String,ImagePermissions> success) {
this.success = success;
return this;
}
@@ -34918,11 +37072,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 +37097,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 +37122,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 +37147,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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<String,ImagePermissions>)value);
+ setSuccess((java.util.Map<java.lang.String,ImagePermissions>)value);
}
break;
@@ -35027,7 +37185,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -35042,13 +37202,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -35061,13 +37222,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 +37235,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 +37279,25 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +37308,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 +37318,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 +37328,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 +37338,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 +37351,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +37419,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,14 +37427,16 @@ public class SatelliteServer {
}
}
- private static class getImagePermissions_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getImagePermissions_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImagePermissions_resultStandardScheme getScheme() {
return new getImagePermissions_resultStandardScheme();
}
}
- private static class getImagePermissions_resultStandardScheme extends StandardScheme<getImagePermissions_result> {
+ private static class getImagePermissions_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getImagePermissions_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -35288,16 +37450,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<String,ImagePermissions>(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<java.lang.String,ImagePermissions>(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();
}
@@ -35344,6 +37506,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getImagePermissions_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -35352,10 +37515,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<String, ImagePermissions> _iter304 : struct.success.entrySet())
+ for (java.util.Map.Entry<java.lang.String, ImagePermissions> _iter384 : struct.success.entrySet())
{
- oprot.writeString(_iter304.getKey());
- _iter304.getValue().write(oprot);
+ oprot.writeString(_iter384.getKey());
+ _iter384.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -35382,18 +37545,19 @@ public class SatelliteServer {
}
- private static class getImagePermissions_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getImagePermissions_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImagePermissions_resultTupleScheme getScheme() {
return new getImagePermissions_resultTupleScheme();
}
}
- private static class getImagePermissions_resultTupleScheme extends TupleScheme<getImagePermissions_result> {
+ private static class getImagePermissions_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getImagePermissions_result> {
@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 +37574,10 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Map.Entry<String, ImagePermissions> _iter305 : struct.success.entrySet())
+ for (java.util.Map.Entry<java.lang.String, ImagePermissions> _iter385 : struct.success.entrySet())
{
- oprot.writeString(_iter305.getKey());
- _iter305.getValue().write(oprot);
+ oprot.writeString(_iter385.getKey());
+ _iter385.getValue().write(oprot);
}
}
}
@@ -35430,20 +37594,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<String,ImagePermissions>(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<java.lang.String,ImagePermissions>(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,8 +37630,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class setImageOwner_args implements org.apache.thrift.TBase<setImageOwner_args, setImageOwner_args._Fields>, java.io.Serializable, Cloneable, Comparable<setImageOwner_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageOwner_args");
@@ -35475,15 +37643,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +37656,10 @@ public class SatelliteServer {
IMAGE_BASE_ID((short)2, "imageBaseId"),
NEW_OWNER_ID((short)3, "newOwnerId");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -35502,6 +37667,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,45 +37687,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +37736,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;
@@ -35592,6 +37761,7 @@ public class SatelliteServer {
}
}
+ @Override
public setImageOwner_args deepCopy() {
return new setImageOwner_args(this);
}
@@ -35603,11 +37773,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 +37798,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 +37823,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 +37848,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +37863,7 @@ public class SatelliteServer {
if (value == null) {
unsetImageBaseId();
} else {
- setImageBaseId((String)value);
+ setImageBaseId((java.lang.String)value);
}
break;
@@ -35697,14 +37871,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -35716,13 +37892,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -35733,13 +37910,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 +37923,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 +37958,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +37983,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 +37993,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 +38003,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 +38016,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +38077,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,14 +38085,16 @@ public class SatelliteServer {
}
}
- private static class setImageOwner_argsStandardSchemeFactory implements SchemeFactory {
+ private static class setImageOwner_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setImageOwner_argsStandardScheme getScheme() {
return new setImageOwner_argsStandardScheme();
}
}
- private static class setImageOwner_argsStandardScheme extends StandardScheme<setImageOwner_args> {
+ private static class setImageOwner_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<setImageOwner_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -35960,6 +38140,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -35985,18 +38166,19 @@ public class SatelliteServer {
}
- private static class setImageOwner_argsTupleSchemeFactory implements SchemeFactory {
+ private static class setImageOwner_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setImageOwner_argsTupleScheme getScheme() {
return new setImageOwner_argsTupleScheme();
}
}
- private static class setImageOwner_argsTupleScheme extends TupleScheme<setImageOwner_args> {
+ private static class setImageOwner_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<setImageOwner_args> {
@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 +38202,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,8 +38219,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class setImageOwner_result implements org.apache.thrift.TBase<setImageOwner_result, setImageOwner_result._Fields>, java.io.Serializable, Cloneable, Comparable<setImageOwner_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageOwner_result");
@@ -36046,15 +38232,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +38245,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -36073,6 +38256,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,45 +38276,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -36163,6 +38350,7 @@ public class SatelliteServer {
}
}
+ @Override
public setImageOwner_result deepCopy() {
return new setImageOwner_result(this);
}
@@ -36174,11 +38362,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 +38387,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 +38412,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 +38437,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case AUTH_ERROR:
if (value == null) {
@@ -36275,7 +38467,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case AUTH_ERROR:
return getAuthError();
@@ -36287,13 +38481,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -36304,13 +38499,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 +38512,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 +38547,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +38572,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 +38582,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 +38592,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 +38605,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +38665,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,14 +38673,16 @@ public class SatelliteServer {
}
}
- private static class setImageOwner_resultStandardSchemeFactory implements SchemeFactory {
+ private static class setImageOwner_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setImageOwner_resultStandardScheme getScheme() {
return new setImageOwner_resultStandardScheme();
}
}
- private static class setImageOwner_resultStandardScheme extends StandardScheme<setImageOwner_result> {
+ private static class setImageOwner_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<setImageOwner_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -36534,6 +38731,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -36559,18 +38757,19 @@ public class SatelliteServer {
}
- private static class setImageOwner_resultTupleSchemeFactory implements SchemeFactory {
+ private static class setImageOwner_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setImageOwner_resultTupleScheme getScheme() {
return new setImageOwner_resultTupleScheme();
}
}
- private static class setImageOwner_resultTupleScheme extends TupleScheme<setImageOwner_result> {
+ private static class setImageOwner_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<setImageOwner_result> {
@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 +38793,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,8 +38813,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class setImageVersionExpiry_args implements org.apache.thrift.TBase<setImageVersionExpiry_args, setImageVersionExpiry_args._Fields>, java.io.Serializable, Cloneable, Comparable<setImageVersionExpiry_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageVersionExpiry_args");
@@ -36623,14 +38826,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +38839,10 @@ public class SatelliteServer {
IMAGE_BASE_ID((short)2, "imageBaseId"),
EXPIRE_TIME((short)3, "expireTime");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -36650,6 +38850,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,30 +38870,33 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -36700,16 +38904,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 +38921,8 @@ public class SatelliteServer {
}
public setImageVersionExpiry_args(
- String userToken,
- String imageBaseId,
+ java.lang.String userToken,
+ java.lang.String imageBaseId,
long expireTime)
{
this();
@@ -36742,6 +38946,7 @@ public class SatelliteServer {
this.expireTime = other.expireTime;
}
+ @Override
public setImageVersionExpiry_args deepCopy() {
return new setImageVersionExpiry_args(this);
}
@@ -36754,11 +38959,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 +38984,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 +39020,26 @@ 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) {
+ @Override
+ 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 +39047,7 @@ public class SatelliteServer {
if (value == null) {
unsetImageBaseId();
} else {
- setImageBaseId((String)value);
+ setImageBaseId((java.lang.String)value);
}
break;
@@ -36847,14 +39055,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -36866,13 +39076,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -36883,13 +39094,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 +39107,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 +39142,19 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +39165,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 +39175,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 +39185,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 +39198,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +39255,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,14 +39265,16 @@ public class SatelliteServer {
}
}
- private static class setImageVersionExpiry_argsStandardSchemeFactory implements SchemeFactory {
+ private static class setImageVersionExpiry_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setImageVersionExpiry_argsStandardScheme getScheme() {
return new setImageVersionExpiry_argsStandardScheme();
}
}
- private static class setImageVersionExpiry_argsStandardScheme extends StandardScheme<setImageVersionExpiry_args> {
+ private static class setImageVersionExpiry_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<setImageVersionExpiry_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -37108,6 +39320,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -37131,18 +39344,19 @@ public class SatelliteServer {
}
- private static class setImageVersionExpiry_argsTupleSchemeFactory implements SchemeFactory {
+ private static class setImageVersionExpiry_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setImageVersionExpiry_argsTupleScheme getScheme() {
return new setImageVersionExpiry_argsTupleScheme();
}
}
- private static class setImageVersionExpiry_argsTupleScheme extends TupleScheme<setImageVersionExpiry_args> {
+ private static class setImageVersionExpiry_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<setImageVersionExpiry_args> {
@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 +39380,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,8 +39397,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class setImageVersionExpiry_result implements org.apache.thrift.TBase<setImageVersionExpiry_result, setImageVersionExpiry_result._Fields>, java.io.Serializable, Cloneable, Comparable<setImageVersionExpiry_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageVersionExpiry_result");
@@ -37193,16 +39411,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +39426,10 @@ public class SatelliteServer {
SERVER_ERROR((short)3, "serverError"),
DATE_ERROR((short)4, "dateError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -37222,6 +39437,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,47 +39459,50 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -37321,6 +39540,7 @@ public class SatelliteServer {
}
}
+ @Override
public setImageVersionExpiry_result deepCopy() {
return new setImageVersionExpiry_result(this);
}
@@ -37333,11 +39553,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 +39578,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 +39603,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 +39628,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 +39653,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case AUTH_ERROR:
if (value == null) {
@@ -37466,7 +39691,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case AUTH_ERROR:
return getAuthError();
@@ -37481,13 +39708,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -37500,13 +39728,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 +39741,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 +39785,25 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +39814,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 +39824,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 +39834,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 +39844,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 +39857,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +39925,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,14 +39933,16 @@ public class SatelliteServer {
}
}
- private static class setImageVersionExpiry_resultStandardSchemeFactory implements SchemeFactory {
+ private static class setImageVersionExpiry_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setImageVersionExpiry_resultStandardScheme getScheme() {
return new setImageVersionExpiry_resultStandardScheme();
}
}
- private static class setImageVersionExpiry_resultStandardScheme extends StandardScheme<setImageVersionExpiry_result> {
+ private static class setImageVersionExpiry_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<setImageVersionExpiry_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -37771,6 +40000,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -37801,18 +40031,19 @@ public class SatelliteServer {
}
- private static class setImageVersionExpiry_resultTupleSchemeFactory implements SchemeFactory {
+ private static class setImageVersionExpiry_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setImageVersionExpiry_resultTupleScheme getScheme() {
return new setImageVersionExpiry_resultTupleScheme();
}
}
- private static class setImageVersionExpiry_resultTupleScheme extends TupleScheme<setImageVersionExpiry_result> {
+ private static class setImageVersionExpiry_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<setImageVersionExpiry_result> {
@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 +40073,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,32 +40098,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getImageVersionVirtConfig_args implements org.apache.thrift.TBase<getImageVersionVirtConfig_args, getImageVersionVirtConfig_args._Fields>, java.io.Serializable, Cloneable, Comparable<getImageVersionVirtConfig_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageVersionVirtConfig_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -37900,6 +40132,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,43 +40150,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +40197,8 @@ public class SatelliteServer {
}
public getImageVersionVirtConfig_args(
- String userToken,
- String imageVersionId)
+ java.lang.String userToken,
+ java.lang.String imageVersionId)
{
this();
this.userToken = userToken;
@@ -37981,6 +40217,7 @@ public class SatelliteServer {
}
}
+ @Override
public getImageVersionVirtConfig_args deepCopy() {
return new getImageVersionVirtConfig_args(this);
}
@@ -37991,11 +40228,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 +40253,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 +40278,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +40293,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -38069,13 +40311,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -38084,13 +40327,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 +40340,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 +40366,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +40387,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 +40397,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 +40410,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +40463,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,14 +40471,16 @@ public class SatelliteServer {
}
}
- private static class getImageVersionVirtConfig_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getImageVersionVirtConfig_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageVersionVirtConfig_argsStandardScheme getScheme() {
return new getImageVersionVirtConfig_argsStandardScheme();
}
}
- private static class getImageVersionVirtConfig_argsStandardScheme extends StandardScheme<getImageVersionVirtConfig_args> {
+ private static class getImageVersionVirtConfig_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getImageVersionVirtConfig_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getImageVersionVirtConfig_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -38271,6 +40518,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getImageVersionVirtConfig_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -38291,18 +40539,19 @@ public class SatelliteServer {
}
- private static class getImageVersionVirtConfig_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getImageVersionVirtConfig_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageVersionVirtConfig_argsTupleScheme getScheme() {
return new getImageVersionVirtConfig_argsTupleScheme();
}
}
- private static class getImageVersionVirtConfig_argsTupleScheme extends TupleScheme<getImageVersionVirtConfig_args> {
+ private static class getImageVersionVirtConfig_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getImageVersionVirtConfig_args> {
@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 +40569,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,8 +40582,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getImageVersionVirtConfig_result implements org.apache.thrift.TBase<getImageVersionVirtConfig_result, getImageVersionVirtConfig_result._Fields>, java.io.Serializable, Cloneable, Comparable<getImageVersionVirtConfig_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageVersionVirtConfig_result");
@@ -38343,16 +40596,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +40611,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -38372,6 +40622,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,47 +40644,50 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +40695,7 @@ public class SatelliteServer {
}
public getImageVersionVirtConfig_result(
- ByteBuffer success,
+ java.nio.ByteBuffer success,
TAuthorizationException authError,
TNotFoundException notFound,
TInvocationException serverError)
@@ -38471,6 +40725,7 @@ public class SatelliteServer {
}
}
+ @Override
public getImageVersionVirtConfig_result deepCopy() {
return new getImageVersionVirtConfig_result(this);
}
@@ -38488,16 +40743,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 +40772,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 +40797,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 +40822,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 +40847,18 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +40889,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -38641,13 +40906,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -38660,13 +40926,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 +40939,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 +40983,25 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +41012,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 +41022,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 +41032,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 +41042,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 +41055,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +41123,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,14 +41131,16 @@ public class SatelliteServer {
}
}
- private static class getImageVersionVirtConfig_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getImageVersionVirtConfig_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageVersionVirtConfig_resultStandardScheme getScheme() {
return new getImageVersionVirtConfig_resultStandardScheme();
}
}
- private static class getImageVersionVirtConfig_resultStandardScheme extends StandardScheme<getImageVersionVirtConfig_result> {
+ private static class getImageVersionVirtConfig_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getImageVersionVirtConfig_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getImageVersionVirtConfig_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -38930,6 +41197,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getImageVersionVirtConfig_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -38960,18 +41228,19 @@ public class SatelliteServer {
}
- private static class getImageVersionVirtConfig_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getImageVersionVirtConfig_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getImageVersionVirtConfig_resultTupleScheme getScheme() {
return new getImageVersionVirtConfig_resultTupleScheme();
}
}
- private static class getImageVersionVirtConfig_resultTupleScheme extends TupleScheme<getImageVersionVirtConfig_result> {
+ private static class getImageVersionVirtConfig_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getImageVersionVirtConfig_result> {
@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 +41270,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,8 +41294,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class setImageVersionVirtConfig_args implements org.apache.thrift.TBase<setImageVersionVirtConfig_args, setImageVersionVirtConfig_args._Fields>, java.io.Serializable, Cloneable, Comparable<setImageVersionVirtConfig_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageVersionVirtConfig_args");
@@ -39034,15 +41307,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +41320,10 @@ public class SatelliteServer {
IMAGE_VERSION_ID((short)2, "imageVersionId"),
META((short)3, "meta");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -39061,6 +41331,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,45 +41351,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +41400,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;
@@ -39151,6 +41425,7 @@ public class SatelliteServer {
}
}
+ @Override
public setImageVersionVirtConfig_args deepCopy() {
return new setImageVersionVirtConfig_args(this);
}
@@ -39162,11 +41437,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 +41462,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 +41492,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 +41521,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +41536,7 @@ public class SatelliteServer {
if (value == null) {
unsetImageVersionId();
} else {
- setImageVersionId((String)value);
+ setImageVersionId((java.lang.String)value);
}
break;
@@ -39266,14 +41544,20 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -39285,13 +41569,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -39302,13 +41587,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 +41600,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 +41635,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +41660,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 +41670,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 +41680,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 +41693,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +41754,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,14 +41762,16 @@ public class SatelliteServer {
}
}
- private static class setImageVersionVirtConfig_argsStandardSchemeFactory implements SchemeFactory {
+ private static class setImageVersionVirtConfig_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setImageVersionVirtConfig_argsStandardScheme getScheme() {
return new setImageVersionVirtConfig_argsStandardScheme();
}
}
- private static class setImageVersionVirtConfig_argsStandardScheme extends StandardScheme<setImageVersionVirtConfig_args> {
+ private static class setImageVersionVirtConfig_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<setImageVersionVirtConfig_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionVirtConfig_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -39529,6 +41817,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, setImageVersionVirtConfig_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -39554,18 +41843,19 @@ public class SatelliteServer {
}
- private static class setImageVersionVirtConfig_argsTupleSchemeFactory implements SchemeFactory {
+ private static class setImageVersionVirtConfig_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setImageVersionVirtConfig_argsTupleScheme getScheme() {
return new setImageVersionVirtConfig_argsTupleScheme();
}
}
- private static class setImageVersionVirtConfig_argsTupleScheme extends TupleScheme<setImageVersionVirtConfig_args> {
+ private static class setImageVersionVirtConfig_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<setImageVersionVirtConfig_args> {
@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 +41879,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,8 +41896,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class setImageVersionVirtConfig_result implements org.apache.thrift.TBase<setImageVersionVirtConfig_result, setImageVersionVirtConfig_result._Fields>, java.io.Serializable, Cloneable, Comparable<setImageVersionVirtConfig_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageVersionVirtConfig_result");
@@ -39615,15 +41909,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +41922,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -39642,6 +41933,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,45 +41953,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -39732,6 +42027,7 @@ public class SatelliteServer {
}
}
+ @Override
public setImageVersionVirtConfig_result deepCopy() {
return new setImageVersionVirtConfig_result(this);
}
@@ -39743,11 +42039,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 +42064,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 +42089,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 +42114,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case AUTH_ERROR:
if (value == null) {
@@ -39844,7 +42144,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case AUTH_ERROR:
return getAuthError();
@@ -39856,13 +42158,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -39873,13 +42176,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 +42189,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 +42224,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +42249,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 +42259,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 +42269,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 +42282,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +42342,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,14 +42350,16 @@ public class SatelliteServer {
}
}
- private static class setImageVersionVirtConfig_resultStandardSchemeFactory implements SchemeFactory {
+ private static class setImageVersionVirtConfig_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setImageVersionVirtConfig_resultStandardScheme getScheme() {
return new setImageVersionVirtConfig_resultStandardScheme();
}
}
- private static class setImageVersionVirtConfig_resultStandardScheme extends StandardScheme<setImageVersionVirtConfig_result> {
+ private static class setImageVersionVirtConfig_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<setImageVersionVirtConfig_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionVirtConfig_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -40103,6 +42408,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, setImageVersionVirtConfig_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -40128,18 +42434,19 @@ public class SatelliteServer {
}
- private static class setImageVersionVirtConfig_resultTupleSchemeFactory implements SchemeFactory {
+ private static class setImageVersionVirtConfig_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setImageVersionVirtConfig_resultTupleScheme getScheme() {
return new setImageVersionVirtConfig_resultTupleScheme();
}
}
- private static class setImageVersionVirtConfig_resultTupleScheme extends TupleScheme<setImageVersionVirtConfig_result> {
+ private static class setImageVersionVirtConfig_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<setImageVersionVirtConfig_result> {
@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 +42470,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,32 +42490,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class requestImageReplication_args implements org.apache.thrift.TBase<requestImageReplication_args, requestImageReplication_args._Fields>, java.io.Serializable, Cloneable, Comparable<requestImageReplication_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestImageReplication_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -40216,6 +42524,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,43 +42542,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +42589,8 @@ public class SatelliteServer {
}
public requestImageReplication_args(
- String userToken,
- String imageVersionId)
+ java.lang.String userToken,
+ java.lang.String imageVersionId)
{
this();
this.userToken = userToken;
@@ -40297,6 +42609,7 @@ public class SatelliteServer {
}
}
+ @Override
public requestImageReplication_args deepCopy() {
return new requestImageReplication_args(this);
}
@@ -40307,11 +42620,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 +42645,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 +42670,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +42685,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -40385,13 +42703,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -40400,13 +42719,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 +42732,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 +42758,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +42779,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 +42789,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 +42802,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +42855,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,14 +42863,16 @@ public class SatelliteServer {
}
}
- private static class requestImageReplication_argsStandardSchemeFactory implements SchemeFactory {
+ private static class requestImageReplication_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public requestImageReplication_argsStandardScheme getScheme() {
return new requestImageReplication_argsStandardScheme();
}
}
- private static class requestImageReplication_argsStandardScheme extends StandardScheme<requestImageReplication_args> {
+ private static class requestImageReplication_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<requestImageReplication_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageReplication_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -40587,6 +42910,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, requestImageReplication_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -40607,18 +42931,19 @@ public class SatelliteServer {
}
- private static class requestImageReplication_argsTupleSchemeFactory implements SchemeFactory {
+ private static class requestImageReplication_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public requestImageReplication_argsTupleScheme getScheme() {
return new requestImageReplication_argsTupleScheme();
}
}
- private static class requestImageReplication_argsTupleScheme extends TupleScheme<requestImageReplication_args> {
+ private static class requestImageReplication_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<requestImageReplication_args> {
@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 +42961,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,8 +42974,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class requestImageReplication_result implements org.apache.thrift.TBase<requestImageReplication_result, requestImageReplication_result._Fields>, java.io.Serializable, Cloneable, Comparable<requestImageReplication_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestImageReplication_result");
@@ -40659,16 +42988,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +43003,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -40688,6 +43014,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,47 +43036,50 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +43087,7 @@ public class SatelliteServer {
}
public requestImageReplication_result(
- String success,
+ java.lang.String success,
TAuthorizationException authError,
TNotFoundException notFound,
TInvocationException serverError)
@@ -40787,6 +43117,7 @@ public class SatelliteServer {
}
}
+ @Override
public requestImageReplication_result deepCopy() {
return new requestImageReplication_result(this);
}
@@ -40799,11 +43130,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 +43155,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 +43180,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 +43205,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 +43230,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +43268,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -40947,13 +43285,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -40966,13 +43305,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 +43318,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 +43362,25 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +43391,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 +43401,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 +43411,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 +43421,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 +43434,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +43502,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,14 +43510,16 @@ public class SatelliteServer {
}
}
- private static class requestImageReplication_resultStandardSchemeFactory implements SchemeFactory {
+ private static class requestImageReplication_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public requestImageReplication_resultStandardScheme getScheme() {
return new requestImageReplication_resultStandardScheme();
}
}
- private static class requestImageReplication_resultStandardScheme extends StandardScheme<requestImageReplication_result> {
+ private static class requestImageReplication_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<requestImageReplication_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageReplication_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -41236,6 +43576,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, requestImageReplication_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -41266,18 +43607,19 @@ public class SatelliteServer {
}
- private static class requestImageReplication_resultTupleSchemeFactory implements SchemeFactory {
+ private static class requestImageReplication_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public requestImageReplication_resultTupleScheme getScheme() {
return new requestImageReplication_resultTupleScheme();
}
}
- private static class requestImageReplication_resultTupleScheme extends TupleScheme<requestImageReplication_result> {
+ private static class requestImageReplication_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<requestImageReplication_result> {
@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 +43649,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,32 +43673,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class publishImageVersion_args implements org.apache.thrift.TBase<publishImageVersion_args, publishImageVersion_args._Fields>, java.io.Serializable, Cloneable, Comparable<publishImageVersion_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("publishImageVersion_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -41364,6 +43707,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,43 +43725,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +43772,8 @@ public class SatelliteServer {
}
public publishImageVersion_args(
- String userToken,
- String imageVersionId)
+ java.lang.String userToken,
+ java.lang.String imageVersionId)
{
this();
this.userToken = userToken;
@@ -41445,6 +43792,7 @@ public class SatelliteServer {
}
}
+ @Override
public publishImageVersion_args deepCopy() {
return new publishImageVersion_args(this);
}
@@ -41455,11 +43803,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 +43828,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 +43853,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +43868,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -41533,13 +43886,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -41548,13 +43902,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 +43915,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 +43941,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +43962,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 +43972,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 +43985,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +44038,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,14 +44046,16 @@ public class SatelliteServer {
}
}
- private static class publishImageVersion_argsStandardSchemeFactory implements SchemeFactory {
+ private static class publishImageVersion_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public publishImageVersion_argsStandardScheme getScheme() {
return new publishImageVersion_argsStandardScheme();
}
}
- private static class publishImageVersion_argsStandardScheme extends StandardScheme<publishImageVersion_args> {
+ private static class publishImageVersion_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<publishImageVersion_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, publishImageVersion_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -41735,6 +44093,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, publishImageVersion_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -41755,18 +44114,19 @@ public class SatelliteServer {
}
- private static class publishImageVersion_argsTupleSchemeFactory implements SchemeFactory {
+ private static class publishImageVersion_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public publishImageVersion_argsTupleScheme getScheme() {
return new publishImageVersion_argsTupleScheme();
}
}
- private static class publishImageVersion_argsTupleScheme extends TupleScheme<publishImageVersion_args> {
+ private static class publishImageVersion_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<publishImageVersion_args> {
@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 +44144,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,8 +44157,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class publishImageVersion_result implements org.apache.thrift.TBase<publishImageVersion_result, publishImageVersion_result._Fields>, java.io.Serializable, Cloneable, Comparable<publishImageVersion_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("publishImageVersion_result");
@@ -41808,17 +44172,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +44189,10 @@ public class SatelliteServer {
SERVER_ERROR((short)3, "serverError"),
TRE((short)4, "tre");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -41839,6 +44200,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,49 +44224,52 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +44277,7 @@ public class SatelliteServer {
}
public publishImageVersion_result(
- String success,
+ java.lang.String success,
TAuthorizationException authError,
TNotFoundException notFound,
TInvocationException serverError,
@@ -41947,6 +44312,7 @@ public class SatelliteServer {
}
}
+ @Override
public publishImageVersion_result deepCopy() {
return new publishImageVersion_result(this);
}
@@ -41960,11 +44326,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 +44351,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 +44376,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 +44401,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 +44426,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 +44451,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +44497,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -42143,13 +44517,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -42164,13 +44539,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 +44552,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 +44605,29 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +44638,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 +44648,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 +44658,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 +44668,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 +44678,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 +44691,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +44767,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,14 +44775,16 @@ public class SatelliteServer {
}
}
- private static class publishImageVersion_resultStandardSchemeFactory implements SchemeFactory {
+ private static class publishImageVersion_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public publishImageVersion_resultStandardScheme getScheme() {
return new publishImageVersion_resultStandardScheme();
}
}
- private static class publishImageVersion_resultStandardScheme extends StandardScheme<publishImageVersion_result> {
+ private static class publishImageVersion_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<publishImageVersion_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, publishImageVersion_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -42475,6 +44850,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, publishImageVersion_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -42510,18 +44886,19 @@ public class SatelliteServer {
}
- private static class publishImageVersion_resultTupleSchemeFactory implements SchemeFactory {
+ private static class publishImageVersion_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public publishImageVersion_resultTupleScheme getScheme() {
return new publishImageVersion_resultTupleScheme();
}
}
- private static class publishImageVersion_resultTupleScheme extends TupleScheme<publishImageVersion_result> {
+ private static class publishImageVersion_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<publishImageVersion_result> {
@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 +44934,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,32 +44963,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class createLecture_args implements org.apache.thrift.TBase<createLecture_args, createLecture_args._Fields>, java.io.Serializable, Cloneable, Comparable<createLecture_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createLecture_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField LECTURE_FIELD_DESC = new org.apache.thrift.protocol.TField("lecture", org.apache.thrift.protocol.TType.STRUCT, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -42619,6 +44997,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,43 +45015,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +45062,7 @@ public class SatelliteServer {
}
public createLecture_args(
- String userToken,
+ java.lang.String userToken,
LectureWrite lecture)
{
this();
@@ -42700,6 +45082,7 @@ public class SatelliteServer {
}
}
+ @Override
public createLecture_args deepCopy() {
return new createLecture_args(this);
}
@@ -42710,11 +45093,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 +45118,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 +45143,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +45165,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -42788,13 +45176,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -42803,13 +45192,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 +45205,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 +45231,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +45252,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 +45262,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 +45275,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +45331,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,14 +45339,16 @@ public class SatelliteServer {
}
}
- private static class createLecture_argsStandardSchemeFactory implements SchemeFactory {
+ private static class createLecture_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public createLecture_argsStandardScheme getScheme() {
return new createLecture_argsStandardScheme();
}
}
- private static class createLecture_argsStandardScheme extends StandardScheme<createLecture_args> {
+ private static class createLecture_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<createLecture_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, createLecture_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -42994,6 +45387,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, createLecture_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -43014,18 +45408,19 @@ public class SatelliteServer {
}
- private static class createLecture_argsTupleSchemeFactory implements SchemeFactory {
+ private static class createLecture_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public createLecture_argsTupleScheme getScheme() {
return new createLecture_argsTupleScheme();
}
}
- private static class createLecture_argsTupleScheme extends TupleScheme<createLecture_args> {
+ private static class createLecture_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<createLecture_args> {
@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 +45438,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,8 +45452,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class createLecture_result implements org.apache.thrift.TBase<createLecture_result, createLecture_result._Fields>, java.io.Serializable, Cloneable, Comparable<createLecture_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createLecture_result");
@@ -43068,17 +45467,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +45484,10 @@ public class SatelliteServer {
DATE_ERROR((short)3, "dateError"),
NOT_FOUND((short)4, "notFound");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -43099,6 +45495,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,49 +45519,52 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +45572,7 @@ public class SatelliteServer {
}
public createLecture_result(
- String success,
+ java.lang.String success,
TAuthorizationException authError,
TInvocationException serverError,
TInvalidDateParam dateError,
@@ -43207,6 +45607,7 @@ public class SatelliteServer {
}
}
+ @Override
public createLecture_result deepCopy() {
return new createLecture_result(this);
}
@@ -43220,11 +45621,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 +45646,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 +45671,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 +45696,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 +45721,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 +45746,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +45792,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -43403,13 +45812,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -43424,13 +45834,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 +45847,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 +45900,29 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +45933,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 +45943,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 +45953,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 +45963,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 +45973,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 +45986,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +46062,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,14 +46070,16 @@ public class SatelliteServer {
}
}
- private static class createLecture_resultStandardSchemeFactory implements SchemeFactory {
+ private static class createLecture_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public createLecture_resultStandardScheme getScheme() {
return new createLecture_resultStandardScheme();
}
}
- private static class createLecture_resultStandardScheme extends StandardScheme<createLecture_result> {
+ private static class createLecture_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<createLecture_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, createLecture_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -43735,6 +46145,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, createLecture_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -43770,18 +46181,19 @@ public class SatelliteServer {
}
- private static class createLecture_resultTupleSchemeFactory implements SchemeFactory {
+ private static class createLecture_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public createLecture_resultTupleScheme getScheme() {
return new createLecture_resultTupleScheme();
}
}
- private static class createLecture_resultTupleScheme extends TupleScheme<createLecture_result> {
+ private static class createLecture_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<createLecture_result> {
@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 +46229,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,8 +46258,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class updateLecture_args implements org.apache.thrift.TBase<updateLecture_args, updateLecture_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateLecture_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLecture_args");
@@ -43855,15 +46271,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +46284,10 @@ public class SatelliteServer {
LECTURE_ID((short)2, "lectureId"),
LECTURE((short)3, "lecture");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -43882,6 +46295,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,45 +46315,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +46364,8 @@ public class SatelliteServer {
}
public updateLecture_args(
- String userToken,
- String lectureId,
+ java.lang.String userToken,
+ java.lang.String lectureId,
LectureWrite lecture)
{
this();
@@ -43972,6 +46389,7 @@ public class SatelliteServer {
}
}
+ @Override
public updateLecture_args deepCopy() {
return new updateLecture_args(this);
}
@@ -43983,11 +46401,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 +46426,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 +46451,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 +46476,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +46491,7 @@ public class SatelliteServer {
if (value == null) {
unsetLectureId();
} else {
- setLectureId((String)value);
+ setLectureId((java.lang.String)value);
}
break;
@@ -44084,7 +46506,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -44096,13 +46520,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -44113,13 +46538,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 +46551,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 +46586,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +46611,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 +46621,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 +46631,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 +46644,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +46708,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,14 +46716,16 @@ public class SatelliteServer {
}
}
- private static class updateLecture_argsStandardSchemeFactory implements SchemeFactory {
+ private static class updateLecture_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateLecture_argsStandardScheme getScheme() {
return new updateLecture_argsStandardScheme();
}
}
- private static class updateLecture_argsStandardScheme extends StandardScheme<updateLecture_args> {
+ private static class updateLecture_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<updateLecture_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecture_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -44344,6 +46772,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecture_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -44369,18 +46798,19 @@ public class SatelliteServer {
}
- private static class updateLecture_argsTupleSchemeFactory implements SchemeFactory {
+ private static class updateLecture_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateLecture_argsTupleScheme getScheme() {
return new updateLecture_argsTupleScheme();
}
}
- private static class updateLecture_argsTupleScheme extends TupleScheme<updateLecture_args> {
+ private static class updateLecture_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<updateLecture_args> {
@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 +46834,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,8 +46852,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class updateLecture_result implements org.apache.thrift.TBase<updateLecture_result, updateLecture_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateLecture_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLecture_result");
@@ -44432,16 +46866,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +46881,10 @@ public class SatelliteServer {
SERVER_ERROR((short)3, "serverError"),
DATE_ERROR((short)4, "dateError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -44461,6 +46892,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,47 +46914,50 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -44560,6 +46995,7 @@ public class SatelliteServer {
}
}
+ @Override
public updateLecture_result deepCopy() {
return new updateLecture_result(this);
}
@@ -44572,11 +47008,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 +47033,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 +47058,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 +47083,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 +47108,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case AUTH_ERROR:
if (value == null) {
@@ -44705,7 +47146,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case AUTH_ERROR:
return getAuthError();
@@ -44720,13 +47163,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -44739,13 +47183,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 +47196,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 +47240,25 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +47269,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 +47279,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 +47289,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 +47299,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 +47312,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +47380,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,14 +47388,16 @@ public class SatelliteServer {
}
}
- private static class updateLecture_resultStandardSchemeFactory implements SchemeFactory {
+ private static class updateLecture_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateLecture_resultStandardScheme getScheme() {
return new updateLecture_resultStandardScheme();
}
}
- private static class updateLecture_resultStandardScheme extends StandardScheme<updateLecture_result> {
+ private static class updateLecture_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<updateLecture_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecture_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -45010,6 +47455,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecture_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -45040,18 +47486,19 @@ public class SatelliteServer {
}
- private static class updateLecture_resultTupleSchemeFactory implements SchemeFactory {
+ private static class updateLecture_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public updateLecture_resultTupleScheme getScheme() {
return new updateLecture_resultTupleScheme();
}
}
- private static class updateLecture_resultTupleScheme extends TupleScheme<updateLecture_result> {
+ private static class updateLecture_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<updateLecture_result> {
@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 +47528,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,21 +47553,22 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getLectureList_args implements org.apache.thrift.TBase<getLectureList_args, getLectureList_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureList_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureList_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField PAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("page", org.apache.thrift.protocol.TType.I32, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +47576,10 @@ public class SatelliteServer {
USER_TOKEN((short)1, "userToken"),
PAGE((short)2, "page");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -45139,6 +47587,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,30 +47605,33 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -45187,14 +47639,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 +47654,7 @@ public class SatelliteServer {
}
public getLectureList_args(
- String userToken,
+ java.lang.String userToken,
int page)
{
this();
@@ -45222,6 +47674,7 @@ public class SatelliteServer {
this.page = other.page;
}
+ @Override
public getLectureList_args deepCopy() {
return new getLectureList_args(this);
}
@@ -45233,11 +47686,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 +47722,26 @@ 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) {
+ @Override
+ 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 +47749,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -45310,13 +47767,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -45325,13 +47783,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 +47796,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 +47822,15 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +47841,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 +47851,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 +47864,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +47913,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,14 +47923,16 @@ public class SatelliteServer {
}
}
- private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getLectureList_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLectureList_argsStandardScheme getScheme() {
return new getLectureList_argsStandardScheme();
}
}
- private static class getLectureList_argsStandardScheme extends StandardScheme<getLectureList_args> {
+ private static class getLectureList_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getLectureList_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -45510,6 +47970,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -45528,18 +47989,19 @@ public class SatelliteServer {
}
- private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getLectureList_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLectureList_argsTupleScheme getScheme() {
return new getLectureList_argsTupleScheme();
}
}
- private static class getLectureList_argsTupleScheme extends TupleScheme<getLectureList_args> {
+ private static class getLectureList_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getLectureList_args> {
@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 +48019,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,8 +48032,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getLectureList_result implements org.apache.thrift.TBase<getLectureList_result, getLectureList_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureList_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureList_result");
@@ -45579,15 +48045,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<LectureSummary> success; // required
- public TAuthorizationException authError; // required
- public TInvocationException serverError; // required
+ public @org.apache.thrift.annotation.Nullable java.util.List<LectureSummary> 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 +48058,10 @@ public class SatelliteServer {
AUTH_ERROR((short)1, "authError"),
SERVER_ERROR((short)2, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -45606,6 +48069,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,46 +48089,49 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +48139,7 @@ public class SatelliteServer {
}
public getLectureList_result(
- List<LectureSummary> success,
+ java.util.List<LectureSummary> success,
TAuthorizationException authError,
TInvocationException serverError)
{
@@ -45687,7 +48154,7 @@ public class SatelliteServer {
*/
public getLectureList_result(getLectureList_result other) {
if (other.isSetSuccess()) {
- List<LectureSummary> __this__success = new ArrayList<LectureSummary>(other.success.size());
+ java.util.List<LectureSummary> __this__success = new java.util.ArrayList<LectureSummary>(other.success.size());
for (LectureSummary other_element : other.success) {
__this__success.add(new LectureSummary(other_element));
}
@@ -45701,6 +48168,7 @@ public class SatelliteServer {
}
}
+ @Override
public getLectureList_result deepCopy() {
return new getLectureList_result(this);
}
@@ -45716,22 +48184,24 @@ public class SatelliteServer {
return (this.success == null) ? 0 : this.success.size();
}
+ @org.apache.thrift.annotation.Nullable
public java.util.Iterator<LectureSummary> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(LectureSummary elem) {
if (this.success == null) {
- this.success = new ArrayList<LectureSummary>();
+ this.success = new java.util.ArrayList<LectureSummary>();
}
this.success.add(elem);
}
- public List<LectureSummary> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.List<LectureSummary> getSuccess() {
return this.success;
}
- public getLectureList_result setSuccess(List<LectureSummary> success) {
+ public getLectureList_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.List<LectureSummary> success) {
this.success = success;
return this;
}
@@ -45751,11 +48221,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 +48246,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 +48271,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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<LectureSummary>)value);
+ setSuccess((java.util.List<LectureSummary>)value);
}
break;
@@ -45828,7 +48301,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -45840,13 +48315,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -45857,13 +48333,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 +48346,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 +48381,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +48406,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 +48416,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 +48426,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 +48439,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +48499,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,14 +48507,16 @@ public class SatelliteServer {
}
}
- private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getLectureList_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLectureList_resultStandardScheme getScheme() {
return new getLectureList_resultStandardScheme();
}
}
- private static class getLectureList_resultStandardScheme extends StandardScheme<getLectureList_result> {
+ private static class getLectureList_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getLectureList_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -46052,14 +48530,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<LectureSummary>(_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<LectureSummary>(_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();
}
@@ -46097,6 +48575,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -46105,9 +48584,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 +48608,19 @@ public class SatelliteServer {
}
- private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getLectureList_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLectureList_resultTupleScheme getScheme() {
return new getLectureList_resultTupleScheme();
}
}
- private static class getLectureList_resultTupleScheme extends TupleScheme<getLectureList_result> {
+ private static class getLectureList_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getLectureList_result> {
@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 +48634,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 +48650,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<LectureSummary>(_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<LectureSummary>(_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,32 +48679,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getLectureDetails_args implements org.apache.thrift.TBase<getLectureDetails_args, getLectureDetails_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureDetails_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureDetails_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -46232,6 +48713,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,43 +48731,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +48778,8 @@ public class SatelliteServer {
}
public getLectureDetails_args(
- String userToken,
- String lectureId)
+ java.lang.String userToken,
+ java.lang.String lectureId)
{
this();
this.userToken = userToken;
@@ -46313,6 +48798,7 @@ public class SatelliteServer {
}
}
+ @Override
public getLectureDetails_args deepCopy() {
return new getLectureDetails_args(this);
}
@@ -46323,11 +48809,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 +48834,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 +48859,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +48874,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -46401,13 +48892,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -46416,13 +48908,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 +48921,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 +48947,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +48968,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 +48978,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 +48991,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +49044,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,14 +49052,16 @@ public class SatelliteServer {
}
}
- private static class getLectureDetails_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getLectureDetails_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLectureDetails_argsStandardScheme getScheme() {
return new getLectureDetails_argsStandardScheme();
}
}
- private static class getLectureDetails_argsStandardScheme extends StandardScheme<getLectureDetails_args> {
+ private static class getLectureDetails_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getLectureDetails_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureDetails_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -46603,6 +49099,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureDetails_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -46623,18 +49120,19 @@ public class SatelliteServer {
}
- private static class getLectureDetails_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getLectureDetails_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLectureDetails_argsTupleScheme getScheme() {
return new getLectureDetails_argsTupleScheme();
}
}
- private static class getLectureDetails_argsTupleScheme extends TupleScheme<getLectureDetails_args> {
+ private static class getLectureDetails_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getLectureDetails_args> {
@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 +49150,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,8 +49163,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getLectureDetails_result implements org.apache.thrift.TBase<getLectureDetails_result, getLectureDetails_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLectureDetails_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureDetails_result");
@@ -46675,16 +49177,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +49192,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -46704,6 +49203,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,47 +49225,50 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -46803,6 +49306,7 @@ public class SatelliteServer {
}
}
+ @Override
public getLectureDetails_result deepCopy() {
return new getLectureDetails_result(this);
}
@@ -46815,11 +49319,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 +49344,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 +49369,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 +49394,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 +49419,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -46948,7 +49457,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -46963,13 +49474,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -46982,13 +49494,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 +49507,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 +49551,25 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +49580,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 +49590,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 +49600,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 +49610,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 +49623,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +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) {
@@ -47191,14 +49702,16 @@ public class SatelliteServer {
}
}
- private static class getLectureDetails_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getLectureDetails_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLectureDetails_resultStandardScheme getScheme() {
return new getLectureDetails_resultStandardScheme();
}
}
- private static class getLectureDetails_resultStandardScheme extends StandardScheme<getLectureDetails_result> {
+ private static class getLectureDetails_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getLectureDetails_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureDetails_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -47256,6 +49769,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureDetails_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -47286,18 +49800,19 @@ public class SatelliteServer {
}
- private static class getLectureDetails_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getLectureDetails_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLectureDetails_resultTupleScheme getScheme() {
return new getLectureDetails_resultTupleScheme();
}
}
- private static class getLectureDetails_resultTupleScheme extends TupleScheme<getLectureDetails_result> {
+ private static class getLectureDetails_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getLectureDetails_result> {
@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 +49842,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,32 +49867,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class deleteLecture_args implements org.apache.thrift.TBase<deleteLecture_args, deleteLecture_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteLecture_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteLecture_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -47385,6 +49901,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,43 +49919,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +49966,8 @@ public class SatelliteServer {
}
public deleteLecture_args(
- String userToken,
- String lectureId)
+ java.lang.String userToken,
+ java.lang.String lectureId)
{
this();
this.userToken = userToken;
@@ -47466,6 +49986,7 @@ public class SatelliteServer {
}
}
+ @Override
public deleteLecture_args deepCopy() {
return new deleteLecture_args(this);
}
@@ -47476,11 +49997,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 +50022,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 +50047,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +50062,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -47554,13 +50080,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -47569,13 +50096,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 +50109,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 +50135,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +50156,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 +50166,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 +50179,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +50232,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,14 +50240,16 @@ public class SatelliteServer {
}
}
- private static class deleteLecture_argsStandardSchemeFactory implements SchemeFactory {
+ private static class deleteLecture_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public deleteLecture_argsStandardScheme getScheme() {
return new deleteLecture_argsStandardScheme();
}
}
- private static class deleteLecture_argsStandardScheme extends StandardScheme<deleteLecture_args> {
+ private static class deleteLecture_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<deleteLecture_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -47756,6 +50287,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, deleteLecture_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -47776,18 +50308,19 @@ public class SatelliteServer {
}
- private static class deleteLecture_argsTupleSchemeFactory implements SchemeFactory {
+ private static class deleteLecture_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public deleteLecture_argsTupleScheme getScheme() {
return new deleteLecture_argsTupleScheme();
}
}
- private static class deleteLecture_argsTupleScheme extends TupleScheme<deleteLecture_args> {
+ private static class deleteLecture_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<deleteLecture_args> {
@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 +50338,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,8 +50351,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class deleteLecture_result implements org.apache.thrift.TBase<deleteLecture_result, deleteLecture_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteLecture_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteLecture_result");
@@ -47827,15 +50364,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +50377,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -47854,6 +50388,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,45 +50408,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -47944,6 +50482,7 @@ public class SatelliteServer {
}
}
+ @Override
public deleteLecture_result deepCopy() {
return new deleteLecture_result(this);
}
@@ -47955,11 +50494,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 +50519,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 +50544,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 +50569,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case AUTH_ERROR:
if (value == null) {
@@ -48056,7 +50599,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case AUTH_ERROR:
return getAuthError();
@@ -48068,13 +50613,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -48085,13 +50631,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 +50644,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 +50679,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +50704,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 +50714,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 +50724,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 +50737,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +50797,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,14 +50805,16 @@ public class SatelliteServer {
}
}
- private static class deleteLecture_resultStandardSchemeFactory implements SchemeFactory {
+ private static class deleteLecture_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public deleteLecture_resultStandardScheme getScheme() {
return new deleteLecture_resultStandardScheme();
}
}
- private static class deleteLecture_resultStandardScheme extends StandardScheme<deleteLecture_result> {
+ private static class deleteLecture_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<deleteLecture_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -48315,6 +50863,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, deleteLecture_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -48340,18 +50889,19 @@ public class SatelliteServer {
}
- private static class deleteLecture_resultTupleSchemeFactory implements SchemeFactory {
+ private static class deleteLecture_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public deleteLecture_resultTupleScheme getScheme() {
return new deleteLecture_resultTupleScheme();
}
}
- private static class deleteLecture_resultTupleScheme extends TupleScheme<deleteLecture_result> {
+ private static class deleteLecture_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<deleteLecture_result> {
@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 +50925,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,8 +50945,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class writeLecturePermissions_args implements org.apache.thrift.TBase<writeLecturePermissions_args, writeLecturePermissions_args._Fields>, java.io.Serializable, Cloneable, Comparable<writeLecturePermissions_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLecturePermissions_args");
@@ -48404,15 +50958,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String,LecturePermissions> 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<java.lang.String,LecturePermissions> 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 +50971,10 @@ public class SatelliteServer {
LECTURE_ID((short)2, "lectureId"),
PERMISSIONS((short)3, "permissions");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -48431,6 +50982,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,38 +51002,41 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +51045,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 +51053,9 @@ public class SatelliteServer {
}
public writeLecturePermissions_args(
- String userToken,
- String lectureId,
- Map<String,LecturePermissions> permissions)
+ java.lang.String userToken,
+ java.lang.String lectureId,
+ java.util.Map<java.lang.String,LecturePermissions> permissions)
{
this();
this.userToken = userToken;
@@ -48519,13 +51074,13 @@ public class SatelliteServer {
this.lectureId = other.lectureId;
}
if (other.isSetPermissions()) {
- Map<String,LecturePermissions> __this__permissions = new HashMap<String,LecturePermissions>(other.permissions.size());
- for (Map.Entry<String, LecturePermissions> other_element : other.permissions.entrySet()) {
+ java.util.Map<java.lang.String,LecturePermissions> __this__permissions = new java.util.HashMap<java.lang.String,LecturePermissions>(other.permissions.size());
+ for (java.util.Map.Entry<java.lang.String, LecturePermissions> 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);
@@ -48535,6 +51090,7 @@ public class SatelliteServer {
}
}
+ @Override
public writeLecturePermissions_args deepCopy() {
return new writeLecturePermissions_args(this);
}
@@ -48546,11 +51102,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 +51127,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 +51156,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<String,LecturePermissions>();
+ this.permissions = new java.util.HashMap<java.lang.String,LecturePermissions>();
}
this.permissions.put(key, val);
}
- public Map<String,LecturePermissions> getPermissions() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.Map<java.lang.String,LecturePermissions> getPermissions() {
return this.permissions;
}
- public writeLecturePermissions_args setPermissions(Map<String,LecturePermissions> permissions) {
+ public writeLecturePermissions_args setPermissions(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.String,LecturePermissions> permissions) {
this.permissions = permissions;
return this;
}
@@ -48629,13 +51188,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +51203,7 @@ public class SatelliteServer {
if (value == null) {
unsetLectureId();
} else {
- setLectureId((String)value);
+ setLectureId((java.lang.String)value);
}
break;
@@ -48651,14 +51211,16 @@ public class SatelliteServer {
if (value == null) {
unsetPermissions();
} else {
- setPermissions((Map<String,LecturePermissions>)value);
+ setPermissions((java.util.Map<java.lang.String,LecturePermissions>)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -48670,13 +51232,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -48687,13 +51250,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 +51263,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 +51298,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +51323,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 +51333,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 +51343,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 +51356,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +51417,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,14 +51425,16 @@ public class SatelliteServer {
}
}
- private static class writeLecturePermissions_argsStandardSchemeFactory implements SchemeFactory {
+ private static class writeLecturePermissions_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public writeLecturePermissions_argsStandardScheme getScheme() {
return new writeLecturePermissions_argsStandardScheme();
}
}
- private static class writeLecturePermissions_argsStandardScheme extends StandardScheme<writeLecturePermissions_args> {
+ private static class writeLecturePermissions_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<writeLecturePermissions_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturePermissions_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -48898,16 +51464,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<String,LecturePermissions>(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<java.lang.String,LecturePermissions>(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();
}
@@ -48927,6 +51493,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, writeLecturePermissions_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -48945,10 +51512,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<String, LecturePermissions> _iter322 : struct.permissions.entrySet())
+ for (java.util.Map.Entry<java.lang.String, LecturePermissions> _iter402 : struct.permissions.entrySet())
{
- oprot.writeString(_iter322.getKey());
- _iter322.getValue().write(oprot);
+ oprot.writeString(_iter402.getKey());
+ _iter402.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -48960,18 +51527,19 @@ public class SatelliteServer {
}
- private static class writeLecturePermissions_argsTupleSchemeFactory implements SchemeFactory {
+ private static class writeLecturePermissions_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public writeLecturePermissions_argsTupleScheme getScheme() {
return new writeLecturePermissions_argsTupleScheme();
}
}
- private static class writeLecturePermissions_argsTupleScheme extends TupleScheme<writeLecturePermissions_args> {
+ private static class writeLecturePermissions_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<writeLecturePermissions_args> {
@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 +51559,10 @@ public class SatelliteServer {
if (struct.isSetPermissions()) {
{
oprot.writeI32(struct.permissions.size());
- for (Map.Entry<String, LecturePermissions> _iter323 : struct.permissions.entrySet())
+ for (java.util.Map.Entry<java.lang.String, LecturePermissions> _iter403 : struct.permissions.entrySet())
{
- oprot.writeString(_iter323.getKey());
- _iter323.getValue().write(oprot);
+ oprot.writeString(_iter403.getKey());
+ _iter403.getValue().write(oprot);
}
}
}
@@ -49002,8 +51570,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 +51582,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<String,LecturePermissions>(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<java.lang.String,LecturePermissions>(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,8 +51599,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class writeLecturePermissions_result implements org.apache.thrift.TBase<writeLecturePermissions_result, writeLecturePermissions_result._Fields>, java.io.Serializable, Cloneable, Comparable<writeLecturePermissions_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeLecturePermissions_result");
@@ -49040,15 +51612,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +51625,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -49067,6 +51636,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,45 +51656,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -49157,6 +51730,7 @@ public class SatelliteServer {
}
}
+ @Override
public writeLecturePermissions_result deepCopy() {
return new writeLecturePermissions_result(this);
}
@@ -49168,11 +51742,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 +51767,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 +51792,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 +51817,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case AUTH_ERROR:
if (value == null) {
@@ -49269,7 +51847,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case AUTH_ERROR:
return getAuthError();
@@ -49281,13 +51861,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -49298,13 +51879,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 +51892,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 +51927,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +51952,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 +51962,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 +51972,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 +51985,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +52045,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,14 +52053,16 @@ public class SatelliteServer {
}
}
- private static class writeLecturePermissions_resultStandardSchemeFactory implements SchemeFactory {
+ private static class writeLecturePermissions_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public writeLecturePermissions_resultStandardScheme getScheme() {
return new writeLecturePermissions_resultStandardScheme();
}
}
- private static class writeLecturePermissions_resultStandardScheme extends StandardScheme<writeLecturePermissions_result> {
+ private static class writeLecturePermissions_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<writeLecturePermissions_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturePermissions_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -49528,6 +52111,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, writeLecturePermissions_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -49553,18 +52137,19 @@ public class SatelliteServer {
}
- private static class writeLecturePermissions_resultTupleSchemeFactory implements SchemeFactory {
+ private static class writeLecturePermissions_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public writeLecturePermissions_resultTupleScheme getScheme() {
return new writeLecturePermissions_resultTupleScheme();
}
}
- private static class writeLecturePermissions_resultTupleScheme extends TupleScheme<writeLecturePermissions_result> {
+ private static class writeLecturePermissions_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<writeLecturePermissions_result> {
@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 +52173,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,32 +52193,33 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getLecturePermissions_args implements org.apache.thrift.TBase<getLecturePermissions_args, getLecturePermissions_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLecturePermissions_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLecturePermissions_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -49641,6 +52227,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,43 +52245,46 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +52292,8 @@ public class SatelliteServer {
}
public getLecturePermissions_args(
- String userToken,
- String lectureId)
+ java.lang.String userToken,
+ java.lang.String lectureId)
{
this();
this.userToken = userToken;
@@ -49722,6 +52312,7 @@ public class SatelliteServer {
}
}
+ @Override
public getLecturePermissions_args deepCopy() {
return new getLecturePermissions_args(this);
}
@@ -49732,11 +52323,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 +52348,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 +52373,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +52388,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -49810,13 +52406,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -49825,13 +52422,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 +52435,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 +52461,17 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +52482,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 +52492,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 +52505,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +52558,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,14 +52566,16 @@ public class SatelliteServer {
}
}
- private static class getLecturePermissions_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getLecturePermissions_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLecturePermissions_argsStandardScheme getScheme() {
return new getLecturePermissions_argsStandardScheme();
}
}
- private static class getLecturePermissions_argsStandardScheme extends StandardScheme<getLecturePermissions_args> {
+ private static class getLecturePermissions_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getLecturePermissions_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getLecturePermissions_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -50012,6 +52613,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getLecturePermissions_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -50032,18 +52634,19 @@ public class SatelliteServer {
}
- private static class getLecturePermissions_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getLecturePermissions_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLecturePermissions_argsTupleScheme getScheme() {
return new getLecturePermissions_argsTupleScheme();
}
}
- private static class getLecturePermissions_argsTupleScheme extends TupleScheme<getLecturePermissions_args> {
+ private static class getLecturePermissions_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getLecturePermissions_args> {
@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 +52664,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,8 +52677,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getLecturePermissions_result implements org.apache.thrift.TBase<getLecturePermissions_result, getLecturePermissions_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLecturePermissions_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLecturePermissions_result");
@@ -50084,16 +52691,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String,LecturePermissions> success; // required
- public TAuthorizationException authError; // required
- public TNotFoundException notFound; // required
- public TInvocationException serverError; // required
+ public @org.apache.thrift.annotation.Nullable java.util.Map<java.lang.String,LecturePermissions> 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 +52706,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -50113,6 +52717,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,49 +52739,52 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +52792,7 @@ public class SatelliteServer {
}
public getLecturePermissions_result(
- Map<String,LecturePermissions> success,
+ java.util.Map<java.lang.String,LecturePermissions> success,
TAuthorizationException authError,
TNotFoundException notFound,
TInvocationException serverError)
@@ -50201,13 +52809,13 @@ public class SatelliteServer {
*/
public getLecturePermissions_result(getLecturePermissions_result other) {
if (other.isSetSuccess()) {
- Map<String,LecturePermissions> __this__success = new HashMap<String,LecturePermissions>(other.success.size());
- for (Map.Entry<String, LecturePermissions> other_element : other.success.entrySet()) {
+ java.util.Map<java.lang.String,LecturePermissions> __this__success = new java.util.HashMap<java.lang.String,LecturePermissions>(other.success.size());
+ for (java.util.Map.Entry<java.lang.String, LecturePermissions> 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);
@@ -50226,6 +52834,7 @@ public class SatelliteServer {
}
}
+ @Override
public getLecturePermissions_result deepCopy() {
return new getLecturePermissions_result(this);
}
@@ -50242,18 +52851,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<String,LecturePermissions>();
+ this.success = new java.util.HashMap<java.lang.String,LecturePermissions>();
}
this.success.put(key, val);
}
- public Map<String,LecturePermissions> getSuccess() {
+ @org.apache.thrift.annotation.Nullable
+ public java.util.Map<java.lang.String,LecturePermissions> getSuccess() {
return this.success;
}
- public getLecturePermissions_result setSuccess(Map<String,LecturePermissions> success) {
+ public getLecturePermissions_result setSuccess(@org.apache.thrift.annotation.Nullable java.util.Map<java.lang.String,LecturePermissions> success) {
this.success = success;
return this;
}
@@ -50273,11 +52883,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 +52908,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 +52933,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 +52958,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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<String,LecturePermissions>)value);
+ setSuccess((java.util.Map<java.lang.String,LecturePermissions>)value);
}
break;
@@ -50382,7 +52996,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -50397,13 +53013,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -50416,13 +53033,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 +53046,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 +53090,25 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +53119,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 +53129,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 +53139,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 +53149,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 +53162,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +53230,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,14 +53238,16 @@ public class SatelliteServer {
}
}
- private static class getLecturePermissions_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getLecturePermissions_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLecturePermissions_resultStandardScheme getScheme() {
return new getLecturePermissions_resultStandardScheme();
}
}
- private static class getLecturePermissions_resultStandardScheme extends StandardScheme<getLecturePermissions_result> {
+ private static class getLecturePermissions_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getLecturePermissions_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getLecturePermissions_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -50643,16 +53261,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<String,LecturePermissions>(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<java.lang.String,LecturePermissions>(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();
}
@@ -50699,6 +53317,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getLecturePermissions_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -50707,10 +53326,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<String, LecturePermissions> _iter332 : struct.success.entrySet())
+ for (java.util.Map.Entry<java.lang.String, LecturePermissions> _iter412 : struct.success.entrySet())
{
- oprot.writeString(_iter332.getKey());
- _iter332.getValue().write(oprot);
+ oprot.writeString(_iter412.getKey());
+ _iter412.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -50737,18 +53356,19 @@ public class SatelliteServer {
}
- private static class getLecturePermissions_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getLecturePermissions_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getLecturePermissions_resultTupleScheme getScheme() {
return new getLecturePermissions_resultTupleScheme();
}
}
- private static class getLecturePermissions_resultTupleScheme extends TupleScheme<getLecturePermissions_result> {
+ private static class getLecturePermissions_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getLecturePermissions_result> {
@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 +53385,10 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Map.Entry<String, LecturePermissions> _iter333 : struct.success.entrySet())
+ for (java.util.Map.Entry<java.lang.String, LecturePermissions> _iter413 : struct.success.entrySet())
{
- oprot.writeString(_iter333.getKey());
- _iter333.getValue().write(oprot);
+ oprot.writeString(_iter413.getKey());
+ _iter413.getValue().write(oprot);
}
}
}
@@ -50785,20 +53405,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<String,LecturePermissions>(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<java.lang.String,LecturePermissions>(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,8 +53441,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class setLectureOwner_args implements org.apache.thrift.TBase<setLectureOwner_args, setLectureOwner_args._Fields>, java.io.Serializable, Cloneable, Comparable<setLectureOwner_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLectureOwner_args");
@@ -50830,15 +53454,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +53467,10 @@ public class SatelliteServer {
LECTURE_ID((short)2, "lectureId"),
NEW_OWNER_ID((short)3, "newOwnerId");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -50857,6 +53478,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,45 +53498,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +53547,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;
@@ -50947,6 +53572,7 @@ public class SatelliteServer {
}
}
+ @Override
public setLectureOwner_args deepCopy() {
return new setLectureOwner_args(this);
}
@@ -50958,11 +53584,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 +53609,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 +53634,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 +53659,14 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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 +53674,7 @@ public class SatelliteServer {
if (value == null) {
unsetLectureId();
} else {
- setLectureId((String)value);
+ setLectureId((java.lang.String)value);
}
break;
@@ -51052,14 +53682,16 @@ 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
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case USER_TOKEN:
return getUserToken();
@@ -51071,13 +53703,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -51088,13 +53721,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 +53734,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 +53769,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +53794,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 +53804,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 +53814,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 +53827,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +53888,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,14 +53896,16 @@ public class SatelliteServer {
}
}
- private static class setLectureOwner_argsStandardSchemeFactory implements SchemeFactory {
+ private static class setLectureOwner_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setLectureOwner_argsStandardScheme getScheme() {
return new setLectureOwner_argsStandardScheme();
}
}
- private static class setLectureOwner_argsStandardScheme extends StandardScheme<setLectureOwner_args> {
+ private static class setLectureOwner_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<setLectureOwner_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, setLectureOwner_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -51315,6 +53951,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, setLectureOwner_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -51340,18 +53977,19 @@ public class SatelliteServer {
}
- private static class setLectureOwner_argsTupleSchemeFactory implements SchemeFactory {
+ private static class setLectureOwner_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setLectureOwner_argsTupleScheme getScheme() {
return new setLectureOwner_argsTupleScheme();
}
}
- private static class setLectureOwner_argsTupleScheme extends TupleScheme<setLectureOwner_args> {
+ private static class setLectureOwner_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<setLectureOwner_args> {
@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 +54013,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,8 +54030,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class setLectureOwner_result implements org.apache.thrift.TBase<setLectureOwner_result, setLectureOwner_result._Fields>, java.io.Serializable, Cloneable, Comparable<setLectureOwner_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLectureOwner_result");
@@ -51401,15 +54043,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +54056,10 @@ public class SatelliteServer {
NOT_FOUND((short)2, "notFound"),
SERVER_ERROR((short)3, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -51428,6 +54067,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,45 +54087,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -51518,6 +54161,7 @@ public class SatelliteServer {
}
}
+ @Override
public setLectureOwner_result deepCopy() {
return new setLectureOwner_result(this);
}
@@ -51529,11 +54173,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 +54198,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 +54223,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 +54248,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case AUTH_ERROR:
if (value == null) {
@@ -51630,7 +54278,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case AUTH_ERROR:
return getAuthError();
@@ -51642,13 +54292,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -51659,13 +54310,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 +54323,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 +54358,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +54383,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 +54393,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 +54403,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 +54416,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +54476,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,14 +54484,16 @@ public class SatelliteServer {
}
}
- private static class setLectureOwner_resultStandardSchemeFactory implements SchemeFactory {
+ private static class setLectureOwner_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setLectureOwner_resultStandardScheme getScheme() {
return new setLectureOwner_resultStandardScheme();
}
}
- private static class setLectureOwner_resultStandardScheme extends StandardScheme<setLectureOwner_result> {
+ private static class setLectureOwner_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<setLectureOwner_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, setLectureOwner_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -51889,6 +54542,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, setLectureOwner_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -51914,18 +54568,19 @@ public class SatelliteServer {
}
- private static class setLectureOwner_resultTupleSchemeFactory implements SchemeFactory {
+ private static class setLectureOwner_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public setLectureOwner_resultTupleScheme getScheme() {
return new setLectureOwner_resultTupleScheme();
}
}
- private static class setLectureOwner_resultTupleScheme extends TupleScheme<setLectureOwner_result> {
+ private static class setLectureOwner_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<setLectureOwner_result> {
@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 +54604,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,29 +54624,30 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getPredefinedData_args implements org.apache.thrift.TBase<getPredefinedData_args, getPredefinedData_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPredefinedData_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPredefinedData_args");
private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -51999,6 +54655,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,41 +54671,44 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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 +54716,7 @@ public class SatelliteServer {
}
public getPredefinedData_args(
- String userToken)
+ java.lang.String userToken)
{
this();
this.userToken = userToken;
@@ -52071,6 +54731,7 @@ public class SatelliteServer {
}
}
+ @Override
public getPredefinedData_args deepCopy() {
return new getPredefinedData_args(this);
}
@@ -52080,11 +54741,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 +54766,47 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ 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
+ @Override
+ 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 */
+ @Override
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 +54815,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 +54832,13 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +54849,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 +54862,25 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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);
}
+ @Override
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 +54907,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,14 +54915,16 @@ public class SatelliteServer {
}
}
- private static class getPredefinedData_argsStandardSchemeFactory implements SchemeFactory {
+ private static class getPredefinedData_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getPredefinedData_argsStandardScheme getScheme() {
return new getPredefinedData_argsStandardScheme();
}
}
- private static class getPredefinedData_argsStandardScheme extends StandardScheme<getPredefinedData_args> {
+ private static class getPredefinedData_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getPredefinedData_args> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getPredefinedData_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -52283,6 +54954,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getPredefinedData_args struct) throws org.apache.thrift.TException {
struct.validate();
@@ -52298,18 +54970,19 @@ public class SatelliteServer {
}
- private static class getPredefinedData_argsTupleSchemeFactory implements SchemeFactory {
+ private static class getPredefinedData_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getPredefinedData_argsTupleScheme getScheme() {
return new getPredefinedData_argsTupleScheme();
}
}
- private static class getPredefinedData_argsTupleScheme extends TupleScheme<getPredefinedData_args> {
+ private static class getPredefinedData_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getPredefinedData_args> {
@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 +54994,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,8 +55003,12 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
+ @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public static class getPredefinedData_result implements org.apache.thrift.TBase<getPredefinedData_result, getPredefinedData_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPredefinedData_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPredefinedData_result");
@@ -52339,15 +55016,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<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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 +55029,10 @@ public class SatelliteServer {
AUTH_ERROR((short)1, "authError"),
SERVER_ERROR((short)2, "serverError");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -52366,6 +55040,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,45 +55060,48 @@ 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;
}
+ @Override
public short getThriftFieldId() {
return _thriftId;
}
- public String getFieldName() {
+ @Override
+ 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);
}
@@ -52456,6 +55134,7 @@ public class SatelliteServer {
}
}
+ @Override
public getPredefinedData_result deepCopy() {
return new getPredefinedData_result(this);
}
@@ -52467,11 +55146,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 +55171,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 +55196,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 +55221,8 @@ public class SatelliteServer {
}
}
- public void setFieldValue(_Fields field, Object value) {
+ @Override
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
@@ -52568,7 +55251,9 @@ public class SatelliteServer {
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ @Override
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
@@ -52580,13 +55265,14 @@ 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 */
+ @Override
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -52597,13 +55283,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 +55296,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 +55331,21 @@ public class SatelliteServer {
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
+ 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 +55356,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 +55366,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 +55376,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 +55389,24 @@ public class SatelliteServer {
return 0;
}
+ @org.apache.thrift.annotation.Nullable
+ @Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
+ @Override
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 +55452,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,14 +55460,16 @@ public class SatelliteServer {
}
}
- private static class getPredefinedData_resultStandardSchemeFactory implements SchemeFactory {
+ private static class getPredefinedData_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getPredefinedData_resultStandardScheme getScheme() {
return new getPredefinedData_resultStandardScheme();
}
}
- private static class getPredefinedData_resultStandardScheme extends StandardScheme<getPredefinedData_result> {
+ private static class getPredefinedData_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getPredefinedData_result> {
+ @Override
public void read(org.apache.thrift.protocol.TProtocol iprot, getPredefinedData_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
@@ -52830,6 +55518,7 @@ public class SatelliteServer {
struct.validate();
}
+ @Override
public void write(org.apache.thrift.protocol.TProtocol oprot, getPredefinedData_result struct) throws org.apache.thrift.TException {
struct.validate();
@@ -52855,18 +55544,19 @@ public class SatelliteServer {
}
- private static class getPredefinedData_resultTupleSchemeFactory implements SchemeFactory {
+ private static class getPredefinedData_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ @Override
public getPredefinedData_resultTupleScheme getScheme() {
return new getPredefinedData_resultTupleScheme();
}
}
- private static class getPredefinedData_resultTupleScheme extends TupleScheme<getPredefinedData_result> {
+ private static class getPredefinedData_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getPredefinedData_result> {
@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 +55580,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 +55600,9 @@ public class SatelliteServer {
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}
}