content: /**
   * Licensed to the Apache Software Foundation (ASF) under one
   * or more contributor license agreements.  See the NOTICE file
   * distributed with this work for additional information
   * regarding copyright ownership.  The ASF licenses this file
   * to you under the Apache License, Version 2.0 (the
   * "License"); you may not use this file except in compliance
   * with the License.  You may obtain a copy of the License at
   *
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  /**
   * Autogenerated by Thrift Compiler (0.9.2)
   *
   * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
   *  @generated
   */
  package backtype.storm.generated;
  
  import org.apache.thrift.scheme.IScheme;
  import org.apache.thrift.scheme.SchemeFactory;
  import org.apache.thrift.scheme.StandardScheme;
  
  import org.apache.thrift.scheme.TupleScheme;
  import org.apache.thrift.protocol.TTupleProtocol;
  import org.apache.thrift.protocol.TProtocolException;
  import org.apache.thrift.EncodingUtils;
  import org.apache.thrift.TException;
  import org.apache.thrift.async.AsyncMethodCallback;
  import org.apache.thrift.server.AbstractNonblockingServer.*;
  import java.util.List;
  import java.util.ArrayList;
  import java.util.Map;
  import java.util.HashMap;
  import java.util.EnumMap;
  import java.util.Set;
  import java.util.HashSet;
  import java.util.EnumSet;
  import java.util.Collections;
  import java.util.BitSet;
  import java.nio.ByteBuffer;
  import java.util.Arrays;
  import javax.annotation.Generated;
  import org.slf4j.Logger;
  import org.slf4j.LoggerFactory;
  
  @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
  @Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2017-2-22")
  public class DistributedRPCInvocations {
  
    public interface Iface {
  
      public void result(String id, String result) throws AuthorizationException, org.apache.thrift.TException;
  
      public DRPCRequest fetchRequest(String functionName) throws AuthorizationException, org.apache.thrift.TException;
  
      public void failRequest(String id) throws AuthorizationException, org.apache.thrift.TException;
  
    }
  
    public interface AsyncIface {
  
      public void result(String id, String result, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
  
      public void fetchRequest(String functionName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
  
      public void failRequest(String id, 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 void result(String id, String result) throws AuthorizationException, org.apache.thrift.TException
      {
        send_result(id, result);
        recv_result();
      }
  
      public void send_result(String id, String result) throws org.apache.thrift.TException
      {
        result_args args = new result_args();
        args.set_id(id);
        args.set_result(result);
        sendBase("result", args);
      }
  
      public void recv_result() throws AuthorizationException, org.apache.thrift.TException
      {
        result_result result = new result_result();
        receiveBase(result, "result");
        if (result.aze != null) {
          throw result.aze;
        }
        return;
      }
  
      public DRPCRequest fetchRequest(String functionName) throws AuthorizationException, org.apache.thrift.TException
      {
        send_fetchRequest(functionName);
        return recv_fetchRequest();
      }
  
      public void send_fetchRequest(String functionName) throws org.apache.thrift.TException
      {
        fetchRequest_args args = new fetchRequest_args();
        args.set_functionName(functionName);
        sendBase("fetchRequest", args);
      }
  
      public DRPCRequest recv_fetchRequest() throws AuthorizationException, org.apache.thrift.TException
      {
        fetchRequest_result result = new fetchRequest_result();
        receiveBase(result, "fetchRequest");
        if (result.is_set_success()) {
          return result.success;
        }
        if (result.aze != null) {
          throw result.aze;
        }
        throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchRequest failed: unknown result");
      }
  
      public void failRequest(String id) throws AuthorizationException, org.apache.thrift.TException
      {
        send_failRequest(id);
        recv_failRequest();
      }
  
      public void send_failRequest(String id) throws org.apache.thrift.TException
      {
        failRequest_args args = new failRequest_args();
        args.set_id(id);
        sendBase("failRequest", args);
      }
  
      public void recv_failRequest() throws AuthorizationException, org.apache.thrift.TException
      {
        failRequest_result result = new failRequest_result();
        receiveBase(result, "failRequest");
        if (result.aze != null) {
          throw result.aze;
        }
        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 result(String id, String result, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
        checkReady();
        result_call method_call = new result_call(id, result, resultHandler, this, ___protocolFactory, ___transport);
        this.___currentMethod = method_call;
        ___manager.call(method_call);
      }
  
      public static class result_call extends org.apache.thrift.async.TAsyncMethodCall {
        private String id;
        private String result;
        public result_call(String id, String result, 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.result = result;
        }
  
        public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
          prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("result", org.apache.thrift.protocol.TMessageType.CALL, 0));
          result_args args = new result_args();
          args.set_id(id);
          args.set_result(result);
          args.write(prot);
          prot.writeMessageEnd();
        }
  
        public void getResult() throws AuthorizationException, 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_result();
        }
      }
  
      public void fetchRequest(String functionName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
        checkReady();
        fetchRequest_call method_call = new fetchRequest_call(functionName, resultHandler, this, ___protocolFactory, ___transport);
        this.___currentMethod = method_call;
        ___manager.call(method_call);
      }
  
      public static class fetchRequest_call extends org.apache.thrift.async.TAsyncMethodCall {
        private String functionName;
        public fetchRequest_call(String functionName, 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.functionName = functionName;
        }
  
        public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
          prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchRequest", org.apache.thrift.protocol.TMessageType.CALL, 0));
          fetchRequest_args args = new fetchRequest_args();
          args.set_functionName(functionName);
          args.write(prot);
          prot.writeMessageEnd();
        }
  
        public DRPCRequest getResult() throws AuthorizationException, 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_fetchRequest();
        }
      }
  
      public void failRequest(String id, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
        checkReady();
        failRequest_call method_call = new failRequest_call(id, resultHandler, this, ___protocolFactory, ___transport);
        this.___currentMethod = method_call;
        ___manager.call(method_call);
      }
  
      public static class failRequest_call extends org.apache.thrift.async.TAsyncMethodCall {
        private String id;
        public failRequest_call(String id, 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;
        }
  
        public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
          prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("failRequest", org.apache.thrift.protocol.TMessageType.CALL, 0));
          failRequest_args args = new failRequest_args();
          args.set_id(id);
          args.write(prot);
          prot.writeMessageEnd();
        }
  
        public void getResult() throws AuthorizationException, 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_failRequest();
        }
      }
  
    }
  
    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("result", new result());
        processMap.put("fetchRequest", new fetchRequest());
        processMap.put("failRequest", new failRequest());
        return processMap;
      }
  
      public static class result<I extends Iface> extends org.apache.thrift.ProcessFunction<I, result_args> {
        public result() {
          super("result");
        }
  
        public result_args getEmptyArgsInstance() {
          return new result_args();
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public result_result getResult(I iface, result_args args) throws org.apache.thrift.TException {
          result_result result = new result_result();
          try {
            iface.result(args.id, args.result);
          } catch (AuthorizationException aze) {
            result.aze = aze;
          }
          return result;
        }
      }
  
      public static class fetchRequest<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchRequest_args> {
        public fetchRequest() {
          super("fetchRequest");
        }
  
        public fetchRequest_args getEmptyArgsInstance() {
          return new fetchRequest_args();
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public fetchRequest_result getResult(I iface, fetchRequest_args args) throws org.apache.thrift.TException {
          fetchRequest_result result = new fetchRequest_result();
          try {
            result.success = iface.fetchRequest(args.functionName);
          } catch (AuthorizationException aze) {
            result.aze = aze;
          }
          return result;
        }
      }
  
      public static class failRequest<I extends Iface> extends org.apache.thrift.ProcessFunction<I, failRequest_args> {
        public failRequest() {
          super("failRequest");
        }
  
        public failRequest_args getEmptyArgsInstance() {
          return new failRequest_args();
        }
  
        protected boolean isOneway() {
          return false;
        }
  
        public failRequest_result getResult(I iface, failRequest_args args) throws org.apache.thrift.TException {
          failRequest_result result = new failRequest_result();
          try {
            iface.failRequest(args.id);
          } catch (AuthorizationException aze) {
            result.aze = aze;
          }
          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("result", new result());
        processMap.put("fetchRequest", new fetchRequest());
        processMap.put("failRequest", new failRequest());
        return processMap;
      }
  
      public static class result<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, result_args, Void> {
        public result() {
          super("result");
        }
  
        public result_args getEmptyArgsInstance() {
          return new result_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) {
              result_result result = new result_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;
              result_result result = new result_result();
              if (e instanceof AuthorizationException) {
                          result.aze = (AuthorizationException) e;
                          result.set_aze_isSet(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, result_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
          iface.result(args.id, args.result,resultHandler);
        }
      }
  
      public static class fetchRequest<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, fetchRequest_args, DRPCRequest> {
        public fetchRequest() {
          super("fetchRequest");
        }
  
        public fetchRequest_args getEmptyArgsInstance() {
          return new fetchRequest_args();
        }
  
        public AsyncMethodCallback<DRPCRequest> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
          final org.apache.thrift.AsyncProcessFunction fcall = this;
          return new AsyncMethodCallback<DRPCRequest>() { 
            public void onComplete(DRPCRequest o) {
              fetchRequest_result result = new fetchRequest_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;
              fetchRequest_result result = new fetchRequest_result();
              if (e instanceof AuthorizationException) {
                          result.aze = (AuthorizationException) e;
                          result.set_aze_isSet(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, fetchRequest_args args, org.apache.thrift.async.AsyncMethodCallback<DRPCRequest> resultHandler) throws TException {
          iface.fetchRequest(args.functionName,resultHandler);
        }
      }
  
      public static class failRequest<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, failRequest_args, Void> {
        public failRequest() {
          super("failRequest");
        }
  
        public failRequest_args getEmptyArgsInstance() {
          return new failRequest_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) {
              failRequest_result result = new failRequest_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;
              failRequest_result result = new failRequest_result();
              if (e instanceof AuthorizationException) {
                          result.aze = (AuthorizationException) e;
                          result.set_aze_isSet(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, failRequest_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
          iface.failRequest(args.id,resultHandler);
        }
      }
  
    }
  
    public static class result_args implements org.apache.thrift.TBase<result_args, result_args._Fields>, java.io.Serializable, Cloneable, Comparable<result_args>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("result_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 RESULT_FIELD_DESC = new org.apache.thrift.protocol.TField("result", 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 result_argsStandardSchemeFactory());
        schemes.put(TupleScheme.class, new result_argsTupleSchemeFactory());
      }
  
      private String id; // required
      private String result; // required
  
      /** 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"),
        RESULT((short)2, "result");
  
        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: // RESULT
              return RESULT;
            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.RESULT, new org.apache.thrift.meta_data.FieldMetaData("result", 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(result_args.class, metaDataMap);
      }
  
      public result_args() {
      }
  
      public result_args(
        String id,
        String result)
      {
        this();
        this.id = id;
        this.result = result;
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public result_args(result_args other) {
        if (other.is_set_id()) {
          this.id = other.id;
        }
        if (other.is_set_result()) {
          this.result = other.result;
        }
      }
  
      public result_args deepCopy() {
        return new result_args(this);
      }
  
      @Override
      public void clear() {
        this.id = null;
        this.result = null;
      }
  
      public String get_id() {
        return this.id;
      }
  
      public void set_id(String id) {
        this.id = id;
      }
  
      public void unset_id() {
        this.id = null;
      }
  
      /** Returns true if field id is set (has been assigned a value) and false otherwise */
      public boolean is_set_id() {
        return this.id != null;
      }
  
      public void set_id_isSet(boolean value) {
        if (!value) {
          this.id = null;
        }
      }
  
      public String get_result() {
        return this.result;
      }
  
      public void set_result(String result) {
        this.result = result;
      }
  
      public void unset_result() {
        this.result = null;
      }
  
      /** Returns true if field result is set (has been assigned a value) and false otherwise */
      public boolean is_set_result() {
        return this.result != null;
      }
  
      public void set_result_isSet(boolean value) {
        if (!value) {
          this.result = null;
        }
      }
  
      public void setFieldValue(_Fields field, Object value) {
        switch (field) {
        case ID:
          if (value == null) {
            unset_id();
          } else {
            set_id((String)value);
          }
          break;
  
        case RESULT:
          if (value == null) {
            unset_result();
          } else {
            set_result((String)value);
          }
          break;
  
        }
      }
  
      public Object getFieldValue(_Fields field) {
        switch (field) {
        case ID:
          return get_id();
  
        case RESULT:
          return get_result();
  
        }
        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 is_set_id();
        case RESULT:
          return is_set_result();
        }
        throw new IllegalStateException();
      }
  
      @Override
      public boolean equals(Object that) {
        if (that == null)
          return false;
        if (that instanceof result_args)
          return this.equals((result_args)that);
        return false;
      }
  
      public boolean equals(result_args that) {
        if (that == null)
          return false;
  
        boolean this_present_id = true && this.is_set_id();
        boolean that_present_id = true && that.is_set_id();
        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_result = true && this.is_set_result();
        boolean that_present_result = true && that.is_set_result();
        if (this_present_result || that_present_result) {
          if (!(this_present_result && that_present_result))
            return false;
          if (!this.result.equals(that.result))
            return false;
        }
  
        return true;
      }
  
      @Override
      public int hashCode() {
        List<Object> list = new ArrayList<Object>();
  
        boolean present_id = true && (is_set_id());
        list.add(present_id);
        if (present_id)
          list.add(id);
  
        boolean present_result = true && (is_set_result());
        list.add(present_result);
        if (present_result)
          list.add(result);
  
        return list.hashCode();
      }
  
      @Override
      public int compareTo(result_args other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        lastComparison = Boolean.valueOf(is_set_id()).compareTo(other.is_set_id());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (is_set_id()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
          if (lastComparison != 0) {
            return lastComparison;
          }
        }
        lastComparison = Boolean.valueOf(is_set_result()).compareTo(other.is_set_result());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (is_set_result()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.result, other.result);
          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("result_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("result:");
        if (this.result == null) {
          sb.append("null");
        } else {
          sb.append(this.result);
        }
        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 result_argsStandardSchemeFactory implements SchemeFactory {
        public result_argsStandardScheme getScheme() {
          return new result_argsStandardScheme();
        }
      }
  
      private static class result_argsStandardScheme extends StandardScheme<result_args> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, result_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.set_id_isSet(true);
                } else { 
                  org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
                }
                break;
              case 2: // RESULT
                if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                  struct.result = iprot.readString();
                  struct.set_result_isSet(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();
          struct.validate();
        }
  
        public void write(org.apache.thrift.protocol.TProtocol oprot, result_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.result != null) {
            oprot.writeFieldBegin(RESULT_FIELD_DESC);
            oprot.writeString(struct.result);
            oprot.writeFieldEnd();
          }
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class result_argsTupleSchemeFactory implements SchemeFactory {
        public result_argsTupleScheme getScheme() {
          return new result_argsTupleScheme();
        }
      }
  
      private static class result_argsTupleScheme extends TupleScheme<result_args> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, result_args struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
          BitSet optionals = new BitSet();
          if (struct.is_set_id()) {
            optionals.set(0);
          }
          if (struct.is_set_result()) {
            optionals.set(1);
          }
          oprot.writeBitSet(optionals, 2);
          if (struct.is_set_id()) {
            oprot.writeString(struct.id);
          }
          if (struct.is_set_result()) {
            oprot.writeString(struct.result);
          }
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, result_args struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
          BitSet incoming = iprot.readBitSet(2);
          if (incoming.get(0)) {
            struct.id = iprot.readString();
            struct.set_id_isSet(true);
          }
          if (incoming.get(1)) {
            struct.result = iprot.readString();
            struct.set_result_isSet(true);
          }
        }
      }
  
    }
  
    public static class result_result implements org.apache.thrift.TBase<result_result, result_result._Fields>, java.io.Serializable, Cloneable, Comparable<result_result>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("result_result");
  
      private static final org.apache.thrift.protocol.TField AZE_FIELD_DESC = new org.apache.thrift.protocol.TField("aze", 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 result_resultStandardSchemeFactory());
        schemes.put(TupleScheme.class, new result_resultTupleSchemeFactory());
      }
  
      private AuthorizationException aze; // required
  
      /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
      public enum _Fields implements org.apache.thrift.TFieldIdEnum {
        AZE((short)1, "aze");
  
        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: // AZE
              return AZE;
            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.AZE, new org.apache.thrift.meta_data.FieldMetaData("aze", 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(result_result.class, metaDataMap);
      }
  
      public result_result() {
      }
  
      public result_result(
        AuthorizationException aze)
      {
        this();
        this.aze = aze;
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public result_result(result_result other) {
        if (other.is_set_aze()) {
          this.aze = new AuthorizationException(other.aze);
        }
      }
  
      public result_result deepCopy() {
        return new result_result(this);
      }
  
      @Override
      public void clear() {
        this.aze = null;
      }
  
      public AuthorizationException get_aze() {
        return this.aze;
      }
  
      public void set_aze(AuthorizationException aze) {
        this.aze = aze;
      }
  
      public void unset_aze() {
        this.aze = null;
      }
  
      /** Returns true if field aze is set (has been assigned a value) and false otherwise */
      public boolean is_set_aze() {
        return this.aze != null;
      }
  
      public void set_aze_isSet(boolean value) {
        if (!value) {
          this.aze = null;
        }
      }
  
      public void setFieldValue(_Fields field, Object value) {
        switch (field) {
        case AZE:
          if (value == null) {
            unset_aze();
          } else {
            set_aze((AuthorizationException)value);
          }
          break;
  
        }
      }
  
      public Object getFieldValue(_Fields field) {
        switch (field) {
        case AZE:
          return get_aze();
  
        }
        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 AZE:
          return is_set_aze();
        }
        throw new IllegalStateException();
      }
  
      @Override
      public boolean equals(Object that) {
        if (that == null)
          return false;
        if (that instanceof result_result)
          return this.equals((result_result)that);
        return false;
      }
  
      public boolean equals(result_result that) {
        if (that == null)
          return false;
  
        boolean this_present_aze = true && this.is_set_aze();
        boolean that_present_aze = true && that.is_set_aze();
        if (this_present_aze || that_present_aze) {
          if (!(this_present_aze && that_present_aze))
            return false;
          if (!this.aze.equals(that.aze))
            return false;
        }
  
        return true;
      }
  
      @Override
      public int hashCode() {
        List<Object> list = new ArrayList<Object>();
  
        boolean present_aze = true && (is_set_aze());
        list.add(present_aze);
        if (present_aze)
          list.add(aze);
  
        return list.hashCode();
      }
  
      @Override
      public int compareTo(result_result other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        lastComparison = Boolean.valueOf(is_set_aze()).compareTo(other.is_set_aze());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (is_set_aze()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aze, other.aze);
          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("result_result(");
        boolean first = true;
  
        sb.append("aze:");
        if (this.aze == null) {
          sb.append("null");
        } else {
          sb.append(this.aze);
        }
        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 result_resultStandardSchemeFactory implements SchemeFactory {
        public result_resultStandardScheme getScheme() {
          return new result_resultStandardScheme();
        }
      }
  
      private static class result_resultStandardScheme extends StandardScheme<result_result> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, result_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: // AZE
                if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
                  struct.aze = new AuthorizationException();
                  struct.aze.read(iprot);
                  struct.set_aze_isSet(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();
          struct.validate();
        }
  
        public void write(org.apache.thrift.protocol.TProtocol oprot, result_result struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          if (struct.aze != null) {
            oprot.writeFieldBegin(AZE_FIELD_DESC);
            struct.aze.write(oprot);
            oprot.writeFieldEnd();
          }
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class result_resultTupleSchemeFactory implements SchemeFactory {
        public result_resultTupleScheme getScheme() {
          return new result_resultTupleScheme();
        }
      }
  
      private static class result_resultTupleScheme extends TupleScheme<result_result> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, result_result struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
          BitSet optionals = new BitSet();
          if (struct.is_set_aze()) {
            optionals.set(0);
          }
          oprot.writeBitSet(optionals, 1);
          if (struct.is_set_aze()) {
            struct.aze.write(oprot);
          }
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, result_result struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
          BitSet incoming = iprot.readBitSet(1);
          if (incoming.get(0)) {
            struct.aze = new AuthorizationException();
            struct.aze.read(iprot);
            struct.set_aze_isSet(true);
          }
        }
      }
  
    }
  
    public static class fetchRequest_args implements org.apache.thrift.TBase<fetchRequest_args, fetchRequest_args._Fields>, java.io.Serializable, Cloneable, Comparable<fetchRequest_args>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchRequest_args");
  
      private static final org.apache.thrift.protocol.TField FUNCTION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("functionName", org.apache.thrift.protocol.TType.STRING, (short)1);
  
      private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
      static {
        schemes.put(StandardScheme.class, new fetchRequest_argsStandardSchemeFactory());
        schemes.put(TupleScheme.class, new fetchRequest_argsTupleSchemeFactory());
      }
  
      private String functionName; // required
  
      /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
      public enum _Fields implements org.apache.thrift.TFieldIdEnum {
        FUNCTION_NAME((short)1, "functionName");
  
        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: // FUNCTION_NAME
              return FUNCTION_NAME;
            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.FUNCTION_NAME, new org.apache.thrift.meta_data.FieldMetaData("functionName", 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(fetchRequest_args.class, metaDataMap);
      }
  
      public fetchRequest_args() {
      }
  
      public fetchRequest_args(
        String functionName)
      {
        this();
        this.functionName = functionName;
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public fetchRequest_args(fetchRequest_args other) {
        if (other.is_set_functionName()) {
          this.functionName = other.functionName;
        }
      }
  
      public fetchRequest_args deepCopy() {
        return new fetchRequest_args(this);
      }
  
      @Override
      public void clear() {
        this.functionName = null;
      }
  
      public String get_functionName() {
        return this.functionName;
      }
  
      public void set_functionName(String functionName) {
        this.functionName = functionName;
      }
  
      public void unset_functionName() {
        this.functionName = null;
      }
  
      /** Returns true if field functionName is set (has been assigned a value) and false otherwise */
      public boolean is_set_functionName() {
        return this.functionName != null;
      }
  
      public void set_functionName_isSet(boolean value) {
        if (!value) {
          this.functionName = null;
        }
      }
  
      public void setFieldValue(_Fields field, Object value) {
        switch (field) {
        case FUNCTION_NAME:
          if (value == null) {
            unset_functionName();
          } else {
            set_functionName((String)value);
          }
          break;
  
        }
      }
  
      public Object getFieldValue(_Fields field) {
        switch (field) {
        case FUNCTION_NAME:
          return get_functionName();
  
        }
        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 FUNCTION_NAME:
          return is_set_functionName();
        }
        throw new IllegalStateException();
      }
  
      @Override
      public boolean equals(Object that) {
        if (that == null)
          return false;
        if (that instanceof fetchRequest_args)
          return this.equals((fetchRequest_args)that);
        return false;
      }
  
      public boolean equals(fetchRequest_args that) {
        if (that == null)
          return false;
  
        boolean this_present_functionName = true && this.is_set_functionName();
        boolean that_present_functionName = true && that.is_set_functionName();
        if (this_present_functionName || that_present_functionName) {
          if (!(this_present_functionName && that_present_functionName))
            return false;
          if (!this.functionName.equals(that.functionName))
            return false;
        }
  
        return true;
      }
  
      @Override
      public int hashCode() {
        List<Object> list = new ArrayList<Object>();
  
        boolean present_functionName = true && (is_set_functionName());
        list.add(present_functionName);
        if (present_functionName)
          list.add(functionName);
  
        return list.hashCode();
      }
  
      @Override
      public int compareTo(fetchRequest_args other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        lastComparison = Boolean.valueOf(is_set_functionName()).compareTo(other.is_set_functionName());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (is_set_functionName()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionName, other.functionName);
          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("fetchRequest_args(");
        boolean first = true;
  
        sb.append("functionName:");
        if (this.functionName == null) {
          sb.append("null");
        } else {
          sb.append(this.functionName);
        }
        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 fetchRequest_argsStandardSchemeFactory implements SchemeFactory {
        public fetchRequest_argsStandardScheme getScheme() {
          return new fetchRequest_argsStandardScheme();
        }
      }
  
      private static class fetchRequest_argsStandardScheme extends StandardScheme<fetchRequest_args> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, fetchRequest_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: // FUNCTION_NAME
                if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                  struct.functionName = iprot.readString();
                  struct.set_functionName_isSet(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();
          struct.validate();
        }
  
        public void write(org.apache.thrift.protocol.TProtocol oprot, fetchRequest_args struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          if (struct.functionName != null) {
            oprot.writeFieldBegin(FUNCTION_NAME_FIELD_DESC);
            oprot.writeString(struct.functionName);
            oprot.writeFieldEnd();
          }
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class fetchRequest_argsTupleSchemeFactory implements SchemeFactory {
        public fetchRequest_argsTupleScheme getScheme() {
          return new fetchRequest_argsTupleScheme();
        }
      }
  
      private static class fetchRequest_argsTupleScheme extends TupleScheme<fetchRequest_args> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, fetchRequest_args struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
          BitSet optionals = new BitSet();
          if (struct.is_set_functionName()) {
            optionals.set(0);
          }
          oprot.writeBitSet(optionals, 1);
          if (struct.is_set_functionName()) {
            oprot.writeString(struct.functionName);
          }
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, fetchRequest_args struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
          BitSet incoming = iprot.readBitSet(1);
          if (incoming.get(0)) {
            struct.functionName = iprot.readString();
            struct.set_functionName_isSet(true);
          }
        }
      }
  
    }
  
    public static class fetchRequest_result implements org.apache.thrift.TBase<fetchRequest_result, fetchRequest_result._Fields>, java.io.Serializable, Cloneable, Comparable<fetchRequest_result>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchRequest_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 AZE_FIELD_DESC = new org.apache.thrift.protocol.TField("aze", 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 fetchRequest_resultStandardSchemeFactory());
        schemes.put(TupleScheme.class, new fetchRequest_resultTupleSchemeFactory());
      }
  
      private DRPCRequest success; // required
      private AuthorizationException aze; // required
  
      /** 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"),
        AZE((short)1, "aze");
  
        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: // AZE
              return AZE;
            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, DRPCRequest.class)));
        tmpMap.put(_Fields.AZE, new org.apache.thrift.meta_data.FieldMetaData("aze", 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(fetchRequest_result.class, metaDataMap);
      }
  
      public fetchRequest_result() {
      }
  
      public fetchRequest_result(
        DRPCRequest success,
        AuthorizationException aze)
      {
        this();
        this.success = success;
        this.aze = aze;
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public fetchRequest_result(fetchRequest_result other) {
        if (other.is_set_success()) {
          this.success = new DRPCRequest(other.success);
        }
        if (other.is_set_aze()) {
          this.aze = new AuthorizationException(other.aze);
        }
      }
  
      public fetchRequest_result deepCopy() {
        return new fetchRequest_result(this);
      }
  
      @Override
      public void clear() {
        this.success = null;
        this.aze = null;
      }
  
      public DRPCRequest get_success() {
        return this.success;
      }
  
      public void set_success(DRPCRequest success) {
        this.success = success;
      }
  
      public void unset_success() {
        this.success = null;
      }
  
      /** Returns true if field success is set (has been assigned a value) and false otherwise */
      public boolean is_set_success() {
        return this.success != null;
      }
  
      public void set_success_isSet(boolean value) {
        if (!value) {
          this.success = null;
        }
      }
  
      public AuthorizationException get_aze() {
        return this.aze;
      }
  
      public void set_aze(AuthorizationException aze) {
        this.aze = aze;
      }
  
      public void unset_aze() {
        this.aze = null;
      }
  
      /** Returns true if field aze is set (has been assigned a value) and false otherwise */
      public boolean is_set_aze() {
        return this.aze != null;
      }
  
      public void set_aze_isSet(boolean value) {
        if (!value) {
          this.aze = null;
        }
      }
  
      public void setFieldValue(_Fields field, Object value) {
        switch (field) {
        case SUCCESS:
          if (value == null) {
            unset_success();
          } else {
            set_success((DRPCRequest)value);
          }
          break;
  
        case AZE:
          if (value == null) {
            unset_aze();
          } else {
            set_aze((AuthorizationException)value);
          }
          break;
  
        }
      }
  
      public Object getFieldValue(_Fields field) {
        switch (field) {
        case SUCCESS:
          return get_success();
  
        case AZE:
          return get_aze();
  
        }
        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 is_set_success();
        case AZE:
          return is_set_aze();
        }
        throw new IllegalStateException();
      }
  
      @Override
      public boolean equals(Object that) {
        if (that == null)
          return false;
        if (that instanceof fetchRequest_result)
          return this.equals((fetchRequest_result)that);
        return false;
      }
  
      public boolean equals(fetchRequest_result that) {
        if (that == null)
          return false;
  
        boolean this_present_success = true && this.is_set_success();
        boolean that_present_success = true && that.is_set_success();
        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_aze = true && this.is_set_aze();
        boolean that_present_aze = true && that.is_set_aze();
        if (this_present_aze || that_present_aze) {
          if (!(this_present_aze && that_present_aze))
            return false;
          if (!this.aze.equals(that.aze))
            return false;
        }
  
        return true;
      }
  
      @Override
      public int hashCode() {
        List<Object> list = new ArrayList<Object>();
  
        boolean present_success = true && (is_set_success());
        list.add(present_success);
        if (present_success)
          list.add(success);
  
        boolean present_aze = true && (is_set_aze());
        list.add(present_aze);
        if (present_aze)
          list.add(aze);
  
        return list.hashCode();
      }
  
      @Override
      public int compareTo(fetchRequest_result other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        lastComparison = Boolean.valueOf(is_set_success()).compareTo(other.is_set_success());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (is_set_success()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
          if (lastComparison != 0) {
            return lastComparison;
          }
        }
        lastComparison = Boolean.valueOf(is_set_aze()).compareTo(other.is_set_aze());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (is_set_aze()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aze, other.aze);
          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("fetchRequest_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("aze:");
        if (this.aze == null) {
          sb.append("null");
        } else {
          sb.append(this.aze);
        }
        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 fetchRequest_resultStandardSchemeFactory implements SchemeFactory {
        public fetchRequest_resultStandardScheme getScheme() {
          return new fetchRequest_resultStandardScheme();
        }
      }
  
      private static class fetchRequest_resultStandardScheme extends StandardScheme<fetchRequest_result> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, fetchRequest_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 DRPCRequest();
                  struct.success.read(iprot);
                  struct.set_success_isSet(true);
                } else { 
                  org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
                }
                break;
              case 1: // AZE
                if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
                  struct.aze = new AuthorizationException();
                  struct.aze.read(iprot);
                  struct.set_aze_isSet(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();
          struct.validate();
        }
  
        public void write(org.apache.thrift.protocol.TProtocol oprot, fetchRequest_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.aze != null) {
            oprot.writeFieldBegin(AZE_FIELD_DESC);
            struct.aze.write(oprot);
            oprot.writeFieldEnd();
          }
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class fetchRequest_resultTupleSchemeFactory implements SchemeFactory {
        public fetchRequest_resultTupleScheme getScheme() {
          return new fetchRequest_resultTupleScheme();
        }
      }
  
      private static class fetchRequest_resultTupleScheme extends TupleScheme<fetchRequest_result> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, fetchRequest_result struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
          BitSet optionals = new BitSet();
          if (struct.is_set_success()) {
            optionals.set(0);
          }
          if (struct.is_set_aze()) {
            optionals.set(1);
          }
          oprot.writeBitSet(optionals, 2);
          if (struct.is_set_success()) {
            struct.success.write(oprot);
          }
          if (struct.is_set_aze()) {
            struct.aze.write(oprot);
          }
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, fetchRequest_result struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
          BitSet incoming = iprot.readBitSet(2);
          if (incoming.get(0)) {
            struct.success = new DRPCRequest();
            struct.success.read(iprot);
            struct.set_success_isSet(true);
          }
          if (incoming.get(1)) {
            struct.aze = new AuthorizationException();
            struct.aze.read(iprot);
            struct.set_aze_isSet(true);
          }
        }
      }
  
    }
  
    public static class failRequest_args implements org.apache.thrift.TBase<failRequest_args, failRequest_args._Fields>, java.io.Serializable, Cloneable, Comparable<failRequest_args>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("failRequest_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 Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
      static {
        schemes.put(StandardScheme.class, new failRequest_argsStandardSchemeFactory());
        schemes.put(TupleScheme.class, new failRequest_argsTupleSchemeFactory());
      }
  
      private String id; // required
  
      /** 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");
  
        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;
            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)));
        metaDataMap = Collections.unmodifiableMap(tmpMap);
        org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(failRequest_args.class, metaDataMap);
      }
  
      public failRequest_args() {
      }
  
      public failRequest_args(
        String id)
      {
        this();
        this.id = id;
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public failRequest_args(failRequest_args other) {
        if (other.is_set_id()) {
          this.id = other.id;
        }
      }
  
      public failRequest_args deepCopy() {
        return new failRequest_args(this);
      }
  
      @Override
      public void clear() {
        this.id = null;
      }
  
      public String get_id() {
        return this.id;
      }
  
      public void set_id(String id) {
        this.id = id;
      }
  
      public void unset_id() {
        this.id = null;
      }
  
      /** Returns true if field id is set (has been assigned a value) and false otherwise */
      public boolean is_set_id() {
        return this.id != null;
      }
  
      public void set_id_isSet(boolean value) {
        if (!value) {
          this.id = null;
        }
      }
  
      public void setFieldValue(_Fields field, Object value) {
        switch (field) {
        case ID:
          if (value == null) {
            unset_id();
          } else {
            set_id((String)value);
          }
          break;
  
        }
      }
  
      public Object getFieldValue(_Fields field) {
        switch (field) {
        case ID:
          return get_id();
  
        }
        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 is_set_id();
        }
        throw new IllegalStateException();
      }
  
      @Override
      public boolean equals(Object that) {
        if (that == null)
          return false;
        if (that instanceof failRequest_args)
          return this.equals((failRequest_args)that);
        return false;
      }
  
      public boolean equals(failRequest_args that) {
        if (that == null)
          return false;
  
        boolean this_present_id = true && this.is_set_id();
        boolean that_present_id = true && that.is_set_id();
        if (this_present_id || that_present_id) {
          if (!(this_present_id && that_present_id))
            return false;
          if (!this.id.equals(that.id))
            return false;
        }
  
        return true;
      }
  
      @Override
      public int hashCode() {
        List<Object> list = new ArrayList<Object>();
  
        boolean present_id = true && (is_set_id());
        list.add(present_id);
        if (present_id)
          list.add(id);
  
        return list.hashCode();
      }
  
      @Override
      public int compareTo(failRequest_args other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        lastComparison = Boolean.valueOf(is_set_id()).compareTo(other.is_set_id());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (is_set_id()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
          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("failRequest_args(");
        boolean first = true;
  
        sb.append("id:");
        if (this.id == null) {
          sb.append("null");
        } else {
          sb.append(this.id);
        }
        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 failRequest_argsStandardSchemeFactory implements SchemeFactory {
        public failRequest_argsStandardScheme getScheme() {
          return new failRequest_argsStandardScheme();
        }
      }
  
      private static class failRequest_argsStandardScheme extends StandardScheme<failRequest_args> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, failRequest_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.set_id_isSet(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();
          struct.validate();
        }
  
        public void write(org.apache.thrift.protocol.TProtocol oprot, failRequest_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();
          }
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class failRequest_argsTupleSchemeFactory implements SchemeFactory {
        public failRequest_argsTupleScheme getScheme() {
          return new failRequest_argsTupleScheme();
        }
      }
  
      private static class failRequest_argsTupleScheme extends TupleScheme<failRequest_args> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, failRequest_args struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
          BitSet optionals = new BitSet();
          if (struct.is_set_id()) {
            optionals.set(0);
          }
          oprot.writeBitSet(optionals, 1);
          if (struct.is_set_id()) {
            oprot.writeString(struct.id);
          }
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, failRequest_args struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
          BitSet incoming = iprot.readBitSet(1);
          if (incoming.get(0)) {
            struct.id = iprot.readString();
            struct.set_id_isSet(true);
          }
        }
      }
  
    }
  
    public static class failRequest_result implements org.apache.thrift.TBase<failRequest_result, failRequest_result._Fields>, java.io.Serializable, Cloneable, Comparable<failRequest_result>   {
      private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("failRequest_result");
  
      private static final org.apache.thrift.protocol.TField AZE_FIELD_DESC = new org.apache.thrift.protocol.TField("aze", 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 failRequest_resultStandardSchemeFactory());
        schemes.put(TupleScheme.class, new failRequest_resultTupleSchemeFactory());
      }
  
      private AuthorizationException aze; // required
  
      /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
      public enum _Fields implements org.apache.thrift.TFieldIdEnum {
        AZE((short)1, "aze");
  
        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: // AZE
              return AZE;
            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.AZE, new org.apache.thrift.meta_data.FieldMetaData("aze", 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(failRequest_result.class, metaDataMap);
      }
  
      public failRequest_result() {
      }
  
      public failRequest_result(
        AuthorizationException aze)
      {
        this();
        this.aze = aze;
      }
  
      /**
       * Performs a deep copy on <i>other</i>.
       */
      public failRequest_result(failRequest_result other) {
        if (other.is_set_aze()) {
          this.aze = new AuthorizationException(other.aze);
        }
      }
  
      public failRequest_result deepCopy() {
        return new failRequest_result(this);
      }
  
      @Override
      public void clear() {
        this.aze = null;
      }
  
      public AuthorizationException get_aze() {
        return this.aze;
      }
  
      public void set_aze(AuthorizationException aze) {
        this.aze = aze;
      }
  
      public void unset_aze() {
        this.aze = null;
      }
  
      /** Returns true if field aze is set (has been assigned a value) and false otherwise */
      public boolean is_set_aze() {
        return this.aze != null;
      }
  
      public void set_aze_isSet(boolean value) {
        if (!value) {
          this.aze = null;
        }
      }
  
      public void setFieldValue(_Fields field, Object value) {
        switch (field) {
        case AZE:
          if (value == null) {
            unset_aze();
          } else {
            set_aze((AuthorizationException)value);
          }
          break;
  
        }
      }
  
      public Object getFieldValue(_Fields field) {
        switch (field) {
        case AZE:
          return get_aze();
  
        }
        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 AZE:
          return is_set_aze();
        }
        throw new IllegalStateException();
      }
  
      @Override
      public boolean equals(Object that) {
        if (that == null)
          return false;
        if (that instanceof failRequest_result)
          return this.equals((failRequest_result)that);
        return false;
      }
  
      public boolean equals(failRequest_result that) {
        if (that == null)
          return false;
  
        boolean this_present_aze = true && this.is_set_aze();
        boolean that_present_aze = true && that.is_set_aze();
        if (this_present_aze || that_present_aze) {
          if (!(this_present_aze && that_present_aze))
            return false;
          if (!this.aze.equals(that.aze))
            return false;
        }
  
        return true;
      }
  
      @Override
      public int hashCode() {
        List<Object> list = new ArrayList<Object>();
  
        boolean present_aze = true && (is_set_aze());
        list.add(present_aze);
        if (present_aze)
          list.add(aze);
  
        return list.hashCode();
      }
  
      @Override
      public int compareTo(failRequest_result other) {
        if (!getClass().equals(other.getClass())) {
          return getClass().getName().compareTo(other.getClass().getName());
        }
  
        int lastComparison = 0;
  
        lastComparison = Boolean.valueOf(is_set_aze()).compareTo(other.is_set_aze());
        if (lastComparison != 0) {
          return lastComparison;
        }
        if (is_set_aze()) {
          lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aze, other.aze);
          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("failRequest_result(");
        boolean first = true;
  
        sb.append("aze:");
        if (this.aze == null) {
          sb.append("null");
        } else {
          sb.append(this.aze);
        }
        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 failRequest_resultStandardSchemeFactory implements SchemeFactory {
        public failRequest_resultStandardScheme getScheme() {
          return new failRequest_resultStandardScheme();
        }
      }
  
      private static class failRequest_resultStandardScheme extends StandardScheme<failRequest_result> {
  
        public void read(org.apache.thrift.protocol.TProtocol iprot, failRequest_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: // AZE
                if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
                  struct.aze = new AuthorizationException();
                  struct.aze.read(iprot);
                  struct.set_aze_isSet(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();
          struct.validate();
        }
  
        public void write(org.apache.thrift.protocol.TProtocol oprot, failRequest_result struct) throws org.apache.thrift.TException {
          struct.validate();
  
          oprot.writeStructBegin(STRUCT_DESC);
          if (struct.aze != null) {
            oprot.writeFieldBegin(AZE_FIELD_DESC);
            struct.aze.write(oprot);
            oprot.writeFieldEnd();
          }
          oprot.writeFieldStop();
          oprot.writeStructEnd();
        }
  
      }
  
      private static class failRequest_resultTupleSchemeFactory implements SchemeFactory {
        public failRequest_resultTupleScheme getScheme() {
          return new failRequest_resultTupleScheme();
        }
      }
  
      private static class failRequest_resultTupleScheme extends TupleScheme<failRequest_result> {
  
        @Override
        public void write(org.apache.thrift.protocol.TProtocol prot, failRequest_result struct) throws org.apache.thrift.TException {
          TTupleProtocol oprot = (TTupleProtocol) prot;
          BitSet optionals = new BitSet();
          if (struct.is_set_aze()) {
            optionals.set(0);
          }
          oprot.writeBitSet(optionals, 1);
          if (struct.is_set_aze()) {
            struct.aze.write(oprot);
          }
        }
  
        @Override
        public void read(org.apache.thrift.protocol.TProtocol prot, failRequest_result struct) throws org.apache.thrift.TException {
          TTupleProtocol iprot = (TTupleProtocol) prot;
          BitSet incoming = iprot.readBitSet(1);
          if (incoming.get(0)) {
            struct.aze = new AuthorizationException();
            struct.aze.read(iprot);
            struct.set_aze_isSet(true);
          }
        }
      }
  
    }
  
  }
  