/** * Autogenerated by Thrift Compiler (0.9.3) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.cinchapi.concourse.server.management; 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", "unused"}) @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-11-21") public class ConcourseManagementService { /** * The interface definition for the Concourse Server Management API */ public interface Iface { /** * Return {@code AccessToken} if {@code username} and {@code password} is a * valid combination to login to the server for the purpose of performing a * managed operation. This method should only be used to authenticate a user * for the purpose of performing a single operation. * * @param username * @param password * @return {@link AccessToken} if the credentials are valid * * @param username * @param password */ public com.cinchapi.concourse.thrift.AccessToken login(ByteBuffer username, ByteBuffer password) throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException; /** * Terminiate the session. * @param creds * * @param creds */ public void logout(com.cinchapi.concourse.thrift.AccessToken creds) throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException; /** * Disable the user(i.e. the user cannot be authenticated for any purposes, * even with the correct password) * * @param username * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * * @param username * @param creds */ public void disableUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException; /** * Return a string that contains the dumps for all the storage units (i.e. * buffer, primary, secondary, search) in {@code environment} identified by * {@code id}. * * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param id * @param environment * @return the dump string * * @param id * @param environment * @param creds */ public String dump(String id, String environment, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException; /** * Enable the user(i.e. the user can be authenticated with the correct * password). * * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param username * * @param username * @param creds */ public void enableUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException; /** * Return a string that contains a list of the ids in the * {@code environment} for all the blocks that can be dumped using * {@link #dump(String, String)}. * * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param environment * @return the dump list * * @param environment * @param creds */ public String getDumpList(String environment, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException; /** * Grant access to the user identified by the combination of * {@code username} and {@code password}. * * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param username * @param password * * @param username * @param password * @param creds */ public void grant(ByteBuffer username, ByteBuffer password, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException; /** * Return {@code true} if the server can be accessed * by a user identified by {@code username}. * * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param username * @return true/false * * @param username * @param creds */ public boolean hasUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException; /** * Install the plugin bundle contained in the {@code file}. * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param bundle the path to the plugin bundle file * * @param file * @param creds */ public void installPluginBundle(String file, com.cinchapi.concourse.thrift.AccessToken creds) throws com.cinchapi.concourse.thrift.ManagementException, org.apache.thrift.TException; /** * Return the names of all the environments that exist within Concourse * Server. An environment is said to exist if at least one user has * established a connection to that environment. * * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected* * @return a string containing all of the environments * * @param token */ public String listAllEnvironments(com.cinchapi.concourse.thrift.AccessToken token) throws org.apache.thrift.TException; /** * Return a description of all the currently active user sessions within * Concourse Server. * * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @return a string containing all the user sessions * * @param creds */ public String listAllUserSessions(com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException; /** * List all of the plugins that are available. * * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @return a String containing a list of all the available plugins * * @param creds */ public String listPluginBundles(com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException; /** * Remove the user identified by {@code username}. * * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param username * * @param username * @param creds */ public void revoke(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException; /** * Uninstall the plugin bundled referred to as {@code name}. * * @param creds the {@link shared.AccessToken} that is used to authenticate * the user on behalf of whom the client is connected * @param bundle the name of the plugin bundle * * @param name * @param creds */ public void uninstallPluginBundle(String name, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException; } public interface AsyncIface { public void login(ByteBuffer username, ByteBuffer password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void logout(com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void disableUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void dump(String id, String environment, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void enableUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getDumpList(String environment, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void grant(ByteBuffer username, ByteBuffer password, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void hasUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void installPluginBundle(String file, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void listAllEnvironments(com.cinchapi.concourse.thrift.AccessToken token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void listAllUserSessions(com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void listPluginBundles(com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void revoke(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void uninstallPluginBundle(String name, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback 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() {} public Client getClient(org.apache.thrift.protocol.TProtocol prot) { return new Client(prot); } public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { return new Client(iprot, oprot); } } public Client(org.apache.thrift.protocol.TProtocol prot) { super(prot, prot); } public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { super(iprot, oprot); } public com.cinchapi.concourse.thrift.AccessToken login(ByteBuffer username, ByteBuffer password) throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { send_login(username, password); return recv_login(); } public void send_login(ByteBuffer username, ByteBuffer password) throws org.apache.thrift.TException { login_args args = new login_args(); args.setUsername(username); args.setPassword(password); sendBase("login", args); } public com.cinchapi.concourse.thrift.AccessToken recv_login() throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { login_result result = new login_result(); receiveBase(result, "login"); if (result.isSetSuccess()) { return result.success; } if (result.ex != null) { throw result.ex; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "login failed: unknown result"); } public void logout(com.cinchapi.concourse.thrift.AccessToken creds) throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { send_logout(creds); recv_logout(); } public void send_logout(com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { logout_args args = new logout_args(); args.setCreds(creds); sendBase("logout", args); } public void recv_logout() throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { logout_result result = new logout_result(); receiveBase(result, "logout"); if (result.ex != null) { throw result.ex; } return; } public void disableUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { send_disableUser(username, creds); recv_disableUser(); } public void send_disableUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { disableUser_args args = new disableUser_args(); args.setUsername(username); args.setCreds(creds); sendBase("disableUser", args); } public void recv_disableUser() throws org.apache.thrift.TException { disableUser_result result = new disableUser_result(); receiveBase(result, "disableUser"); return; } public String dump(String id, String environment, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { send_dump(id, environment, creds); return recv_dump(); } public void send_dump(String id, String environment, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { dump_args args = new dump_args(); args.setId(id); args.setEnvironment(environment); args.setCreds(creds); sendBase("dump", args); } public String recv_dump() throws org.apache.thrift.TException { dump_result result = new dump_result(); receiveBase(result, "dump"); if (result.isSetSuccess()) { return result.success; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "dump failed: unknown result"); } public void enableUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { send_enableUser(username, creds); recv_enableUser(); } public void send_enableUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { enableUser_args args = new enableUser_args(); args.setUsername(username); args.setCreds(creds); sendBase("enableUser", args); } public void recv_enableUser() throws org.apache.thrift.TException { enableUser_result result = new enableUser_result(); receiveBase(result, "enableUser"); return; } public String getDumpList(String environment, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { send_getDumpList(environment, creds); return recv_getDumpList(); } public void send_getDumpList(String environment, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { getDumpList_args args = new getDumpList_args(); args.setEnvironment(environment); args.setCreds(creds); sendBase("getDumpList", args); } public String recv_getDumpList() throws org.apache.thrift.TException { getDumpList_result result = new getDumpList_result(); receiveBase(result, "getDumpList"); if (result.isSetSuccess()) { return result.success; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDumpList failed: unknown result"); } public void grant(ByteBuffer username, ByteBuffer password, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { send_grant(username, password, creds); recv_grant(); } public void send_grant(ByteBuffer username, ByteBuffer password, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { grant_args args = new grant_args(); args.setUsername(username); args.setPassword(password); args.setCreds(creds); sendBase("grant", args); } public void recv_grant() throws org.apache.thrift.TException { grant_result result = new grant_result(); receiveBase(result, "grant"); return; } public boolean hasUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { send_hasUser(username, creds); return recv_hasUser(); } public void send_hasUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { hasUser_args args = new hasUser_args(); args.setUsername(username); args.setCreds(creds); sendBase("hasUser", args); } public boolean recv_hasUser() throws org.apache.thrift.TException { hasUser_result result = new hasUser_result(); receiveBase(result, "hasUser"); if (result.isSetSuccess()) { return result.success; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "hasUser failed: unknown result"); } public void installPluginBundle(String file, com.cinchapi.concourse.thrift.AccessToken creds) throws com.cinchapi.concourse.thrift.ManagementException, org.apache.thrift.TException { send_installPluginBundle(file, creds); recv_installPluginBundle(); } public void send_installPluginBundle(String file, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { installPluginBundle_args args = new installPluginBundle_args(); args.setFile(file); args.setCreds(creds); sendBase("installPluginBundle", args); } public void recv_installPluginBundle() throws com.cinchapi.concourse.thrift.ManagementException, org.apache.thrift.TException { installPluginBundle_result result = new installPluginBundle_result(); receiveBase(result, "installPluginBundle"); if (result.ex != null) { throw result.ex; } return; } public String listAllEnvironments(com.cinchapi.concourse.thrift.AccessToken token) throws org.apache.thrift.TException { send_listAllEnvironments(token); return recv_listAllEnvironments(); } public void send_listAllEnvironments(com.cinchapi.concourse.thrift.AccessToken token) throws org.apache.thrift.TException { listAllEnvironments_args args = new listAllEnvironments_args(); args.setToken(token); sendBase("listAllEnvironments", args); } public String recv_listAllEnvironments() throws org.apache.thrift.TException { listAllEnvironments_result result = new listAllEnvironments_result(); receiveBase(result, "listAllEnvironments"); if (result.isSetSuccess()) { return result.success; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listAllEnvironments failed: unknown result"); } public String listAllUserSessions(com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { send_listAllUserSessions(creds); return recv_listAllUserSessions(); } public void send_listAllUserSessions(com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { listAllUserSessions_args args = new listAllUserSessions_args(); args.setCreds(creds); sendBase("listAllUserSessions", args); } public String recv_listAllUserSessions() throws org.apache.thrift.TException { listAllUserSessions_result result = new listAllUserSessions_result(); receiveBase(result, "listAllUserSessions"); if (result.isSetSuccess()) { return result.success; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listAllUserSessions failed: unknown result"); } public String listPluginBundles(com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { send_listPluginBundles(creds); return recv_listPluginBundles(); } public void send_listPluginBundles(com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { listPluginBundles_args args = new listPluginBundles_args(); args.setCreds(creds); sendBase("listPluginBundles", args); } public String recv_listPluginBundles() throws org.apache.thrift.TException { listPluginBundles_result result = new listPluginBundles_result(); receiveBase(result, "listPluginBundles"); if (result.isSetSuccess()) { return result.success; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listPluginBundles failed: unknown result"); } public void revoke(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { send_revoke(username, creds); recv_revoke(); } public void send_revoke(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { revoke_args args = new revoke_args(); args.setUsername(username); args.setCreds(creds); sendBase("revoke", args); } public void recv_revoke() throws org.apache.thrift.TException { revoke_result result = new revoke_result(); receiveBase(result, "revoke"); return; } public void uninstallPluginBundle(String name, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { send_uninstallPluginBundle(name, creds); recv_uninstallPluginBundle(); } public void send_uninstallPluginBundle(String name, com.cinchapi.concourse.thrift.AccessToken creds) throws org.apache.thrift.TException { uninstallPluginBundle_args args = new uninstallPluginBundle_args(); args.setName(name); args.setCreds(creds); sendBase("uninstallPluginBundle", args); } public void recv_uninstallPluginBundle() throws org.apache.thrift.TException { uninstallPluginBundle_result result = new uninstallPluginBundle_result(); receiveBase(result, "uninstallPluginBundle"); return; } } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> { private org.apache.thrift.async.TAsyncClientManager clientManager; private org.apache.thrift.protocol.TProtocolFactory protocolFactory; public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) { this.clientManager = clientManager; this.protocolFactory = protocolFactory; } public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) { return new AsyncClient(protocolFactory, clientManager, transport); } } public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) { super(protocolFactory, clientManager, transport); } public void login(ByteBuffer username, ByteBuffer password, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); login_call method_call = new login_call(username, password, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class login_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer username; private ByteBuffer password; public login_call(ByteBuffer username, ByteBuffer password, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.username = username; this.password = password; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("login", org.apache.thrift.protocol.TMessageType.CALL, 0)); login_args args = new login_args(); args.setUsername(username); args.setPassword(password); args.write(prot); prot.writeMessageEnd(); } public com.cinchapi.concourse.thrift.AccessToken getResult() throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_login(); } } public void logout(com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); logout_call method_call = new logout_call(creds, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class logout_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken creds; public logout_call(com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.creds = creds; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("logout", org.apache.thrift.protocol.TMessageType.CALL, 0)); logout_args args = new logout_args(); args.setCreds(creds); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.SecurityException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_logout(); } } public void disableUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); disableUser_call method_call = new disableUser_call(username, creds, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class disableUser_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer username; private com.cinchapi.concourse.thrift.AccessToken creds; public disableUser_call(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.username = username; this.creds = creds; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableUser", org.apache.thrift.protocol.TMessageType.CALL, 0)); disableUser_args args = new disableUser_args(); args.setUsername(username); args.setCreds(creds); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } 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_disableUser(); } } public void dump(String id, String environment, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); dump_call method_call = new dump_call(id, environment, creds, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class dump_call extends org.apache.thrift.async.TAsyncMethodCall { private String id; private String environment; private com.cinchapi.concourse.thrift.AccessToken creds; public dump_call(String id, String environment, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.id = id; this.environment = environment; this.creds = creds; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("dump", org.apache.thrift.protocol.TMessageType.CALL, 0)); dump_args args = new dump_args(); args.setId(id); args.setEnvironment(environment); args.setCreds(creds); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_dump(); } } public void enableUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); enableUser_call method_call = new enableUser_call(username, creds, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class enableUser_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer username; private com.cinchapi.concourse.thrift.AccessToken creds; public enableUser_call(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.username = username; this.creds = creds; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableUser", org.apache.thrift.protocol.TMessageType.CALL, 0)); enableUser_args args = new enableUser_args(); args.setUsername(username); args.setCreds(creds); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } 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_enableUser(); } } public void getDumpList(String environment, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getDumpList_call method_call = new getDumpList_call(environment, creds, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getDumpList_call extends org.apache.thrift.async.TAsyncMethodCall { private String environment; private com.cinchapi.concourse.thrift.AccessToken creds; public getDumpList_call(String environment, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.environment = environment; this.creds = creds; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDumpList", org.apache.thrift.protocol.TMessageType.CALL, 0)); getDumpList_args args = new getDumpList_args(); args.setEnvironment(environment); args.setCreds(creds); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_getDumpList(); } } public void grant(ByteBuffer username, ByteBuffer password, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); grant_call method_call = new grant_call(username, password, creds, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class grant_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer username; private ByteBuffer password; private com.cinchapi.concourse.thrift.AccessToken creds; public grant_call(ByteBuffer username, ByteBuffer password, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.username = username; this.password = password; this.creds = creds; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("grant", org.apache.thrift.protocol.TMessageType.CALL, 0)); grant_args args = new grant_args(); args.setUsername(username); args.setPassword(password); args.setCreds(creds); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } 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_grant(); } } public void hasUser(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); hasUser_call method_call = new hasUser_call(username, creds, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class hasUser_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer username; private com.cinchapi.concourse.thrift.AccessToken creds; public hasUser_call(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.username = username; this.creds = creds; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("hasUser", org.apache.thrift.protocol.TMessageType.CALL, 0)); hasUser_args args = new hasUser_args(); args.setUsername(username); args.setCreds(creds); args.write(prot); prot.writeMessageEnd(); } public boolean getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_hasUser(); } } public void installPluginBundle(String file, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); installPluginBundle_call method_call = new installPluginBundle_call(file, creds, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class installPluginBundle_call extends org.apache.thrift.async.TAsyncMethodCall { private String file; private com.cinchapi.concourse.thrift.AccessToken creds; public installPluginBundle_call(String file, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.file = file; this.creds = creds; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("installPluginBundle", org.apache.thrift.protocol.TMessageType.CALL, 0)); installPluginBundle_args args = new installPluginBundle_args(); args.setFile(file); args.setCreds(creds); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws com.cinchapi.concourse.thrift.ManagementException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_installPluginBundle(); } } public void listAllEnvironments(com.cinchapi.concourse.thrift.AccessToken token, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); listAllEnvironments_call method_call = new listAllEnvironments_call(token, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listAllEnvironments_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken token; public listAllEnvironments_call(com.cinchapi.concourse.thrift.AccessToken token, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.token = token; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listAllEnvironments", org.apache.thrift.protocol.TMessageType.CALL, 0)); listAllEnvironments_args args = new listAllEnvironments_args(); args.setToken(token); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_listAllEnvironments(); } } public void listAllUserSessions(com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); listAllUserSessions_call method_call = new listAllUserSessions_call(creds, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listAllUserSessions_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken creds; public listAllUserSessions_call(com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.creds = creds; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listAllUserSessions", org.apache.thrift.protocol.TMessageType.CALL, 0)); listAllUserSessions_args args = new listAllUserSessions_args(); args.setCreds(creds); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_listAllUserSessions(); } } public void listPluginBundles(com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); listPluginBundles_call method_call = new listPluginBundles_call(creds, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listPluginBundles_call extends org.apache.thrift.async.TAsyncMethodCall { private com.cinchapi.concourse.thrift.AccessToken creds; public listPluginBundles_call(com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.creds = creds; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listPluginBundles", org.apache.thrift.protocol.TMessageType.CALL, 0)); listPluginBundles_args args = new listPluginBundles_args(); args.setCreds(creds); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); return (new Client(prot)).recv_listPluginBundles(); } } public void revoke(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revoke_call method_call = new revoke_call(username, creds, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class revoke_call extends org.apache.thrift.async.TAsyncMethodCall { private ByteBuffer username; private com.cinchapi.concourse.thrift.AccessToken creds; public revoke_call(ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.username = username; this.creds = creds; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("revoke", org.apache.thrift.protocol.TMessageType.CALL, 0)); revoke_args args = new revoke_args(); args.setUsername(username); args.setCreds(creds); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } 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_revoke(); } } public void uninstallPluginBundle(String name, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); uninstallPluginBundle_call method_call = new uninstallPluginBundle_call(name, creds, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class uninstallPluginBundle_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; private com.cinchapi.concourse.thrift.AccessToken creds; public uninstallPluginBundle_call(String name, com.cinchapi.concourse.thrift.AccessToken creds, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.name = name; this.creds = creds; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("uninstallPluginBundle", org.apache.thrift.protocol.TMessageType.CALL, 0)); uninstallPluginBundle_args args = new uninstallPluginBundle_args(); args.setName(name); args.setCreds(creds); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } 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_uninstallPluginBundle(); } } } 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()); public Processor(I iface) { super(iface, getProcessMap(new HashMap<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) { 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) { processMap.put("login", new login()); processMap.put("logout", new logout()); processMap.put("disableUser", new disableUser()); processMap.put("dump", new dump()); processMap.put("enableUser", new enableUser()); processMap.put("getDumpList", new getDumpList()); processMap.put("grant", new grant()); processMap.put("hasUser", new hasUser()); processMap.put("installPluginBundle", new installPluginBundle()); processMap.put("listAllEnvironments", new listAllEnvironments()); processMap.put("listAllUserSessions", new listAllUserSessions()); processMap.put("listPluginBundles", new listPluginBundles()); processMap.put("revoke", new revoke()); processMap.put("uninstallPluginBundle", new uninstallPluginBundle()); return processMap; } public static class login<I extends Iface> extends org.apache.thrift.ProcessFunction<I, login_args> { public login() { super("login"); } public login_args getEmptyArgsInstance() { return new login_args(); } protected boolean isOneway() { return false; } public login_result getResult(I iface, login_args args) throws org.apache.thrift.TException { login_result result = new login_result(); try { result.success = iface.login(args.username, args.password); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } return result; } } public static class logout<I extends Iface> extends org.apache.thrift.ProcessFunction<I, logout_args> { public logout() { super("logout"); } public logout_args getEmptyArgsInstance() { return new logout_args(); } protected boolean isOneway() { return false; } public logout_result getResult(I iface, logout_args args) throws org.apache.thrift.TException { logout_result result = new logout_result(); try { iface.logout(args.creds); } catch (com.cinchapi.concourse.thrift.SecurityException ex) { result.ex = ex; } return result; } } public static class disableUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableUser_args> { public disableUser() { super("disableUser"); } public disableUser_args getEmptyArgsInstance() { return new disableUser_args(); } protected boolean isOneway() { return false; } public disableUser_result getResult(I iface, disableUser_args args) throws org.apache.thrift.TException { disableUser_result result = new disableUser_result(); iface.disableUser(args.username, args.creds); return result; } } public static class dump<I extends Iface> extends org.apache.thrift.ProcessFunction<I, dump_args> { public dump() { super("dump"); } public dump_args getEmptyArgsInstance() { return new dump_args(); } protected boolean isOneway() { return false; } public dump_result getResult(I iface, dump_args args) throws org.apache.thrift.TException { dump_result result = new dump_result(); result.success = iface.dump(args.id, args.environment, args.creds); return result; } } public static class enableUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableUser_args> { public enableUser() { super("enableUser"); } public enableUser_args getEmptyArgsInstance() { return new enableUser_args(); } protected boolean isOneway() { return false; } public enableUser_result getResult(I iface, enableUser_args args) throws org.apache.thrift.TException { enableUser_result result = new enableUser_result(); iface.enableUser(args.username, args.creds); return result; } } public static class getDumpList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDumpList_args> { public getDumpList() { super("getDumpList"); } public getDumpList_args getEmptyArgsInstance() { return new getDumpList_args(); } protected boolean isOneway() { return false; } public getDumpList_result getResult(I iface, getDumpList_args args) throws org.apache.thrift.TException { getDumpList_result result = new getDumpList_result(); result.success = iface.getDumpList(args.environment, args.creds); return result; } } public static class grant<I extends Iface> extends org.apache.thrift.ProcessFunction<I, grant_args> { public grant() { super("grant"); } public grant_args getEmptyArgsInstance() { return new grant_args(); } protected boolean isOneway() { return false; } public grant_result getResult(I iface, grant_args args) throws org.apache.thrift.TException { grant_result result = new grant_result(); iface.grant(args.username, args.password, args.creds); return result; } } public static class hasUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, hasUser_args> { public hasUser() { super("hasUser"); } public hasUser_args getEmptyArgsInstance() { return new hasUser_args(); } protected boolean isOneway() { return false; } public hasUser_result getResult(I iface, hasUser_args args) throws org.apache.thrift.TException { hasUser_result result = new hasUser_result(); result.success = iface.hasUser(args.username, args.creds); result.setSuccessIsSet(true); return result; } } public static class installPluginBundle<I extends Iface> extends org.apache.thrift.ProcessFunction<I, installPluginBundle_args> { public installPluginBundle() { super("installPluginBundle"); } public installPluginBundle_args getEmptyArgsInstance() { return new installPluginBundle_args(); } protected boolean isOneway() { return false; } public installPluginBundle_result getResult(I iface, installPluginBundle_args args) throws org.apache.thrift.TException { installPluginBundle_result result = new installPluginBundle_result(); try { iface.installPluginBundle(args.file, args.creds); } catch (com.cinchapi.concourse.thrift.ManagementException ex) { result.ex = ex; } return result; } } public static class listAllEnvironments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listAllEnvironments_args> { public listAllEnvironments() { super("listAllEnvironments"); } public listAllEnvironments_args getEmptyArgsInstance() { return new listAllEnvironments_args(); } protected boolean isOneway() { return false; } public listAllEnvironments_result getResult(I iface, listAllEnvironments_args args) throws org.apache.thrift.TException { listAllEnvironments_result result = new listAllEnvironments_result(); result.success = iface.listAllEnvironments(args.token); return result; } } public static class listAllUserSessions<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listAllUserSessions_args> { public listAllUserSessions() { super("listAllUserSessions"); } public listAllUserSessions_args getEmptyArgsInstance() { return new listAllUserSessions_args(); } protected boolean isOneway() { return false; } public listAllUserSessions_result getResult(I iface, listAllUserSessions_args args) throws org.apache.thrift.TException { listAllUserSessions_result result = new listAllUserSessions_result(); result.success = iface.listAllUserSessions(args.creds); return result; } } public static class listPluginBundles<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listPluginBundles_args> { public listPluginBundles() { super("listPluginBundles"); } public listPluginBundles_args getEmptyArgsInstance() { return new listPluginBundles_args(); } protected boolean isOneway() { return false; } public listPluginBundles_result getResult(I iface, listPluginBundles_args args) throws org.apache.thrift.TException { listPluginBundles_result result = new listPluginBundles_result(); result.success = iface.listPluginBundles(args.creds); return result; } } public static class revoke<I extends Iface> extends org.apache.thrift.ProcessFunction<I, revoke_args> { public revoke() { super("revoke"); } public revoke_args getEmptyArgsInstance() { return new revoke_args(); } protected boolean isOneway() { return false; } public revoke_result getResult(I iface, revoke_args args) throws org.apache.thrift.TException { revoke_result result = new revoke_result(); iface.revoke(args.username, args.creds); return result; } } public static class uninstallPluginBundle<I extends Iface> extends org.apache.thrift.ProcessFunction<I, uninstallPluginBundle_args> { public uninstallPluginBundle() { super("uninstallPluginBundle"); } public uninstallPluginBundle_args getEmptyArgsInstance() { return new uninstallPluginBundle_args(); } protected boolean isOneway() { return false; } public uninstallPluginBundle_result getResult(I iface, uninstallPluginBundle_args args) throws org.apache.thrift.TException { uninstallPluginBundle_result result = new uninstallPluginBundle_result(); iface.uninstallPluginBundle(args.name, args.creds); return result; } } } public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> { private static final Logger LOGGER = 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, ?>>())); } protected AsyncProcessor(I iface, Map<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) { processMap.put("login", new login()); processMap.put("logout", new logout()); processMap.put("disableUser", new disableUser()); processMap.put("dump", new dump()); processMap.put("enableUser", new enableUser()); processMap.put("getDumpList", new getDumpList()); processMap.put("grant", new grant()); processMap.put("hasUser", new hasUser()); processMap.put("installPluginBundle", new installPluginBundle()); processMap.put("listAllEnvironments", new listAllEnvironments()); processMap.put("listAllUserSessions", new listAllUserSessions()); processMap.put("listPluginBundles", new listPluginBundles()); processMap.put("revoke", new revoke()); processMap.put("uninstallPluginBundle", new uninstallPluginBundle()); return processMap; } public static class login<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, login_args, com.cinchapi.concourse.thrift.AccessToken> { public login() { super("login"); } public login_args getEmptyArgsInstance() { return new login_args(); } public AsyncMethodCallback<com.cinchapi.concourse.thrift.AccessToken> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<com.cinchapi.concourse.thrift.AccessToken>() { public void onComplete(com.cinchapi.concourse.thrift.AccessToken o) { login_result result = new login_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; login_result result = new login_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, login_args args, org.apache.thrift.async.AsyncMethodCallback<com.cinchapi.concourse.thrift.AccessToken> resultHandler) throws TException { iface.login(args.username, args.password,resultHandler); } } public static class logout<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, logout_args, Void> { public logout() { super("logout"); } public logout_args getEmptyArgsInstance() { return new logout_args(); } public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<Void>() { public void onComplete(Void o) { logout_result result = new logout_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); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; logout_result result = new logout_result(); if (e instanceof com.cinchapi.concourse.thrift.SecurityException) { result.ex = (com.cinchapi.concourse.thrift.SecurityException) e; result.setExIsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, logout_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.logout(args.creds,resultHandler); } } public static class disableUser<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableUser_args, Void> { public disableUser() { super("disableUser"); } public disableUser_args getEmptyArgsInstance() { return new disableUser_args(); } public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<Void>() { public void onComplete(Void o) { disableUser_result result = new disableUser_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); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; disableUser_result result = new disableUser_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, disableUser_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.disableUser(args.username, args.creds,resultHandler); } } public static class dump<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, dump_args, String> { public dump() { super("dump"); } public dump_args getEmptyArgsInstance() { return new dump_args(); } public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<String>() { public void onComplete(String o) { dump_result result = new dump_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; dump_result result = new dump_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, dump_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException { iface.dump(args.id, args.environment, args.creds,resultHandler); } } public static class enableUser<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableUser_args, Void> { public enableUser() { super("enableUser"); } public enableUser_args getEmptyArgsInstance() { return new enableUser_args(); } public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<Void>() { public void onComplete(Void o) { enableUser_result result = new enableUser_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); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; enableUser_result result = new enableUser_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, enableUser_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.enableUser(args.username, args.creds,resultHandler); } } public static class getDumpList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getDumpList_args, String> { public getDumpList() { super("getDumpList"); } public getDumpList_args getEmptyArgsInstance() { return new getDumpList_args(); } public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<String>() { public void onComplete(String o) { getDumpList_result result = new getDumpList_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getDumpList_result result = new getDumpList_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, getDumpList_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException { iface.getDumpList(args.environment, args.creds,resultHandler); } } public static class grant<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, grant_args, Void> { public grant() { super("grant"); } public grant_args getEmptyArgsInstance() { return new grant_args(); } public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<Void>() { public void onComplete(Void o) { grant_result result = new grant_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); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; grant_result result = new grant_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, grant_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.grant(args.username, args.password, args.creds,resultHandler); } } public static class hasUser<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, hasUser_args, Boolean> { public hasUser() { super("hasUser"); } public hasUser_args getEmptyArgsInstance() { return new hasUser_args(); } public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<Boolean>() { public void onComplete(Boolean o) { hasUser_result result = new hasUser_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); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; hasUser_result result = new hasUser_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, hasUser_args args, org.apache.thrift.async.AsyncMethodCallback<Boolean> resultHandler) throws TException { iface.hasUser(args.username, args.creds,resultHandler); } } public static class installPluginBundle<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, installPluginBundle_args, Void> { public installPluginBundle() { super("installPluginBundle"); } public installPluginBundle_args getEmptyArgsInstance() { return new installPluginBundle_args(); } public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<Void>() { public void onComplete(Void o) { installPluginBundle_result result = new installPluginBundle_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); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; installPluginBundle_result result = new installPluginBundle_result(); if (e instanceof com.cinchapi.concourse.thrift.ManagementException) { result.ex = (com.cinchapi.concourse.thrift.ManagementException) e; result.setExIsSet(true); msg = result; } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, installPluginBundle_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.installPluginBundle(args.file, args.creds,resultHandler); } } public static class listAllEnvironments<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listAllEnvironments_args, String> { public listAllEnvironments() { super("listAllEnvironments"); } public listAllEnvironments_args getEmptyArgsInstance() { return new listAllEnvironments_args(); } public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<String>() { public void onComplete(String o) { listAllEnvironments_result result = new listAllEnvironments_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; listAllEnvironments_result result = new listAllEnvironments_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, listAllEnvironments_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException { iface.listAllEnvironments(args.token,resultHandler); } } public static class listAllUserSessions<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listAllUserSessions_args, String> { public listAllUserSessions() { super("listAllUserSessions"); } public listAllUserSessions_args getEmptyArgsInstance() { return new listAllUserSessions_args(); } public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<String>() { public void onComplete(String o) { listAllUserSessions_result result = new listAllUserSessions_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; listAllUserSessions_result result = new listAllUserSessions_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, listAllUserSessions_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException { iface.listAllUserSessions(args.creds,resultHandler); } } public static class listPluginBundles<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listPluginBundles_args, String> { public listPluginBundles() { super("listPluginBundles"); } public listPluginBundles_args getEmptyArgsInstance() { return new listPluginBundles_args(); } public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<String>() { public void onComplete(String o) { listPluginBundles_result result = new listPluginBundles_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch (Exception e) { LOGGER.error("Exception writing to internal frame buffer", e); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; listPluginBundles_result result = new listPluginBundles_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, listPluginBundles_args args, org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws TException { iface.listPluginBundles(args.creds,resultHandler); } } public static class revoke<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, revoke_args, Void> { public revoke() { super("revoke"); } public revoke_args getEmptyArgsInstance() { return new revoke_args(); } public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<Void>() { public void onComplete(Void o) { revoke_result result = new revoke_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); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; revoke_result result = new revoke_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, revoke_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.revoke(args.username, args.creds,resultHandler); } } public static class uninstallPluginBundle<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, uninstallPluginBundle_args, Void> { public uninstallPluginBundle() { super("uninstallPluginBundle"); } public uninstallPluginBundle_args getEmptyArgsInstance() { return new uninstallPluginBundle_args(); } public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback<Void>() { public void onComplete(Void o) { uninstallPluginBundle_result result = new uninstallPluginBundle_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); } fb.close(); } public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; uninstallPluginBundle_result result = new uninstallPluginBundle_result(); { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch (Exception ex) { LOGGER.error("Exception writing to internal frame buffer", ex); } fb.close(); } }; } protected boolean isOneway() { return false; } public void start(I iface, uninstallPluginBundle_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException { iface.uninstallPluginBundle(args.name, args.creds,resultHandler); } } } public static class login_args implements org.apache.thrift.TBase<login_args, login_args._Fields>, java.io.Serializable, Cloneable, Comparable<login_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("login_args"); private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new login_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new login_argsTupleSchemeFactory()); } public ByteBuffer username; // required public ByteBuffer password; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USERNAME((short)1, "username"), PASSWORD((short)2, "password"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USERNAME return USERNAME; case 2: // PASSWORD return PASSWORD; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(login_args.class, metaDataMap); } public login_args() { } public login_args( ByteBuffer username, ByteBuffer password) { this(); this.username = org.apache.thrift.TBaseHelper.copyBinary(username); this.password = org.apache.thrift.TBaseHelper.copyBinary(password); } /** * Performs a deep copy on <i>other</i>. */ public login_args(login_args other) { if (other.isSetUsername()) { this.username = org.apache.thrift.TBaseHelper.copyBinary(other.username); } if (other.isSetPassword()) { this.password = org.apache.thrift.TBaseHelper.copyBinary(other.password); } } public login_args deepCopy() { return new login_args(this); } @Override public void clear() { this.username = null; this.password = null; } public byte[] getUsername() { setUsername(org.apache.thrift.TBaseHelper.rightSize(username)); return username == null ? null : username.array(); } public ByteBuffer bufferForUsername() { return org.apache.thrift.TBaseHelper.copyBinary(username); } public login_args setUsername(byte[] username) { this.username = username == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(username, username.length)); return this; } public login_args setUsername(ByteBuffer username) { this.username = org.apache.thrift.TBaseHelper.copyBinary(username); return this; } public void unsetUsername() { this.username = null; } /** Returns true if field username is set (has been assigned a value) and false otherwise */ public boolean isSetUsername() { return this.username != null; } public void setUsernameIsSet(boolean value) { if (!value) { this.username = null; } } public byte[] getPassword() { setPassword(org.apache.thrift.TBaseHelper.rightSize(password)); return password == null ? null : password.array(); } public ByteBuffer bufferForPassword() { return org.apache.thrift.TBaseHelper.copyBinary(password); } public login_args setPassword(byte[] password) { this.password = password == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(password, password.length)); return this; } public login_args setPassword(ByteBuffer password) { this.password = org.apache.thrift.TBaseHelper.copyBinary(password); return this; } public void unsetPassword() { this.password = null; } /** Returns true if field password is set (has been assigned a value) and false otherwise */ public boolean isSetPassword() { return this.password != null; } public void setPasswordIsSet(boolean value) { if (!value) { this.password = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case USERNAME: if (value == null) { unsetUsername(); } else { setUsername((ByteBuffer)value); } break; case PASSWORD: if (value == null) { unsetPassword(); } else { setPassword((ByteBuffer)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case USERNAME: return getUsername(); case PASSWORD: return getPassword(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case USERNAME: return isSetUsername(); case PASSWORD: return isSetPassword(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof login_args) return this.equals((login_args)that); return false; } public boolean equals(login_args that) { if (that == null) return false; boolean this_present_username = true && this.isSetUsername(); boolean that_present_username = true && that.isSetUsername(); if (this_present_username || that_present_username) { if (!(this_present_username && that_present_username)) return false; if (!this.username.equals(that.username)) return false; } boolean this_present_password = true && this.isSetPassword(); boolean that_present_password = true && that.isSetPassword(); if (this_present_password || that_present_password) { if (!(this_present_password && that_present_password)) return false; if (!this.password.equals(that.password)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_username = true && (isSetUsername()); list.add(present_username); if (present_username) list.add(username); boolean present_password = true && (isSetPassword()); list.add(present_password); if (present_password) list.add(password); return list.hashCode(); } @Override public int compareTo(login_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); if (lastComparison != 0) { return lastComparison; } if (isSetUsername()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword()); if (lastComparison != 0) { return lastComparison; } if (isSetPassword()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, other.password); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("login_args("); boolean first = true; sb.append("username:"); if (this.username == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.username, sb); } first = false; if (!first) sb.append(", "); sb.append("password:"); if (this.password == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.password, sb); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class login_argsStandardSchemeFactory implements SchemeFactory { public login_argsStandardScheme getScheme() { return new login_argsStandardScheme(); } } private static class login_argsStandardScheme extends StandardScheme<login_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, login_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // USERNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // PASSWORD if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.password = iprot.readBinary(); struct.setPasswordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, login_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.username != null) { oprot.writeFieldBegin(USERNAME_FIELD_DESC); oprot.writeBinary(struct.username); oprot.writeFieldEnd(); } if (struct.password != null) { oprot.writeFieldBegin(PASSWORD_FIELD_DESC); oprot.writeBinary(struct.password); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class login_argsTupleSchemeFactory implements SchemeFactory { public login_argsTupleScheme getScheme() { return new login_argsTupleScheme(); } } private static class login_argsTupleScheme extends TupleScheme<login_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, login_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUsername()) { optionals.set(0); } if (struct.isSetPassword()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUsername()) { oprot.writeBinary(struct.username); } if (struct.isSetPassword()) { oprot.writeBinary(struct.password); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, login_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } if (incoming.get(1)) { struct.password = iprot.readBinary(); struct.setPasswordIsSet(true); } } } } public static class login_result implements org.apache.thrift.TBase<login_result, login_result._Fields>, java.io.Serializable, Cloneable, Comparable<login_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("login_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 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 login_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new login_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken success; // required public com.cinchapi.concourse.thrift.SecurityException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), EX((short)1, "ex"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; case 1: // EX return EX; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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, com.cinchapi.concourse.thrift.AccessToken.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); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(login_result.class, metaDataMap); } public login_result() { } public login_result( com.cinchapi.concourse.thrift.AccessToken success, com.cinchapi.concourse.thrift.SecurityException ex) { this(); this.success = success; this.ex = ex; } /** * Performs a deep copy on <i>other</i>. */ public login_result(login_result other) { if (other.isSetSuccess()) { this.success = new com.cinchapi.concourse.thrift.AccessToken(other.success); } if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } } public login_result deepCopy() { return new login_result(this); } @Override public void clear() { this.success = null; this.ex = null; } public com.cinchapi.concourse.thrift.AccessToken getSuccess() { return this.success; } public login_result setSuccess(com.cinchapi.concourse.thrift.AccessToken success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public login_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((com.cinchapi.concourse.thrift.AccessToken)value); } break; case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case EX: return getEx(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case EX: return isSetEx(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof login_result) return this.equals((login_result)that); return false; } public boolean equals(login_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); return list.hashCode(); } @Override public int compareTo(login_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("login_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; if (!first) sb.append(", "); sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (success != null) { success.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class login_resultStandardSchemeFactory implements SchemeFactory { public login_resultStandardScheme getScheme() { return new login_resultStandardScheme(); } } private static class login_resultStandardScheme extends StandardScheme<login_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, login_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.success = new com.cinchapi.concourse.thrift.AccessToken(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, login_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class login_resultTupleSchemeFactory implements SchemeFactory { public login_resultTupleScheme getScheme() { return new login_resultTupleScheme(); } } private static class login_resultTupleScheme extends TupleScheme<login_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, login_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetEx()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetEx()) { struct.ex.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, login_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new com.cinchapi.concourse.thrift.AccessToken(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } } } } public static class logout_args implements org.apache.thrift.TBase<logout_args, logout_args._Fields>, java.io.Serializable, Cloneable, Comparable<logout_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("logout_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", 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 logout_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new logout_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // 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 { CREDS((short)1, "creds"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // CREDS return CREDS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(logout_args.class, metaDataMap); } public logout_args() { } public logout_args( com.cinchapi.concourse.thrift.AccessToken creds) { this(); this.creds = creds; } /** * Performs a deep copy on <i>other</i>. */ public logout_args(logout_args other) { if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } } public logout_args deepCopy() { return new logout_args(this); } @Override public void clear() { this.creds = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public logout_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof logout_args) return this.equals((logout_args)that); return false; } public boolean equals(logout_args that) { if (that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); } @Override public int compareTo(logout_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("logout_args("); boolean first = true; sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class logout_argsStandardSchemeFactory implements SchemeFactory { public logout_argsStandardScheme getScheme() { return new logout_argsStandardScheme(); } } private static class logout_argsStandardScheme extends StandardScheme<logout_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, logout_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, logout_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class logout_argsTupleSchemeFactory implements SchemeFactory { public logout_argsTupleScheme getScheme() { return new logout_argsTupleScheme(); } } private static class logout_argsTupleScheme extends TupleScheme<logout_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, logout_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCreds()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetCreds()) { struct.creds.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, logout_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } } } } public static class logout_result implements org.apache.thrift.TBase<logout_result, logout_result._Fields>, java.io.Serializable, Cloneable, Comparable<logout_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("logout_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 logout_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new logout_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.SecurityException 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>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(logout_result.class, metaDataMap); } public logout_result() { } public logout_result( com.cinchapi.concourse.thrift.SecurityException ex) { this(); this.ex = ex; } /** * Performs a deep copy on <i>other</i>. */ public logout_result(logout_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex); } } public logout_result deepCopy() { return new logout_result(this); } @Override public void clear() { this.ex = null; } public com.cinchapi.concourse.thrift.SecurityException getEx() { return this.ex; } public logout_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.SecurityException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof logout_result) return this.equals((logout_result)that); return false; } public boolean equals(logout_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); return list.hashCode(); } @Override public int compareTo(logout_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("logout_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class logout_resultStandardSchemeFactory implements SchemeFactory { public logout_resultStandardScheme getScheme() { return new logout_resultStandardScheme(); } } private static class logout_resultStandardScheme extends StandardScheme<logout_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, logout_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, logout_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class logout_resultTupleSchemeFactory implements SchemeFactory { public logout_resultTupleScheme getScheme() { return new logout_resultTupleScheme(); } } private static class logout_resultTupleScheme extends TupleScheme<logout_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, logout_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetEx()) { struct.ex.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, logout_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.SecurityException(); struct.ex.read(iprot); struct.setExIsSet(true); } } } } public static class disableUser_args implements org.apache.thrift.TBase<disableUser_args, disableUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableUser_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableUser_args"); private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", 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 disableUser_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new disableUser_argsTupleSchemeFactory()); } public ByteBuffer username; // required public com.cinchapi.concourse.thrift.AccessToken creds; // 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 { USERNAME((short)1, "username"), CREDS((short)2, "creds"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USERNAME return USERNAME; case 2: // CREDS return CREDS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableUser_args.class, metaDataMap); } public disableUser_args() { } public disableUser_args( ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) { this(); this.username = org.apache.thrift.TBaseHelper.copyBinary(username); this.creds = creds; } /** * Performs a deep copy on <i>other</i>. */ public disableUser_args(disableUser_args other) { if (other.isSetUsername()) { this.username = org.apache.thrift.TBaseHelper.copyBinary(other.username); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } } public disableUser_args deepCopy() { return new disableUser_args(this); } @Override public void clear() { this.username = null; this.creds = null; } public byte[] getUsername() { setUsername(org.apache.thrift.TBaseHelper.rightSize(username)); return username == null ? null : username.array(); } public ByteBuffer bufferForUsername() { return org.apache.thrift.TBaseHelper.copyBinary(username); } public disableUser_args setUsername(byte[] username) { this.username = username == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(username, username.length)); return this; } public disableUser_args setUsername(ByteBuffer username) { this.username = org.apache.thrift.TBaseHelper.copyBinary(username); return this; } public void unsetUsername() { this.username = null; } /** Returns true if field username is set (has been assigned a value) and false otherwise */ public boolean isSetUsername() { return this.username != null; } public void setUsernameIsSet(boolean value) { if (!value) { this.username = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public disableUser_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case USERNAME: if (value == null) { unsetUsername(); } else { setUsername((ByteBuffer)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case USERNAME: return getUsername(); case CREDS: return getCreds(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case USERNAME: return isSetUsername(); case CREDS: return isSetCreds(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof disableUser_args) return this.equals((disableUser_args)that); return false; } public boolean equals(disableUser_args that) { if (that == null) return false; boolean this_present_username = true && this.isSetUsername(); boolean that_present_username = true && that.isSetUsername(); if (this_present_username || that_present_username) { if (!(this_present_username && that_present_username)) return false; if (!this.username.equals(that.username)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_username = true && (isSetUsername()); list.add(present_username); if (present_username) list.add(username); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); } @Override public int compareTo(disableUser_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); if (lastComparison != 0) { return lastComparison; } if (isSetUsername()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("disableUser_args("); boolean first = true; sb.append("username:"); if (this.username == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.username, sb); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class disableUser_argsStandardSchemeFactory implements SchemeFactory { public disableUser_argsStandardScheme getScheme() { return new disableUser_argsStandardScheme(); } } private static class disableUser_argsStandardScheme extends StandardScheme<disableUser_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, disableUser_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // USERNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, disableUser_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.username != null) { oprot.writeFieldBegin(USERNAME_FIELD_DESC); oprot.writeBinary(struct.username); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class disableUser_argsTupleSchemeFactory implements SchemeFactory { public disableUser_argsTupleScheme getScheme() { return new disableUser_argsTupleScheme(); } } private static class disableUser_argsTupleScheme extends TupleScheme<disableUser_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, disableUser_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUsername()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUsername()) { oprot.writeBinary(struct.username); } if (struct.isSetCreds()) { struct.creds.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, disableUser_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } } } } public static class disableUser_result implements org.apache.thrift.TBase<disableUser_result, disableUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableUser_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableUser_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new disableUser_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new disableUser_resultTupleSchemeFactory()); } /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableUser_result.class, metaDataMap); } public disableUser_result() { } /** * Performs a deep copy on <i>other</i>. */ public disableUser_result(disableUser_result other) { } public disableUser_result deepCopy() { return new disableUser_result(this); } @Override public void clear() { } public void setFieldValue(_Fields field, Object value) { switch (field) { } } public Object getFieldValue(_Fields field) { switch (field) { } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof disableUser_result) return this.equals((disableUser_result)that); return false; } public boolean equals(disableUser_result that) { if (that == null) return false; return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); return list.hashCode(); } @Override public int compareTo(disableUser_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("disableUser_result("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class disableUser_resultStandardSchemeFactory implements SchemeFactory { public disableUser_resultStandardScheme getScheme() { return new disableUser_resultStandardScheme(); } } private static class disableUser_resultStandardScheme extends StandardScheme<disableUser_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, disableUser_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, disableUser_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class disableUser_resultTupleSchemeFactory implements SchemeFactory { public disableUser_resultTupleScheme getScheme() { return new disableUser_resultTupleScheme(); } } private static class disableUser_resultTupleScheme extends TupleScheme<disableUser_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, disableUser_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, disableUser_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class dump_args implements org.apache.thrift.TBase<dump_args, dump_args._Fields>, java.io.Serializable, Cloneable, Comparable<dump_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("dump_args"); private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", 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 dump_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new dump_argsTupleSchemeFactory()); } public String id; // required public String environment; // required public com.cinchapi.concourse.thrift.AccessToken creds; // 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 { ID((short)1, "id"), ENVIRONMENT((short)2, "environment"), CREDS((short)3, "creds"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // ID return ID; case 2: // ENVIRONMENT return ENVIRONMENT; case 3: // CREDS return CREDS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(dump_args.class, metaDataMap); } public dump_args() { } public dump_args( String id, String environment, com.cinchapi.concourse.thrift.AccessToken creds) { this(); this.id = id; this.environment = environment; this.creds = creds; } /** * Performs a deep copy on <i>other</i>. */ public dump_args(dump_args other) { if (other.isSetId()) { this.id = other.id; } if (other.isSetEnvironment()) { this.environment = other.environment; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } } public dump_args deepCopy() { return new dump_args(this); } @Override public void clear() { this.id = null; this.environment = null; this.creds = null; } public String getId() { return this.id; } public dump_args setId(String id) { this.id = id; return this; } public void unsetId() { this.id = null; } /** Returns true if field id is set (has been assigned a value) and false otherwise */ public boolean isSetId() { return this.id != null; } public void setIdIsSet(boolean value) { if (!value) { this.id = null; } } public String getEnvironment() { return this.environment; } public dump_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public dump_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case ID: if (value == null) { unsetId(); } else { setId((String)value); } break; case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case ID: return getId(); case ENVIRONMENT: return getEnvironment(); case CREDS: return getCreds(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case ID: return isSetId(); case ENVIRONMENT: return isSetEnvironment(); case CREDS: return isSetCreds(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof dump_args) return this.equals((dump_args)that); return false; } public boolean equals(dump_args that) { if (that == null) return false; boolean this_present_id = true && this.isSetId(); boolean that_present_id = true && that.isSetId(); if (this_present_id || that_present_id) { if (!(this_present_id && that_present_id)) return false; if (!this.id.equals(that.id)) return false; } boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_id = true && (isSetId()); list.add(present_id); if (present_id) list.add(id); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); } @Override public int compareTo(dump_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); if (lastComparison != 0) { return lastComparison; } if (isSetId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("dump_args("); boolean first = true; sb.append("id:"); if (this.id == null) { sb.append("null"); } else { sb.append(this.id); } first = false; if (!first) sb.append(", "); sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class dump_argsStandardSchemeFactory implements SchemeFactory { public dump_argsStandardScheme getScheme() { return new dump_argsStandardScheme(); } } private static class dump_argsStandardScheme extends StandardScheme<dump_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, dump_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.id = iprot.readString(); struct.setIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, dump_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.id != null) { oprot.writeFieldBegin(ID_FIELD_DESC); oprot.writeString(struct.id); oprot.writeFieldEnd(); } if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class dump_argsTupleSchemeFactory implements SchemeFactory { public dump_argsTupleScheme getScheme() { return new dump_argsTupleScheme(); } } private static class dump_argsTupleScheme extends TupleScheme<dump_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, dump_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetId()) { optionals.set(0); } if (struct.isSetEnvironment()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetId()) { oprot.writeString(struct.id); } if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } if (struct.isSetCreds()) { struct.creds.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, dump_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.id = iprot.readString(); struct.setIdIsSet(true); } if (incoming.get(1)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } } } } public static class dump_result implements org.apache.thrift.TBase<dump_result, dump_result._Fields>, java.io.Serializable, Cloneable, Comparable<dump_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("dump_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 dump_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new dump_resultTupleSchemeFactory()); } public 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>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(dump_result.class, metaDataMap); } public dump_result() { } public dump_result( String success) { this(); this.success = success; } /** * Performs a deep copy on <i>other</i>. */ public dump_result(dump_result other) { if (other.isSetSuccess()) { this.success = other.success; } } public dump_result deepCopy() { return new dump_result(this); } @Override public void clear() { this.success = null; } public String getSuccess() { return this.success; } public dump_result setSuccess(String success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof dump_result) return this.equals((dump_result)that); return false; } public boolean equals(dump_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); return list.hashCode(); } @Override public int compareTo(dump_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("dump_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class dump_resultStandardSchemeFactory implements SchemeFactory { public dump_resultStandardScheme getScheme() { return new dump_resultStandardScheme(); } } private static class dump_resultStandardScheme extends StandardScheme<dump_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, dump_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, dump_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeString(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class dump_resultTupleSchemeFactory implements SchemeFactory { public dump_resultTupleScheme getScheme() { return new dump_resultTupleScheme(); } } private static class dump_resultTupleScheme extends TupleScheme<dump_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, dump_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { oprot.writeString(struct.success); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, dump_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } } } } public static class enableUser_args implements org.apache.thrift.TBase<enableUser_args, enableUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableUser_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableUser_args"); private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", 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 enableUser_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new enableUser_argsTupleSchemeFactory()); } public ByteBuffer username; // required public com.cinchapi.concourse.thrift.AccessToken creds; // 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 { USERNAME((short)1, "username"), CREDS((short)2, "creds"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USERNAME return USERNAME; case 2: // CREDS return CREDS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableUser_args.class, metaDataMap); } public enableUser_args() { } public enableUser_args( ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) { this(); this.username = org.apache.thrift.TBaseHelper.copyBinary(username); this.creds = creds; } /** * Performs a deep copy on <i>other</i>. */ public enableUser_args(enableUser_args other) { if (other.isSetUsername()) { this.username = org.apache.thrift.TBaseHelper.copyBinary(other.username); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } } public enableUser_args deepCopy() { return new enableUser_args(this); } @Override public void clear() { this.username = null; this.creds = null; } public byte[] getUsername() { setUsername(org.apache.thrift.TBaseHelper.rightSize(username)); return username == null ? null : username.array(); } public ByteBuffer bufferForUsername() { return org.apache.thrift.TBaseHelper.copyBinary(username); } public enableUser_args setUsername(byte[] username) { this.username = username == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(username, username.length)); return this; } public enableUser_args setUsername(ByteBuffer username) { this.username = org.apache.thrift.TBaseHelper.copyBinary(username); return this; } public void unsetUsername() { this.username = null; } /** Returns true if field username is set (has been assigned a value) and false otherwise */ public boolean isSetUsername() { return this.username != null; } public void setUsernameIsSet(boolean value) { if (!value) { this.username = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public enableUser_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case USERNAME: if (value == null) { unsetUsername(); } else { setUsername((ByteBuffer)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case USERNAME: return getUsername(); case CREDS: return getCreds(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case USERNAME: return isSetUsername(); case CREDS: return isSetCreds(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof enableUser_args) return this.equals((enableUser_args)that); return false; } public boolean equals(enableUser_args that) { if (that == null) return false; boolean this_present_username = true && this.isSetUsername(); boolean that_present_username = true && that.isSetUsername(); if (this_present_username || that_present_username) { if (!(this_present_username && that_present_username)) return false; if (!this.username.equals(that.username)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_username = true && (isSetUsername()); list.add(present_username); if (present_username) list.add(username); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); } @Override public int compareTo(enableUser_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); if (lastComparison != 0) { return lastComparison; } if (isSetUsername()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("enableUser_args("); boolean first = true; sb.append("username:"); if (this.username == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.username, sb); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class enableUser_argsStandardSchemeFactory implements SchemeFactory { public enableUser_argsStandardScheme getScheme() { return new enableUser_argsStandardScheme(); } } private static class enableUser_argsStandardScheme extends StandardScheme<enableUser_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, enableUser_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // USERNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, enableUser_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.username != null) { oprot.writeFieldBegin(USERNAME_FIELD_DESC); oprot.writeBinary(struct.username); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class enableUser_argsTupleSchemeFactory implements SchemeFactory { public enableUser_argsTupleScheme getScheme() { return new enableUser_argsTupleScheme(); } } private static class enableUser_argsTupleScheme extends TupleScheme<enableUser_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, enableUser_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUsername()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUsername()) { oprot.writeBinary(struct.username); } if (struct.isSetCreds()) { struct.creds.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, enableUser_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } } } } public static class enableUser_result implements org.apache.thrift.TBase<enableUser_result, enableUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableUser_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableUser_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new enableUser_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new enableUser_resultTupleSchemeFactory()); } /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableUser_result.class, metaDataMap); } public enableUser_result() { } /** * Performs a deep copy on <i>other</i>. */ public enableUser_result(enableUser_result other) { } public enableUser_result deepCopy() { return new enableUser_result(this); } @Override public void clear() { } public void setFieldValue(_Fields field, Object value) { switch (field) { } } public Object getFieldValue(_Fields field) { switch (field) { } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof enableUser_result) return this.equals((enableUser_result)that); return false; } public boolean equals(enableUser_result that) { if (that == null) return false; return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); return list.hashCode(); } @Override public int compareTo(enableUser_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("enableUser_result("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class enableUser_resultStandardSchemeFactory implements SchemeFactory { public enableUser_resultStandardScheme getScheme() { return new enableUser_resultStandardScheme(); } } private static class enableUser_resultStandardScheme extends StandardScheme<enableUser_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, enableUser_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, enableUser_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class enableUser_resultTupleSchemeFactory implements SchemeFactory { public enableUser_resultTupleScheme getScheme() { return new enableUser_resultTupleScheme(); } } private static class enableUser_resultTupleScheme extends TupleScheme<enableUser_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, enableUser_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, enableUser_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class getDumpList_args implements org.apache.thrift.TBase<getDumpList_args, getDumpList_args._Fields>, java.io.Serializable, Cloneable, Comparable<getDumpList_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDumpList_args"); private static final org.apache.thrift.protocol.TField ENVIRONMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", 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 getDumpList_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getDumpList_argsTupleSchemeFactory()); } public String environment; // required public com.cinchapi.concourse.thrift.AccessToken creds; // 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 { ENVIRONMENT((short)1, "environment"), CREDS((short)2, "creds"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // ENVIRONMENT return ENVIRONMENT; case 2: // CREDS return CREDS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.ENVIRONMENT, new org.apache.thrift.meta_data.FieldMetaData("environment", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDumpList_args.class, metaDataMap); } public getDumpList_args() { } public getDumpList_args( String environment, com.cinchapi.concourse.thrift.AccessToken creds) { this(); this.environment = environment; this.creds = creds; } /** * Performs a deep copy on <i>other</i>. */ public getDumpList_args(getDumpList_args other) { if (other.isSetEnvironment()) { this.environment = other.environment; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } } public getDumpList_args deepCopy() { return new getDumpList_args(this); } @Override public void clear() { this.environment = null; this.creds = null; } public String getEnvironment() { return this.environment; } public getDumpList_args setEnvironment(String environment) { this.environment = environment; return this; } public void unsetEnvironment() { this.environment = null; } /** Returns true if field environment is set (has been assigned a value) and false otherwise */ public boolean isSetEnvironment() { return this.environment != null; } public void setEnvironmentIsSet(boolean value) { if (!value) { this.environment = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public getDumpList_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case ENVIRONMENT: if (value == null) { unsetEnvironment(); } else { setEnvironment((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case ENVIRONMENT: return getEnvironment(); case CREDS: return getCreds(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case ENVIRONMENT: return isSetEnvironment(); case CREDS: return isSetCreds(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getDumpList_args) return this.equals((getDumpList_args)that); return false; } public boolean equals(getDumpList_args that) { if (that == null) return false; boolean this_present_environment = true && this.isSetEnvironment(); boolean that_present_environment = true && that.isSetEnvironment(); if (this_present_environment || that_present_environment) { if (!(this_present_environment && that_present_environment)) return false; if (!this.environment.equals(that.environment)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_environment = true && (isSetEnvironment()); list.add(present_environment); if (present_environment) list.add(environment); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); } @Override public int compareTo(getDumpList_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEnvironment()).compareTo(other.isSetEnvironment()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment, other.environment); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getDumpList_args("); boolean first = true; sb.append("environment:"); if (this.environment == null) { sb.append("null"); } else { sb.append(this.environment); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getDumpList_argsStandardSchemeFactory implements SchemeFactory { public getDumpList_argsStandardScheme getScheme() { return new getDumpList_argsStandardScheme(); } } private static class getDumpList_argsStandardScheme extends StandardScheme<getDumpList_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, getDumpList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // ENVIRONMENT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getDumpList_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.environment != null) { oprot.writeFieldBegin(ENVIRONMENT_FIELD_DESC); oprot.writeString(struct.environment); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getDumpList_argsTupleSchemeFactory implements SchemeFactory { public getDumpList_argsTupleScheme getScheme() { return new getDumpList_argsTupleScheme(); } } private static class getDumpList_argsTupleScheme extends TupleScheme<getDumpList_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getDumpList_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEnvironment()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetEnvironment()) { oprot.writeString(struct.environment); } if (struct.isSetCreds()) { struct.creds.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getDumpList_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.environment = iprot.readString(); struct.setEnvironmentIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } } } } public static class getDumpList_result implements org.apache.thrift.TBase<getDumpList_result, getDumpList_result._Fields>, java.io.Serializable, Cloneable, Comparable<getDumpList_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDumpList_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 getDumpList_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getDumpList_resultTupleSchemeFactory()); } public 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>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDumpList_result.class, metaDataMap); } public getDumpList_result() { } public getDumpList_result( String success) { this(); this.success = success; } /** * Performs a deep copy on <i>other</i>. */ public getDumpList_result(getDumpList_result other) { if (other.isSetSuccess()) { this.success = other.success; } } public getDumpList_result deepCopy() { return new getDumpList_result(this); } @Override public void clear() { this.success = null; } public String getSuccess() { return this.success; } public getDumpList_result setSuccess(String success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getDumpList_result) return this.equals((getDumpList_result)that); return false; } public boolean equals(getDumpList_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); return list.hashCode(); } @Override public int compareTo(getDumpList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("getDumpList_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class getDumpList_resultStandardSchemeFactory implements SchemeFactory { public getDumpList_resultStandardScheme getScheme() { return new getDumpList_resultStandardScheme(); } } private static class getDumpList_resultStandardScheme extends StandardScheme<getDumpList_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, getDumpList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getDumpList_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeString(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getDumpList_resultTupleSchemeFactory implements SchemeFactory { public getDumpList_resultTupleScheme getScheme() { return new getDumpList_resultTupleScheme(); } } private static class getDumpList_resultTupleScheme extends TupleScheme<getDumpList_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getDumpList_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { oprot.writeString(struct.success); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getDumpList_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } } } } public static class grant_args implements org.apache.thrift.TBase<grant_args, grant_args._Fields>, java.io.Serializable, Cloneable, Comparable<grant_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_args"); private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", 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 grant_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new grant_argsTupleSchemeFactory()); } public ByteBuffer username; // required public ByteBuffer password; // required public com.cinchapi.concourse.thrift.AccessToken creds; // 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 { USERNAME((short)1, "username"), PASSWORD((short)2, "password"), CREDS((short)3, "creds"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USERNAME return USERNAME; case 2: // PASSWORD return PASSWORD; case 3: // CREDS return CREDS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(grant_args.class, metaDataMap); } public grant_args() { } public grant_args( ByteBuffer username, ByteBuffer password, com.cinchapi.concourse.thrift.AccessToken creds) { this(); this.username = org.apache.thrift.TBaseHelper.copyBinary(username); this.password = org.apache.thrift.TBaseHelper.copyBinary(password); this.creds = creds; } /** * Performs a deep copy on <i>other</i>. */ public grant_args(grant_args other) { if (other.isSetUsername()) { this.username = org.apache.thrift.TBaseHelper.copyBinary(other.username); } if (other.isSetPassword()) { this.password = org.apache.thrift.TBaseHelper.copyBinary(other.password); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } } public grant_args deepCopy() { return new grant_args(this); } @Override public void clear() { this.username = null; this.password = null; this.creds = null; } public byte[] getUsername() { setUsername(org.apache.thrift.TBaseHelper.rightSize(username)); return username == null ? null : username.array(); } public ByteBuffer bufferForUsername() { return org.apache.thrift.TBaseHelper.copyBinary(username); } public grant_args setUsername(byte[] username) { this.username = username == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(username, username.length)); return this; } public grant_args setUsername(ByteBuffer username) { this.username = org.apache.thrift.TBaseHelper.copyBinary(username); return this; } public void unsetUsername() { this.username = null; } /** Returns true if field username is set (has been assigned a value) and false otherwise */ public boolean isSetUsername() { return this.username != null; } public void setUsernameIsSet(boolean value) { if (!value) { this.username = null; } } public byte[] getPassword() { setPassword(org.apache.thrift.TBaseHelper.rightSize(password)); return password == null ? null : password.array(); } public ByteBuffer bufferForPassword() { return org.apache.thrift.TBaseHelper.copyBinary(password); } public grant_args setPassword(byte[] password) { this.password = password == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(password, password.length)); return this; } public grant_args setPassword(ByteBuffer password) { this.password = org.apache.thrift.TBaseHelper.copyBinary(password); return this; } public void unsetPassword() { this.password = null; } /** Returns true if field password is set (has been assigned a value) and false otherwise */ public boolean isSetPassword() { return this.password != null; } public void setPasswordIsSet(boolean value) { if (!value) { this.password = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public grant_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case USERNAME: if (value == null) { unsetUsername(); } else { setUsername((ByteBuffer)value); } break; case PASSWORD: if (value == null) { unsetPassword(); } else { setPassword((ByteBuffer)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case USERNAME: return getUsername(); case PASSWORD: return getPassword(); case CREDS: return getCreds(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case USERNAME: return isSetUsername(); case PASSWORD: return isSetPassword(); case CREDS: return isSetCreds(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof grant_args) return this.equals((grant_args)that); return false; } public boolean equals(grant_args that) { if (that == null) return false; boolean this_present_username = true && this.isSetUsername(); boolean that_present_username = true && that.isSetUsername(); if (this_present_username || that_present_username) { if (!(this_present_username && that_present_username)) return false; if (!this.username.equals(that.username)) return false; } boolean this_present_password = true && this.isSetPassword(); boolean that_present_password = true && that.isSetPassword(); if (this_present_password || that_present_password) { if (!(this_present_password && that_present_password)) return false; if (!this.password.equals(that.password)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_username = true && (isSetUsername()); list.add(present_username); if (present_username) list.add(username); boolean present_password = true && (isSetPassword()); list.add(present_password); if (present_password) list.add(password); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); } @Override public int compareTo(grant_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); if (lastComparison != 0) { return lastComparison; } if (isSetUsername()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword()); if (lastComparison != 0) { return lastComparison; } if (isSetPassword()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, other.password); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("grant_args("); boolean first = true; sb.append("username:"); if (this.username == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.username, sb); } first = false; if (!first) sb.append(", "); sb.append("password:"); if (this.password == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.password, sb); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class grant_argsStandardSchemeFactory implements SchemeFactory { public grant_argsStandardScheme getScheme() { return new grant_argsStandardScheme(); } } private static class grant_argsStandardScheme extends StandardScheme<grant_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, grant_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // USERNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // PASSWORD if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.password = iprot.readBinary(); struct.setPasswordIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, grant_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.username != null) { oprot.writeFieldBegin(USERNAME_FIELD_DESC); oprot.writeBinary(struct.username); oprot.writeFieldEnd(); } if (struct.password != null) { oprot.writeFieldBegin(PASSWORD_FIELD_DESC); oprot.writeBinary(struct.password); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class grant_argsTupleSchemeFactory implements SchemeFactory { public grant_argsTupleScheme getScheme() { return new grant_argsTupleScheme(); } } private static class grant_argsTupleScheme extends TupleScheme<grant_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, grant_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUsername()) { optionals.set(0); } if (struct.isSetPassword()) { optionals.set(1); } if (struct.isSetCreds()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetUsername()) { oprot.writeBinary(struct.username); } if (struct.isSetPassword()) { oprot.writeBinary(struct.password); } if (struct.isSetCreds()) { struct.creds.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, grant_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } if (incoming.get(1)) { struct.password = iprot.readBinary(); struct.setPasswordIsSet(true); } if (incoming.get(2)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } } } } public static class grant_result implements org.apache.thrift.TBase<grant_result, grant_result._Fields>, java.io.Serializable, Cloneable, Comparable<grant_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new grant_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new grant_resultTupleSchemeFactory()); } /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(grant_result.class, metaDataMap); } public grant_result() { } /** * Performs a deep copy on <i>other</i>. */ public grant_result(grant_result other) { } public grant_result deepCopy() { return new grant_result(this); } @Override public void clear() { } public void setFieldValue(_Fields field, Object value) { switch (field) { } } public Object getFieldValue(_Fields field) { switch (field) { } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof grant_result) return this.equals((grant_result)that); return false; } public boolean equals(grant_result that) { if (that == null) return false; return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); return list.hashCode(); } @Override public int compareTo(grant_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("grant_result("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class grant_resultStandardSchemeFactory implements SchemeFactory { public grant_resultStandardScheme getScheme() { return new grant_resultStandardScheme(); } } private static class grant_resultStandardScheme extends StandardScheme<grant_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, grant_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, grant_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class grant_resultTupleSchemeFactory implements SchemeFactory { public grant_resultTupleScheme getScheme() { return new grant_resultTupleScheme(); } } private static class grant_resultTupleScheme extends TupleScheme<grant_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, grant_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, grant_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class hasUser_args implements org.apache.thrift.TBase<hasUser_args, hasUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<hasUser_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("hasUser_args"); private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", 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 hasUser_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new hasUser_argsTupleSchemeFactory()); } public ByteBuffer username; // required public com.cinchapi.concourse.thrift.AccessToken creds; // 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 { USERNAME((short)1, "username"), CREDS((short)2, "creds"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USERNAME return USERNAME; case 2: // CREDS return CREDS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(hasUser_args.class, metaDataMap); } public hasUser_args() { } public hasUser_args( ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) { this(); this.username = org.apache.thrift.TBaseHelper.copyBinary(username); this.creds = creds; } /** * Performs a deep copy on <i>other</i>. */ public hasUser_args(hasUser_args other) { if (other.isSetUsername()) { this.username = org.apache.thrift.TBaseHelper.copyBinary(other.username); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } } public hasUser_args deepCopy() { return new hasUser_args(this); } @Override public void clear() { this.username = null; this.creds = null; } public byte[] getUsername() { setUsername(org.apache.thrift.TBaseHelper.rightSize(username)); return username == null ? null : username.array(); } public ByteBuffer bufferForUsername() { return org.apache.thrift.TBaseHelper.copyBinary(username); } public hasUser_args setUsername(byte[] username) { this.username = username == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(username, username.length)); return this; } public hasUser_args setUsername(ByteBuffer username) { this.username = org.apache.thrift.TBaseHelper.copyBinary(username); return this; } public void unsetUsername() { this.username = null; } /** Returns true if field username is set (has been assigned a value) and false otherwise */ public boolean isSetUsername() { return this.username != null; } public void setUsernameIsSet(boolean value) { if (!value) { this.username = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public hasUser_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case USERNAME: if (value == null) { unsetUsername(); } else { setUsername((ByteBuffer)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case USERNAME: return getUsername(); case CREDS: return getCreds(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case USERNAME: return isSetUsername(); case CREDS: return isSetCreds(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof hasUser_args) return this.equals((hasUser_args)that); return false; } public boolean equals(hasUser_args that) { if (that == null) return false; boolean this_present_username = true && this.isSetUsername(); boolean that_present_username = true && that.isSetUsername(); if (this_present_username || that_present_username) { if (!(this_present_username && that_present_username)) return false; if (!this.username.equals(that.username)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_username = true && (isSetUsername()); list.add(present_username); if (present_username) list.add(username); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); } @Override public int compareTo(hasUser_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); if (lastComparison != 0) { return lastComparison; } if (isSetUsername()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("hasUser_args("); boolean first = true; sb.append("username:"); if (this.username == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.username, sb); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class hasUser_argsStandardSchemeFactory implements SchemeFactory { public hasUser_argsStandardScheme getScheme() { return new hasUser_argsStandardScheme(); } } private static class hasUser_argsStandardScheme extends StandardScheme<hasUser_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, hasUser_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // USERNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, hasUser_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.username != null) { oprot.writeFieldBegin(USERNAME_FIELD_DESC); oprot.writeBinary(struct.username); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class hasUser_argsTupleSchemeFactory implements SchemeFactory { public hasUser_argsTupleScheme getScheme() { return new hasUser_argsTupleScheme(); } } private static class hasUser_argsTupleScheme extends TupleScheme<hasUser_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, hasUser_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUsername()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUsername()) { oprot.writeBinary(struct.username); } if (struct.isSetCreds()) { struct.creds.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, hasUser_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } } } } public static class hasUser_result implements org.apache.thrift.TBase<hasUser_result, hasUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<hasUser_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("hasUser_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new hasUser_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new hasUser_resultTupleSchemeFactory()); } public boolean 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>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(hasUser_result.class, metaDataMap); } public hasUser_result() { } public hasUser_result( boolean success) { this(); this.success = success; setSuccessIsSet(true); } /** * Performs a deep copy on <i>other</i>. */ public hasUser_result(hasUser_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; } public hasUser_result deepCopy() { return new hasUser_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; } public boolean isSuccess() { return this.success; } public hasUser_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; } public void unsetSuccess() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Boolean)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return isSuccess(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof hasUser_result) return this.equals((hasUser_result)that); return false; } public boolean equals(hasUser_result that) { if (that == null) return false; boolean this_present_success = true; boolean that_present_success = true; if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (this.success != that.success) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_success = true; list.add(present_success); if (present_success) list.add(success); return list.hashCode(); } @Override public int compareTo(hasUser_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("hasUser_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class hasUser_resultStandardSchemeFactory implements SchemeFactory { public hasUser_resultStandardScheme getScheme() { return new hasUser_resultStandardScheme(); } } private static class hasUser_resultStandardScheme extends StandardScheme<hasUser_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, hasUser_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, hasUser_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeBool(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class hasUser_resultTupleSchemeFactory implements SchemeFactory { public hasUser_resultTupleScheme getScheme() { return new hasUser_resultTupleScheme(); } } private static class hasUser_resultTupleScheme extends TupleScheme<hasUser_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, hasUser_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { oprot.writeBool(struct.success); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, hasUser_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } } } } public static class installPluginBundle_args implements org.apache.thrift.TBase<installPluginBundle_args, installPluginBundle_args._Fields>, java.io.Serializable, Cloneable, Comparable<installPluginBundle_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("installPluginBundle_args"); private static final org.apache.thrift.protocol.TField FILE_FIELD_DESC = new org.apache.thrift.protocol.TField("file", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", 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 installPluginBundle_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new installPluginBundle_argsTupleSchemeFactory()); } public String file; // required public com.cinchapi.concourse.thrift.AccessToken creds; // 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 { FILE((short)1, "file"), CREDS((short)2, "creds"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // FILE return FILE; case 2: // CREDS return CREDS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.FILE, new org.apache.thrift.meta_data.FieldMetaData("file", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(installPluginBundle_args.class, metaDataMap); } public installPluginBundle_args() { } public installPluginBundle_args( String file, com.cinchapi.concourse.thrift.AccessToken creds) { this(); this.file = file; this.creds = creds; } /** * Performs a deep copy on <i>other</i>. */ public installPluginBundle_args(installPluginBundle_args other) { if (other.isSetFile()) { this.file = other.file; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } } public installPluginBundle_args deepCopy() { return new installPluginBundle_args(this); } @Override public void clear() { this.file = null; this.creds = null; } public String getFile() { return this.file; } public installPluginBundle_args setFile(String file) { this.file = file; return this; } public void unsetFile() { this.file = null; } /** Returns true if field file is set (has been assigned a value) and false otherwise */ public boolean isSetFile() { return this.file != null; } public void setFileIsSet(boolean value) { if (!value) { this.file = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public installPluginBundle_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case FILE: if (value == null) { unsetFile(); } else { setFile((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case FILE: return getFile(); case CREDS: return getCreds(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case FILE: return isSetFile(); case CREDS: return isSetCreds(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof installPluginBundle_args) return this.equals((installPluginBundle_args)that); return false; } public boolean equals(installPluginBundle_args that) { if (that == null) return false; boolean this_present_file = true && this.isSetFile(); boolean that_present_file = true && that.isSetFile(); if (this_present_file || that_present_file) { if (!(this_present_file && that_present_file)) return false; if (!this.file.equals(that.file)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_file = true && (isSetFile()); list.add(present_file); if (present_file) list.add(file); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); } @Override public int compareTo(installPluginBundle_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetFile()).compareTo(other.isSetFile()); if (lastComparison != 0) { return lastComparison; } if (isSetFile()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.file, other.file); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("installPluginBundle_args("); boolean first = true; sb.append("file:"); if (this.file == null) { sb.append("null"); } else { sb.append(this.file); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class installPluginBundle_argsStandardSchemeFactory implements SchemeFactory { public installPluginBundle_argsStandardScheme getScheme() { return new installPluginBundle_argsStandardScheme(); } } private static class installPluginBundle_argsStandardScheme extends StandardScheme<installPluginBundle_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, installPluginBundle_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // FILE if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.file = iprot.readString(); struct.setFileIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, installPluginBundle_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.file != null) { oprot.writeFieldBegin(FILE_FIELD_DESC); oprot.writeString(struct.file); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class installPluginBundle_argsTupleSchemeFactory implements SchemeFactory { public installPluginBundle_argsTupleScheme getScheme() { return new installPluginBundle_argsTupleScheme(); } } private static class installPluginBundle_argsTupleScheme extends TupleScheme<installPluginBundle_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, installPluginBundle_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetFile()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetFile()) { oprot.writeString(struct.file); } if (struct.isSetCreds()) { struct.creds.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, installPluginBundle_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.file = iprot.readString(); struct.setFileIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } } } } public static class installPluginBundle_result implements org.apache.thrift.TBase<installPluginBundle_result, installPluginBundle_result._Fields>, java.io.Serializable, Cloneable, Comparable<installPluginBundle_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("installPluginBundle_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 installPluginBundle_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new installPluginBundle_resultTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.ManagementException 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>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // EX return EX; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(installPluginBundle_result.class, metaDataMap); } public installPluginBundle_result() { } public installPluginBundle_result( com.cinchapi.concourse.thrift.ManagementException ex) { this(); this.ex = ex; } /** * Performs a deep copy on <i>other</i>. */ public installPluginBundle_result(installPluginBundle_result other) { if (other.isSetEx()) { this.ex = new com.cinchapi.concourse.thrift.ManagementException(other.ex); } } public installPluginBundle_result deepCopy() { return new installPluginBundle_result(this); } @Override public void clear() { this.ex = null; } public com.cinchapi.concourse.thrift.ManagementException getEx() { return this.ex; } public installPluginBundle_result setEx(com.cinchapi.concourse.thrift.ManagementException ex) { this.ex = ex; return this; } public void unsetEx() { this.ex = null; } /** Returns true if field ex is set (has been assigned a value) and false otherwise */ public boolean isSetEx() { return this.ex != null; } public void setExIsSet(boolean value) { if (!value) { this.ex = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case EX: if (value == null) { unsetEx(); } else { setEx((com.cinchapi.concourse.thrift.ManagementException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case EX: return getEx(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case EX: return isSetEx(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof installPluginBundle_result) return this.equals((installPluginBundle_result)that); return false; } public boolean equals(installPluginBundle_result that) { if (that == null) return false; boolean this_present_ex = true && this.isSetEx(); boolean that_present_ex = true && that.isSetEx(); if (this_present_ex || that_present_ex) { if (!(this_present_ex && that_present_ex)) return false; if (!this.ex.equals(that.ex)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_ex = true && (isSetEx()); list.add(present_ex); if (present_ex) list.add(ex); return list.hashCode(); } @Override public int compareTo(installPluginBundle_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("installPluginBundle_result("); boolean first = true; sb.append("ex:"); if (this.ex == null) { sb.append("null"); } else { sb.append(this.ex); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class installPluginBundle_resultStandardSchemeFactory implements SchemeFactory { public installPluginBundle_resultStandardScheme getScheme() { return new installPluginBundle_resultStandardScheme(); } } private static class installPluginBundle_resultStandardScheme extends StandardScheme<installPluginBundle_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, installPluginBundle_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.ex = new com.cinchapi.concourse.thrift.ManagementException(); struct.ex.read(iprot); struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, installPluginBundle_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ex != null) { oprot.writeFieldBegin(EX_FIELD_DESC); struct.ex.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class installPluginBundle_resultTupleSchemeFactory implements SchemeFactory { public installPluginBundle_resultTupleScheme getScheme() { return new installPluginBundle_resultTupleScheme(); } } private static class installPluginBundle_resultTupleScheme extends TupleScheme<installPluginBundle_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, installPluginBundle_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetEx()) { struct.ex.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, installPluginBundle_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.ex = new com.cinchapi.concourse.thrift.ManagementException(); struct.ex.read(iprot); struct.setExIsSet(true); } } } } public static class listAllEnvironments_args implements org.apache.thrift.TBase<listAllEnvironments_args, listAllEnvironments_args._Fields>, java.io.Serializable, Cloneable, Comparable<listAllEnvironments_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listAllEnvironments_args"); private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", 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 listAllEnvironments_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new listAllEnvironments_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken token; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { TOKEN((short)1, "token"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TOKEN return TOKEN; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listAllEnvironments_args.class, metaDataMap); } public listAllEnvironments_args() { } public listAllEnvironments_args( com.cinchapi.concourse.thrift.AccessToken token) { this(); this.token = token; } /** * Performs a deep copy on <i>other</i>. */ public listAllEnvironments_args(listAllEnvironments_args other) { if (other.isSetToken()) { this.token = new com.cinchapi.concourse.thrift.AccessToken(other.token); } } public listAllEnvironments_args deepCopy() { return new listAllEnvironments_args(this); } @Override public void clear() { this.token = null; } public com.cinchapi.concourse.thrift.AccessToken getToken() { return this.token; } public listAllEnvironments_args setToken(com.cinchapi.concourse.thrift.AccessToken token) { this.token = token; return this; } public void unsetToken() { this.token = null; } /** Returns true if field token is set (has been assigned a value) and false otherwise */ public boolean isSetToken() { return this.token != null; } public void setTokenIsSet(boolean value) { if (!value) { this.token = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case TOKEN: if (value == null) { unsetToken(); } else { setToken((com.cinchapi.concourse.thrift.AccessToken)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case TOKEN: return getToken(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TOKEN: return isSetToken(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listAllEnvironments_args) return this.equals((listAllEnvironments_args)that); return false; } public boolean equals(listAllEnvironments_args that) { if (that == null) return false; boolean this_present_token = true && this.isSetToken(); boolean that_present_token = true && that.isSetToken(); if (this_present_token || that_present_token) { if (!(this_present_token && that_present_token)) return false; if (!this.token.equals(that.token)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_token = true && (isSetToken()); list.add(present_token); if (present_token) list.add(token); return list.hashCode(); } @Override public int compareTo(listAllEnvironments_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; } if (isSetToken()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("listAllEnvironments_args("); boolean first = true; sb.append("token:"); if (this.token == null) { sb.append("null"); } else { sb.append(this.token); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (token != null) { token.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class listAllEnvironments_argsStandardSchemeFactory implements SchemeFactory { public listAllEnvironments_argsStandardScheme getScheme() { return new listAllEnvironments_argsStandardScheme(); } } private static class listAllEnvironments_argsStandardScheme extends StandardScheme<listAllEnvironments_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, listAllEnvironments_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.token = new com.cinchapi.concourse.thrift.AccessToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listAllEnvironments_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.token != null) { oprot.writeFieldBegin(TOKEN_FIELD_DESC); struct.token.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listAllEnvironments_argsTupleSchemeFactory implements SchemeFactory { public listAllEnvironments_argsTupleScheme getScheme() { return new listAllEnvironments_argsTupleScheme(); } } private static class listAllEnvironments_argsTupleScheme extends TupleScheme<listAllEnvironments_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listAllEnvironments_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetToken()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetToken()) { struct.token.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listAllEnvironments_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.token = new com.cinchapi.concourse.thrift.AccessToken(); struct.token.read(iprot); struct.setTokenIsSet(true); } } } } public static class listAllEnvironments_result implements org.apache.thrift.TBase<listAllEnvironments_result, listAllEnvironments_result._Fields>, java.io.Serializable, Cloneable, Comparable<listAllEnvironments_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listAllEnvironments_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 listAllEnvironments_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new listAllEnvironments_resultTupleSchemeFactory()); } public 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>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listAllEnvironments_result.class, metaDataMap); } public listAllEnvironments_result() { } public listAllEnvironments_result( String success) { this(); this.success = success; } /** * Performs a deep copy on <i>other</i>. */ public listAllEnvironments_result(listAllEnvironments_result other) { if (other.isSetSuccess()) { this.success = other.success; } } public listAllEnvironments_result deepCopy() { return new listAllEnvironments_result(this); } @Override public void clear() { this.success = null; } public String getSuccess() { return this.success; } public listAllEnvironments_result setSuccess(String success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listAllEnvironments_result) return this.equals((listAllEnvironments_result)that); return false; } public boolean equals(listAllEnvironments_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); return list.hashCode(); } @Override public int compareTo(listAllEnvironments_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("listAllEnvironments_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class listAllEnvironments_resultStandardSchemeFactory implements SchemeFactory { public listAllEnvironments_resultStandardScheme getScheme() { return new listAllEnvironments_resultStandardScheme(); } } private static class listAllEnvironments_resultStandardScheme extends StandardScheme<listAllEnvironments_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, listAllEnvironments_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listAllEnvironments_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeString(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listAllEnvironments_resultTupleSchemeFactory implements SchemeFactory { public listAllEnvironments_resultTupleScheme getScheme() { return new listAllEnvironments_resultTupleScheme(); } } private static class listAllEnvironments_resultTupleScheme extends TupleScheme<listAllEnvironments_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listAllEnvironments_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { oprot.writeString(struct.success); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listAllEnvironments_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } } } } public static class listAllUserSessions_args implements org.apache.thrift.TBase<listAllUserSessions_args, listAllUserSessions_args._Fields>, java.io.Serializable, Cloneable, Comparable<listAllUserSessions_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listAllUserSessions_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", 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 listAllUserSessions_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new listAllUserSessions_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // 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 { CREDS((short)1, "creds"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // CREDS return CREDS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listAllUserSessions_args.class, metaDataMap); } public listAllUserSessions_args() { } public listAllUserSessions_args( com.cinchapi.concourse.thrift.AccessToken creds) { this(); this.creds = creds; } /** * Performs a deep copy on <i>other</i>. */ public listAllUserSessions_args(listAllUserSessions_args other) { if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } } public listAllUserSessions_args deepCopy() { return new listAllUserSessions_args(this); } @Override public void clear() { this.creds = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public listAllUserSessions_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listAllUserSessions_args) return this.equals((listAllUserSessions_args)that); return false; } public boolean equals(listAllUserSessions_args that) { if (that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); } @Override public int compareTo(listAllUserSessions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("listAllUserSessions_args("); boolean first = true; sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class listAllUserSessions_argsStandardSchemeFactory implements SchemeFactory { public listAllUserSessions_argsStandardScheme getScheme() { return new listAllUserSessions_argsStandardScheme(); } } private static class listAllUserSessions_argsStandardScheme extends StandardScheme<listAllUserSessions_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, listAllUserSessions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listAllUserSessions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listAllUserSessions_argsTupleSchemeFactory implements SchemeFactory { public listAllUserSessions_argsTupleScheme getScheme() { return new listAllUserSessions_argsTupleScheme(); } } private static class listAllUserSessions_argsTupleScheme extends TupleScheme<listAllUserSessions_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listAllUserSessions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCreds()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetCreds()) { struct.creds.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listAllUserSessions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } } } } public static class listAllUserSessions_result implements org.apache.thrift.TBase<listAllUserSessions_result, listAllUserSessions_result._Fields>, java.io.Serializable, Cloneable, Comparable<listAllUserSessions_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listAllUserSessions_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 listAllUserSessions_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new listAllUserSessions_resultTupleSchemeFactory()); } public 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>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listAllUserSessions_result.class, metaDataMap); } public listAllUserSessions_result() { } public listAllUserSessions_result( String success) { this(); this.success = success; } /** * Performs a deep copy on <i>other</i>. */ public listAllUserSessions_result(listAllUserSessions_result other) { if (other.isSetSuccess()) { this.success = other.success; } } public listAllUserSessions_result deepCopy() { return new listAllUserSessions_result(this); } @Override public void clear() { this.success = null; } public String getSuccess() { return this.success; } public listAllUserSessions_result setSuccess(String success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listAllUserSessions_result) return this.equals((listAllUserSessions_result)that); return false; } public boolean equals(listAllUserSessions_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); return list.hashCode(); } @Override public int compareTo(listAllUserSessions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("listAllUserSessions_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class listAllUserSessions_resultStandardSchemeFactory implements SchemeFactory { public listAllUserSessions_resultStandardScheme getScheme() { return new listAllUserSessions_resultStandardScheme(); } } private static class listAllUserSessions_resultStandardScheme extends StandardScheme<listAllUserSessions_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, listAllUserSessions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listAllUserSessions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeString(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listAllUserSessions_resultTupleSchemeFactory implements SchemeFactory { public listAllUserSessions_resultTupleScheme getScheme() { return new listAllUserSessions_resultTupleScheme(); } } private static class listAllUserSessions_resultTupleScheme extends TupleScheme<listAllUserSessions_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listAllUserSessions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { oprot.writeString(struct.success); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listAllUserSessions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } } } } public static class listPluginBundles_args implements org.apache.thrift.TBase<listPluginBundles_args, listPluginBundles_args._Fields>, java.io.Serializable, Cloneable, Comparable<listPluginBundles_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listPluginBundles_args"); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", 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 listPluginBundles_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new listPluginBundles_argsTupleSchemeFactory()); } public com.cinchapi.concourse.thrift.AccessToken creds; // 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 { CREDS((short)1, "creds"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // CREDS return CREDS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listPluginBundles_args.class, metaDataMap); } public listPluginBundles_args() { } public listPluginBundles_args( com.cinchapi.concourse.thrift.AccessToken creds) { this(); this.creds = creds; } /** * Performs a deep copy on <i>other</i>. */ public listPluginBundles_args(listPluginBundles_args other) { if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } } public listPluginBundles_args deepCopy() { return new listPluginBundles_args(this); } @Override public void clear() { this.creds = null; } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public listPluginBundles_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return getCreds(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case CREDS: return isSetCreds(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listPluginBundles_args) return this.equals((listPluginBundles_args)that); return false; } public boolean equals(listPluginBundles_args that) { if (that == null) return false; boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); } @Override public int compareTo(listPluginBundles_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("listPluginBundles_args("); boolean first = true; sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class listPluginBundles_argsStandardSchemeFactory implements SchemeFactory { public listPluginBundles_argsStandardScheme getScheme() { return new listPluginBundles_argsStandardScheme(); } } private static class listPluginBundles_argsStandardScheme extends StandardScheme<listPluginBundles_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, listPluginBundles_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listPluginBundles_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listPluginBundles_argsTupleSchemeFactory implements SchemeFactory { public listPluginBundles_argsTupleScheme getScheme() { return new listPluginBundles_argsTupleScheme(); } } private static class listPluginBundles_argsTupleScheme extends TupleScheme<listPluginBundles_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listPluginBundles_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetCreds()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetCreds()) { struct.creds.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listPluginBundles_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } } } } public static class listPluginBundles_result implements org.apache.thrift.TBase<listPluginBundles_result, listPluginBundles_result._Fields>, java.io.Serializable, Cloneable, Comparable<listPluginBundles_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listPluginBundles_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 listPluginBundles_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new listPluginBundles_resultTupleSchemeFactory()); } public 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>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.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); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listPluginBundles_result.class, metaDataMap); } public listPluginBundles_result() { } public listPluginBundles_result( String success) { this(); this.success = success; } /** * Performs a deep copy on <i>other</i>. */ public listPluginBundles_result(listPluginBundles_result other) { if (other.isSetSuccess()) { this.success = other.success; } } public listPluginBundles_result deepCopy() { return new listPluginBundles_result(this); } @Override public void clear() { this.success = null; } public String getSuccess() { return this.success; } public listPluginBundles_result setSuccess(String success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listPluginBundles_result) return this.equals((listPluginBundles_result)that); return false; } public boolean equals(listPluginBundles_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); return list.hashCode(); } @Override public int compareTo(listPluginBundles_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("listPluginBundles_result("); boolean first = true; sb.append("success:"); if (this.success == null) { sb.append("null"); } else { sb.append(this.success); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class listPluginBundles_resultStandardSchemeFactory implements SchemeFactory { public listPluginBundles_resultStandardScheme getScheme() { return new listPluginBundles_resultStandardScheme(); } } private static class listPluginBundles_resultStandardScheme extends StandardScheme<listPluginBundles_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, listPluginBundles_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listPluginBundles_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeString(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listPluginBundles_resultTupleSchemeFactory implements SchemeFactory { public listPluginBundles_resultTupleScheme getScheme() { return new listPluginBundles_resultTupleScheme(); } } private static class listPluginBundles_resultTupleScheme extends TupleScheme<listPluginBundles_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listPluginBundles_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { oprot.writeString(struct.success); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listPluginBundles_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } } } } public static class revoke_args implements org.apache.thrift.TBase<revoke_args, revoke_args._Fields>, java.io.Serializable, Cloneable, Comparable<revoke_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_args"); private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", 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 revoke_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new revoke_argsTupleSchemeFactory()); } public ByteBuffer username; // required public com.cinchapi.concourse.thrift.AccessToken creds; // 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 { USERNAME((short)1, "username"), CREDS((short)2, "creds"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // USERNAME return USERNAME; case 2: // CREDS return CREDS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revoke_args.class, metaDataMap); } public revoke_args() { } public revoke_args( ByteBuffer username, com.cinchapi.concourse.thrift.AccessToken creds) { this(); this.username = org.apache.thrift.TBaseHelper.copyBinary(username); this.creds = creds; } /** * Performs a deep copy on <i>other</i>. */ public revoke_args(revoke_args other) { if (other.isSetUsername()) { this.username = org.apache.thrift.TBaseHelper.copyBinary(other.username); } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } } public revoke_args deepCopy() { return new revoke_args(this); } @Override public void clear() { this.username = null; this.creds = null; } public byte[] getUsername() { setUsername(org.apache.thrift.TBaseHelper.rightSize(username)); return username == null ? null : username.array(); } public ByteBuffer bufferForUsername() { return org.apache.thrift.TBaseHelper.copyBinary(username); } public revoke_args setUsername(byte[] username) { this.username = username == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(username, username.length)); return this; } public revoke_args setUsername(ByteBuffer username) { this.username = org.apache.thrift.TBaseHelper.copyBinary(username); return this; } public void unsetUsername() { this.username = null; } /** Returns true if field username is set (has been assigned a value) and false otherwise */ public boolean isSetUsername() { return this.username != null; } public void setUsernameIsSet(boolean value) { if (!value) { this.username = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public revoke_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case USERNAME: if (value == null) { unsetUsername(); } else { setUsername((ByteBuffer)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case USERNAME: return getUsername(); case CREDS: return getCreds(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case USERNAME: return isSetUsername(); case CREDS: return isSetCreds(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revoke_args) return this.equals((revoke_args)that); return false; } public boolean equals(revoke_args that) { if (that == null) return false; boolean this_present_username = true && this.isSetUsername(); boolean that_present_username = true && that.isSetUsername(); if (this_present_username || that_present_username) { if (!(this_present_username && that_present_username)) return false; if (!this.username.equals(that.username)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_username = true && (isSetUsername()); list.add(present_username); if (present_username) list.add(username); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); } @Override public int compareTo(revoke_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); if (lastComparison != 0) { return lastComparison; } if (isSetUsername()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("revoke_args("); boolean first = true; sb.append("username:"); if (this.username == null) { sb.append("null"); } else { org.apache.thrift.TBaseHelper.toString(this.username, sb); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class revoke_argsStandardSchemeFactory implements SchemeFactory { public revoke_argsStandardScheme getScheme() { return new revoke_argsStandardScheme(); } } private static class revoke_argsStandardScheme extends StandardScheme<revoke_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, revoke_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // USERNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, revoke_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.username != null) { oprot.writeFieldBegin(USERNAME_FIELD_DESC); oprot.writeBinary(struct.username); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revoke_argsTupleSchemeFactory implements SchemeFactory { public revoke_argsTupleScheme getScheme() { return new revoke_argsTupleScheme(); } } private static class revoke_argsTupleScheme extends TupleScheme<revoke_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revoke_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUsername()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUsername()) { oprot.writeBinary(struct.username); } if (struct.isSetCreds()) { struct.creds.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revoke_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.username = iprot.readBinary(); struct.setUsernameIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } } } } public static class revoke_result implements org.apache.thrift.TBase<revoke_result, revoke_result._Fields>, java.io.Serializable, Cloneable, Comparable<revoke_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new revoke_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new revoke_resultTupleSchemeFactory()); } /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revoke_result.class, metaDataMap); } public revoke_result() { } /** * Performs a deep copy on <i>other</i>. */ public revoke_result(revoke_result other) { } public revoke_result deepCopy() { return new revoke_result(this); } @Override public void clear() { } public void setFieldValue(_Fields field, Object value) { switch (field) { } } public Object getFieldValue(_Fields field) { switch (field) { } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof revoke_result) return this.equals((revoke_result)that); return false; } public boolean equals(revoke_result that) { if (that == null) return false; return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); return list.hashCode(); } @Override public int compareTo(revoke_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("revoke_result("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class revoke_resultStandardSchemeFactory implements SchemeFactory { public revoke_resultStandardScheme getScheme() { return new revoke_resultStandardScheme(); } } private static class revoke_resultStandardScheme extends StandardScheme<revoke_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, revoke_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, revoke_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class revoke_resultTupleSchemeFactory implements SchemeFactory { public revoke_resultTupleScheme getScheme() { return new revoke_resultTupleScheme(); } } private static class revoke_resultTupleScheme extends TupleScheme<revoke_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, revoke_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, revoke_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class uninstallPluginBundle_args implements org.apache.thrift.TBase<uninstallPluginBundle_args, uninstallPluginBundle_args._Fields>, java.io.Serializable, Cloneable, Comparable<uninstallPluginBundle_args> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("uninstallPluginBundle_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREDS_FIELD_DESC = new org.apache.thrift.protocol.TField("creds", 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 uninstallPluginBundle_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new uninstallPluginBundle_argsTupleSchemeFactory()); } public String name; // required public com.cinchapi.concourse.thrift.AccessToken creds; // 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 { NAME((short)1, "name"), CREDS((short)2, "creds"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NAME return NAME; case 2: // CREDS return CREDS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.CREDS, new org.apache.thrift.meta_data.FieldMetaData("creds", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(uninstallPluginBundle_args.class, metaDataMap); } public uninstallPluginBundle_args() { } public uninstallPluginBundle_args( String name, com.cinchapi.concourse.thrift.AccessToken creds) { this(); this.name = name; this.creds = creds; } /** * Performs a deep copy on <i>other</i>. */ public uninstallPluginBundle_args(uninstallPluginBundle_args other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetCreds()) { this.creds = new com.cinchapi.concourse.thrift.AccessToken(other.creds); } } public uninstallPluginBundle_args deepCopy() { return new uninstallPluginBundle_args(this); } @Override public void clear() { this.name = null; this.creds = null; } public String getName() { return this.name; } public uninstallPluginBundle_args setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public com.cinchapi.concourse.thrift.AccessToken getCreds() { return this.creds; } public uninstallPluginBundle_args setCreds(com.cinchapi.concourse.thrift.AccessToken creds) { this.creds = creds; return this; } public void unsetCreds() { this.creds = null; } /** Returns true if field creds is set (has been assigned a value) and false otherwise */ public boolean isSetCreds() { return this.creds != null; } public void setCredsIsSet(boolean value) { if (!value) { this.creds = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; case CREDS: if (value == null) { unsetCreds(); } else { setCreds((com.cinchapi.concourse.thrift.AccessToken)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); case CREDS: return getCreds(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NAME: return isSetName(); case CREDS: return isSetCreds(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof uninstallPluginBundle_args) return this.equals((uninstallPluginBundle_args)that); return false; } public boolean equals(uninstallPluginBundle_args that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } boolean this_present_creds = true && this.isSetCreds(); boolean that_present_creds = true && that.isSetCreds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); boolean present_creds = true && (isSetCreds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); } @Override public int compareTo(uninstallPluginBundle_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetCreds()).compareTo(other.isSetCreds()); if (lastComparison != 0) { return lastComparison; } if (isSetCreds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creds, other.creds); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("uninstallPluginBundle_args("); boolean first = true; sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } first = false; if (!first) sb.append(", "); sb.append("creds:"); if (this.creds == null) { sb.append("null"); } else { sb.append(this.creds); } first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (creds != null) { creds.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class uninstallPluginBundle_argsStandardSchemeFactory implements SchemeFactory { public uninstallPluginBundle_argsStandardScheme getScheme() { return new uninstallPluginBundle_argsStandardScheme(); } } private static class uninstallPluginBundle_argsStandardScheme extends StandardScheme<uninstallPluginBundle_args> { public void read(org.apache.thrift.protocol.TProtocol iprot, uninstallPluginBundle_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, uninstallPluginBundle_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class uninstallPluginBundle_argsTupleSchemeFactory implements SchemeFactory { public uninstallPluginBundle_argsTupleScheme getScheme() { return new uninstallPluginBundle_argsTupleScheme(); } } private static class uninstallPluginBundle_argsTupleScheme extends TupleScheme<uninstallPluginBundle_args> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, uninstallPluginBundle_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetName()) { optionals.set(0); } if (struct.isSetCreds()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetName()) { oprot.writeString(struct.name); } if (struct.isSetCreds()) { struct.creds.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, uninstallPluginBundle_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } if (incoming.get(1)) { struct.creds = new com.cinchapi.concourse.thrift.AccessToken(); struct.creds.read(iprot); struct.setCredsIsSet(true); } } } } public static class uninstallPluginBundle_result implements org.apache.thrift.TBase<uninstallPluginBundle_result, uninstallPluginBundle_result._Fields>, java.io.Serializable, Cloneable, Comparable<uninstallPluginBundle_result> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("uninstallPluginBundle_result"); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { schemes.put(StandardScheme.class, new uninstallPluginBundle_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new uninstallPluginBundle_resultTupleSchemeFactory()); } /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(uninstallPluginBundle_result.class, metaDataMap); } public uninstallPluginBundle_result() { } /** * Performs a deep copy on <i>other</i>. */ public uninstallPluginBundle_result(uninstallPluginBundle_result other) { } public uninstallPluginBundle_result deepCopy() { return new uninstallPluginBundle_result(this); } @Override public void clear() { } public void setFieldValue(_Fields field, Object value) { switch (field) { } } public Object getFieldValue(_Fields field) { switch (field) { } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof uninstallPluginBundle_result) return this.equals((uninstallPluginBundle_result)that); return false; } public boolean equals(uninstallPluginBundle_result that) { if (that == null) return false; return true; } @Override public int hashCode() { List<Object> list = new ArrayList<Object>(); return list.hashCode(); } @Override public int compareTo(uninstallPluginBundle_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("uninstallPluginBundle_result("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class uninstallPluginBundle_resultStandardSchemeFactory implements SchemeFactory { public uninstallPluginBundle_resultStandardScheme getScheme() { return new uninstallPluginBundle_resultStandardScheme(); } } private static class uninstallPluginBundle_resultStandardScheme extends StandardScheme<uninstallPluginBundle_result> { public void read(org.apache.thrift.protocol.TProtocol iprot, uninstallPluginBundle_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, uninstallPluginBundle_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class uninstallPluginBundle_resultTupleSchemeFactory implements SchemeFactory { public uninstallPluginBundle_resultTupleScheme getScheme() { return new uninstallPluginBundle_resultTupleScheme(); } } private static class uninstallPluginBundle_resultTupleScheme extends TupleScheme<uninstallPluginBundle_result> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, uninstallPluginBundle_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, uninstallPluginBundle_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } }