All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.linecorp.centraldogma.internal.thrift.CentralDogmaService Maven / Gradle / Ivy

/**
 * Autogenerated by Thrift Compiler (0.9.3)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package com.linecorp.centraldogma.internal.thrift;

import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;

import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
import org.apache.thrift.async.AsyncMethodCallback;
import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2021-03-17")
public class CentralDogmaService {

  /**
   * Central Dogma Service
   */
  public interface Iface {

    /**
     * Creates a project.
     * 
     * @param name
     */
    public void createProject(String name) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Removes a project.
     * 
     * @param name
     */
    public void removeProject(String name) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Purges a project.
     * 
     * @param name
     */
    public void purgeProject(String name) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Unremoves a project.
     * 
     * @param name
     */
    public void unremoveProject(String name) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Retrieves the list of the projects.
     */
    public List listProjects() throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Retrieves the list of the removed projects.
     */
    public Set listRemovedProjects() throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Creates a repository.
     * 
     * @param projectName
     * @param repositoryName
     */
    public void createRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Removes a repository.
     * 
     * @param projectName
     * @param repositoryName
     */
    public void removeRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Purges a repository.
     * 
     * @param projectName
     * @param repositoryName
     */
    public void purgeRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Unremoves a repository.
     * 
     * @param projectName
     * @param repositoryName
     */
    public void unremoveRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Retrieves the list of the repositories.
     * 
     * @param projectName
     */
    public List listRepositories(String projectName) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Retrieves the list of the removed repositories.
     * 
     * @param projectName
     */
    public Set listRemovedRepositories(String projectName) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Converts the relative revision number to the absolute revision number. (e.g. -1 -> 3, -1.-1 -> 3.4)
     * 
     * @param projectName
     * @param repositoryName
     * @param revision
     */
    public Revision normalizeRevision(String projectName, String repositoryName, Revision revision) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Retrieves the list of the files in the path.
     * 
     * @param projectName
     * @param repositoryName
     * @param revision
     * @param pathPattern
     */
    public List listFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Retrieves the files that match the path pattern.
     * 
     * @param projectName
     * @param repositoryName
     * @param revision
     * @param pathPattern
     */
    public List getFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Retrieves the history of the repository.
     * 
     * @param projectName
     * @param repositoryName
     * @param from
     * @param to
     * @param pathPattern
     */
    public List getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Retrieves the diffs matched by the path pattern from {@code from} to {@code to}.
     * 
     * @param projectName
     * @param repositoryName
     * @param from
     * @param to
     * @param pathPattern
     */
    public List getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Retrieves preview diffs on {@code baseRevsion} for {@code changes}.
     * 
     * @param projectName
     * @param repositoryName
     * @param baseRevision
     * @param changes
     */
    public List getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List changes) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Pushes the changes to the repository.
     * 
     * @param projectName
     * @param repositoryName
     * @param baseRevision
     * @param author
     * @param summary
     * @param detail
     * @param changes
     */
    public Commit push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List changes) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Queries a file at the specified revision.
     * 
     * @param projectName
     * @param repositoryName
     * @param revision
     * @param query
     */
    public GetFileResult getFile(String projectName, String repositoryName, Revision revision, Query query) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Queries a file at two different revisions and return the diff of the two query results.
     * 
     * @param projectName
     * @param repositoryName
     * @param from
     * @param to
     * @param query
     */
    public DiffFileResult diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Retrieves the merged entry of the specified query at the specified revision. Only JSON entry
     * merge is currently supported. The JSON files are merged sequentially as specified in the mergeQuery.
     * Note that only object is recursively merged traversing the children. Others are simply replaced.
     * 
     * @param projectName
     * @param repositoryName
     * @param revision
     * @param mergeQuery
     */
    public MergedEntry mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Awaits and returns the latest known revision since the specified revision.
     * 
     * @param projectName
     * @param repositoryName
     * @param lastKnownRevision
     * @param pathPattern
     * @param timeoutMillis
     */
    public WatchRepositoryResult watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Awaits and returns the query result of the specified file since the specified last known revision.
     * 
     * @param projectName
     * @param repositoryName
     * @param lastKnownRevision
     * @param query
     * @param timeoutMillis
     */
    public WatchFileResult watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Gets the schema.
     * 
     * @param projectName
     */
    public Schema getSchema(String projectName) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Saves the schema.
     * 
     * @param projectName
     * @param schema
     */
    public void saveSchema(String projectName, Schema schema) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Gets the named query.
     * 
     * @param projectName
     * @param name
     */
    public NamedQuery getNamedQuery(String projectName, String name) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Saves the named query.
     * 
     * @param projectName
     * @param namedQuery
     */
    public void saveNamedQuery(String projectName, NamedQuery namedQuery) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Removes the named query.
     * 
     * @param projectName
     * @param name
     */
    public void removeNamedQuery(String projectName, String name) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Retrieves the list of the named queries.
     * 
     * @param projectName
     */
    public List listNamedQueries(String projectName) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Gets the plugin.
     * 
     * @param projectName
     * @param pluginName
     */
    public Plugin getPlugin(String projectName, String pluginName) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Saves the plugin.
     * 
     * @param projectName
     * @param plugin
     */
    public void savePlugin(String projectName, Plugin plugin) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Removes the plugin.
     * 
     * @param projectName
     * @param pluginName
     */
    public void removePlugin(String projectName, String pluginName) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Retrieves the list of the plugins.
     * 
     * @param projectName
     */
    public List listPlugins(String projectName) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Retrieves the list of all operations provided by the plugin.
     * 
     * @param projectName
     */
    public List listPluginOperations(String projectName) throws CentralDogmaException, org.apache.thrift.TException;

    /**
     * Performs the plugin operation.
     * 

*

    *
  • {@code params} is a JSON dictionary whose keys and values are the names and values * of the parameters.
  • *
  • The return value is one of the following: *
      *
    • a JSON object,
    • *
    • a JSON array,
    • *
    • a number,
    • *
    • a boolean value ({@code true} or {@code false}) or
    • *
    • {@code null}
    • *
    *
  • *
*

* * @param projectName * @param pluginName * @param operationName * @param params */ public String performPluginOperation(String projectName, String pluginName, String operationName, String params) throws CentralDogmaException, org.apache.thrift.TException; /** * Queries by the named query. * * @param projectName * @param namedQuery * @param revision */ public String queryByNamedQuery(String projectName, String namedQuery, Revision revision) throws CentralDogmaException, org.apache.thrift.TException; /** * Retrieves the list of the subscribers for the json file. * * @param projectName * @param repositoryName * @param path */ public List listSubscribers(String projectName, String repositoryName, String path) throws CentralDogmaException, org.apache.thrift.TException; } public interface AsyncIface { public void createProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void removeProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void purgeProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void unremoveProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void listProjects(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void listRemovedProjects(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void createRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void removeRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void purgeRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void unremoveRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void listRepositories(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void listRemovedRepositories(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void normalizeRevision(String projectName, String repositoryName, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void listFiles(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getFiles(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List changes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List changes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getFile(String projectName, String repositoryName, Revision revision, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getSchema(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void saveSchema(String projectName, Schema schema, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getNamedQuery(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void saveNamedQuery(String projectName, NamedQuery namedQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void removeNamedQuery(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void listNamedQueries(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getPlugin(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void savePlugin(String projectName, Plugin plugin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void removePlugin(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void listPlugins(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void listPluginOperations(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void performPluginOperation(String projectName, String pluginName, String operationName, String params, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void queryByNamedQuery(String projectName, String namedQuery, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void listSubscribers(String projectName, String repositoryName, String path, 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 { 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 createProject(String name) throws CentralDogmaException, org.apache.thrift.TException { send_createProject(name); recv_createProject(); } public void send_createProject(String name) throws org.apache.thrift.TException { createProject_args args = new createProject_args(); args.setName(name); sendBase("createProject", args); } public void recv_createProject() throws CentralDogmaException, org.apache.thrift.TException { createProject_result result = new createProject_result(); receiveBase(result, "createProject"); if (result.e != null) { throw result.e; } return; } public void removeProject(String name) throws CentralDogmaException, org.apache.thrift.TException { send_removeProject(name); recv_removeProject(); } public void send_removeProject(String name) throws org.apache.thrift.TException { removeProject_args args = new removeProject_args(); args.setName(name); sendBase("removeProject", args); } public void recv_removeProject() throws CentralDogmaException, org.apache.thrift.TException { removeProject_result result = new removeProject_result(); receiveBase(result, "removeProject"); if (result.e != null) { throw result.e; } return; } public void purgeProject(String name) throws CentralDogmaException, org.apache.thrift.TException { send_purgeProject(name); recv_purgeProject(); } public void send_purgeProject(String name) throws org.apache.thrift.TException { purgeProject_args args = new purgeProject_args(); args.setName(name); sendBase("purgeProject", args); } public void recv_purgeProject() throws CentralDogmaException, org.apache.thrift.TException { purgeProject_result result = new purgeProject_result(); receiveBase(result, "purgeProject"); if (result.e != null) { throw result.e; } return; } public void unremoveProject(String name) throws CentralDogmaException, org.apache.thrift.TException { send_unremoveProject(name); recv_unremoveProject(); } public void send_unremoveProject(String name) throws org.apache.thrift.TException { unremoveProject_args args = new unremoveProject_args(); args.setName(name); sendBase("unremoveProject", args); } public void recv_unremoveProject() throws CentralDogmaException, org.apache.thrift.TException { unremoveProject_result result = new unremoveProject_result(); receiveBase(result, "unremoveProject"); if (result.e != null) { throw result.e; } return; } public List listProjects() throws CentralDogmaException, org.apache.thrift.TException { send_listProjects(); return recv_listProjects(); } public void send_listProjects() throws org.apache.thrift.TException { listProjects_args args = new listProjects_args(); sendBase("listProjects", args); } public List recv_listProjects() throws CentralDogmaException, org.apache.thrift.TException { listProjects_result result = new listProjects_result(); receiveBase(result, "listProjects"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listProjects failed: unknown result"); } public Set listRemovedProjects() throws CentralDogmaException, org.apache.thrift.TException { send_listRemovedProjects(); return recv_listRemovedProjects(); } public void send_listRemovedProjects() throws org.apache.thrift.TException { listRemovedProjects_args args = new listRemovedProjects_args(); sendBase("listRemovedProjects", args); } public Set recv_listRemovedProjects() throws CentralDogmaException, org.apache.thrift.TException { listRemovedProjects_result result = new listRemovedProjects_result(); receiveBase(result, "listRemovedProjects"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listRemovedProjects failed: unknown result"); } public void createRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException { send_createRepository(projectName, repositoryName); recv_createRepository(); } public void send_createRepository(String projectName, String repositoryName) throws org.apache.thrift.TException { createRepository_args args = new createRepository_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); sendBase("createRepository", args); } public void recv_createRepository() throws CentralDogmaException, org.apache.thrift.TException { createRepository_result result = new createRepository_result(); receiveBase(result, "createRepository"); if (result.e != null) { throw result.e; } return; } public void removeRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException { send_removeRepository(projectName, repositoryName); recv_removeRepository(); } public void send_removeRepository(String projectName, String repositoryName) throws org.apache.thrift.TException { removeRepository_args args = new removeRepository_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); sendBase("removeRepository", args); } public void recv_removeRepository() throws CentralDogmaException, org.apache.thrift.TException { removeRepository_result result = new removeRepository_result(); receiveBase(result, "removeRepository"); if (result.e != null) { throw result.e; } return; } public void purgeRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException { send_purgeRepository(projectName, repositoryName); recv_purgeRepository(); } public void send_purgeRepository(String projectName, String repositoryName) throws org.apache.thrift.TException { purgeRepository_args args = new purgeRepository_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); sendBase("purgeRepository", args); } public void recv_purgeRepository() throws CentralDogmaException, org.apache.thrift.TException { purgeRepository_result result = new purgeRepository_result(); receiveBase(result, "purgeRepository"); if (result.e != null) { throw result.e; } return; } public void unremoveRepository(String projectName, String repositoryName) throws CentralDogmaException, org.apache.thrift.TException { send_unremoveRepository(projectName, repositoryName); recv_unremoveRepository(); } public void send_unremoveRepository(String projectName, String repositoryName) throws org.apache.thrift.TException { unremoveRepository_args args = new unremoveRepository_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); sendBase("unremoveRepository", args); } public void recv_unremoveRepository() throws CentralDogmaException, org.apache.thrift.TException { unremoveRepository_result result = new unremoveRepository_result(); receiveBase(result, "unremoveRepository"); if (result.e != null) { throw result.e; } return; } public List listRepositories(String projectName) throws CentralDogmaException, org.apache.thrift.TException { send_listRepositories(projectName); return recv_listRepositories(); } public void send_listRepositories(String projectName) throws org.apache.thrift.TException { listRepositories_args args = new listRepositories_args(); args.setProjectName(projectName); sendBase("listRepositories", args); } public List recv_listRepositories() throws CentralDogmaException, org.apache.thrift.TException { listRepositories_result result = new listRepositories_result(); receiveBase(result, "listRepositories"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listRepositories failed: unknown result"); } public Set listRemovedRepositories(String projectName) throws CentralDogmaException, org.apache.thrift.TException { send_listRemovedRepositories(projectName); return recv_listRemovedRepositories(); } public void send_listRemovedRepositories(String projectName) throws org.apache.thrift.TException { listRemovedRepositories_args args = new listRemovedRepositories_args(); args.setProjectName(projectName); sendBase("listRemovedRepositories", args); } public Set recv_listRemovedRepositories() throws CentralDogmaException, org.apache.thrift.TException { listRemovedRepositories_result result = new listRemovedRepositories_result(); receiveBase(result, "listRemovedRepositories"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listRemovedRepositories failed: unknown result"); } public Revision normalizeRevision(String projectName, String repositoryName, Revision revision) throws CentralDogmaException, org.apache.thrift.TException { send_normalizeRevision(projectName, repositoryName, revision); return recv_normalizeRevision(); } public void send_normalizeRevision(String projectName, String repositoryName, Revision revision) throws org.apache.thrift.TException { normalizeRevision_args args = new normalizeRevision_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setRevision(revision); sendBase("normalizeRevision", args); } public Revision recv_normalizeRevision() throws CentralDogmaException, org.apache.thrift.TException { normalizeRevision_result result = new normalizeRevision_result(); receiveBase(result, "normalizeRevision"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "normalizeRevision failed: unknown result"); } public List listFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException { send_listFiles(projectName, repositoryName, revision, pathPattern); return recv_listFiles(); } public void send_listFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws org.apache.thrift.TException { listFiles_args args = new listFiles_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setRevision(revision); args.setPathPattern(pathPattern); sendBase("listFiles", args); } public List recv_listFiles() throws CentralDogmaException, org.apache.thrift.TException { listFiles_result result = new listFiles_result(); receiveBase(result, "listFiles"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listFiles failed: unknown result"); } public List getFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException { send_getFiles(projectName, repositoryName, revision, pathPattern); return recv_getFiles(); } public void send_getFiles(String projectName, String repositoryName, Revision revision, String pathPattern) throws org.apache.thrift.TException { getFiles_args args = new getFiles_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setRevision(revision); args.setPathPattern(pathPattern); sendBase("getFiles", args); } public List recv_getFiles() throws CentralDogmaException, org.apache.thrift.TException { getFiles_result result = new getFiles_result(); receiveBase(result, "getFiles"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFiles failed: unknown result"); } public List getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException { send_getHistory(projectName, repositoryName, from, to, pathPattern); return recv_getHistory(); } public void send_getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws org.apache.thrift.TException { getHistory_args args = new getHistory_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setFromRevision(from); args.setToRevision(to); args.setPathPattern(pathPattern); sendBase("getHistory", args); } public List recv_getHistory() throws CentralDogmaException, org.apache.thrift.TException { getHistory_result result = new getHistory_result(); receiveBase(result, "getHistory"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistory failed: unknown result"); } public List getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws CentralDogmaException, org.apache.thrift.TException { send_getDiffs(projectName, repositoryName, from, to, pathPattern); return recv_getDiffs(); } public void send_getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern) throws org.apache.thrift.TException { getDiffs_args args = new getDiffs_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setFromRevision(from); args.setToRevision(to); args.setPathPattern(pathPattern); sendBase("getDiffs", args); } public List recv_getDiffs() throws CentralDogmaException, org.apache.thrift.TException { getDiffs_result result = new getDiffs_result(); receiveBase(result, "getDiffs"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDiffs failed: unknown result"); } public List getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List changes) throws CentralDogmaException, org.apache.thrift.TException { send_getPreviewDiffs(projectName, repositoryName, baseRevision, changes); return recv_getPreviewDiffs(); } public void send_getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List changes) throws org.apache.thrift.TException { getPreviewDiffs_args args = new getPreviewDiffs_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setBaseRevision(baseRevision); args.setChanges(changes); sendBase("getPreviewDiffs", args); } public List recv_getPreviewDiffs() throws CentralDogmaException, org.apache.thrift.TException { getPreviewDiffs_result result = new getPreviewDiffs_result(); receiveBase(result, "getPreviewDiffs"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPreviewDiffs failed: unknown result"); } public Commit push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List changes) throws CentralDogmaException, org.apache.thrift.TException { send_push(projectName, repositoryName, baseRevision, author, summary, detail, changes); return recv_push(); } public void send_push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List changes) throws org.apache.thrift.TException { push_args args = new push_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setBaseRevision(baseRevision); args.setAuthor(author); args.setSummary(summary); args.setDetail(detail); args.setChanges(changes); sendBase("push", args); } public Commit recv_push() throws CentralDogmaException, org.apache.thrift.TException { push_result result = new push_result(); receiveBase(result, "push"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "push failed: unknown result"); } public GetFileResult getFile(String projectName, String repositoryName, Revision revision, Query query) throws CentralDogmaException, org.apache.thrift.TException { send_getFile(projectName, repositoryName, revision, query); return recv_getFile(); } public void send_getFile(String projectName, String repositoryName, Revision revision, Query query) throws org.apache.thrift.TException { getFile_args args = new getFile_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setRevision(revision); args.setQuery(query); sendBase("getFile", args); } public GetFileResult recv_getFile() throws CentralDogmaException, org.apache.thrift.TException { getFile_result result = new getFile_result(); receiveBase(result, "getFile"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFile failed: unknown result"); } public DiffFileResult diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query) throws CentralDogmaException, org.apache.thrift.TException { send_diffFile(projectName, repositoryName, from, to, query); return recv_diffFile(); } public void send_diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query) throws org.apache.thrift.TException { diffFile_args args = new diffFile_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setFromRevision(from); args.setToRevision(to); args.setQuery(query); sendBase("diffFile", args); } public DiffFileResult recv_diffFile() throws CentralDogmaException, org.apache.thrift.TException { diffFile_result result = new diffFile_result(); receiveBase(result, "diffFile"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "diffFile failed: unknown result"); } public MergedEntry mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery) throws CentralDogmaException, org.apache.thrift.TException { send_mergeFiles(projectName, repositoryName, revision, mergeQuery); return recv_mergeFiles(); } public void send_mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery) throws org.apache.thrift.TException { mergeFiles_args args = new mergeFiles_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setRevision(revision); args.setMergeQuery(mergeQuery); sendBase("mergeFiles", args); } public MergedEntry recv_mergeFiles() throws CentralDogmaException, org.apache.thrift.TException { mergeFiles_result result = new mergeFiles_result(); receiveBase(result, "mergeFiles"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "mergeFiles failed: unknown result"); } public WatchRepositoryResult watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis) throws CentralDogmaException, org.apache.thrift.TException { send_watchRepository(projectName, repositoryName, lastKnownRevision, pathPattern, timeoutMillis); return recv_watchRepository(); } public void send_watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis) throws org.apache.thrift.TException { watchRepository_args args = new watchRepository_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setLastKnownRevision(lastKnownRevision); args.setPathPattern(pathPattern); args.setTimeoutMillis(timeoutMillis); sendBase("watchRepository", args); } public WatchRepositoryResult recv_watchRepository() throws CentralDogmaException, org.apache.thrift.TException { watchRepository_result result = new watchRepository_result(); receiveBase(result, "watchRepository"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "watchRepository failed: unknown result"); } public WatchFileResult watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis) throws CentralDogmaException, org.apache.thrift.TException { send_watchFile(projectName, repositoryName, lastKnownRevision, query, timeoutMillis); return recv_watchFile(); } public void send_watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis) throws org.apache.thrift.TException { watchFile_args args = new watchFile_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setLastKnownRevision(lastKnownRevision); args.setQuery(query); args.setTimeoutMillis(timeoutMillis); sendBase("watchFile", args); } public WatchFileResult recv_watchFile() throws CentralDogmaException, org.apache.thrift.TException { watchFile_result result = new watchFile_result(); receiveBase(result, "watchFile"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "watchFile failed: unknown result"); } public Schema getSchema(String projectName) throws CentralDogmaException, org.apache.thrift.TException { send_getSchema(projectName); return recv_getSchema(); } public void send_getSchema(String projectName) throws org.apache.thrift.TException { getSchema_args args = new getSchema_args(); args.setProjectName(projectName); sendBase("getSchema", args); } public Schema recv_getSchema() throws CentralDogmaException, org.apache.thrift.TException { getSchema_result result = new getSchema_result(); receiveBase(result, "getSchema"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSchema failed: unknown result"); } public void saveSchema(String projectName, Schema schema) throws CentralDogmaException, org.apache.thrift.TException { send_saveSchema(projectName, schema); recv_saveSchema(); } public void send_saveSchema(String projectName, Schema schema) throws org.apache.thrift.TException { saveSchema_args args = new saveSchema_args(); args.setProjectName(projectName); args.setSchema(schema); sendBase("saveSchema", args); } public void recv_saveSchema() throws CentralDogmaException, org.apache.thrift.TException { saveSchema_result result = new saveSchema_result(); receiveBase(result, "saveSchema"); if (result.e != null) { throw result.e; } return; } public NamedQuery getNamedQuery(String projectName, String name) throws CentralDogmaException, org.apache.thrift.TException { send_getNamedQuery(projectName, name); return recv_getNamedQuery(); } public void send_getNamedQuery(String projectName, String name) throws org.apache.thrift.TException { getNamedQuery_args args = new getNamedQuery_args(); args.setProjectName(projectName); args.setName(name); sendBase("getNamedQuery", args); } public NamedQuery recv_getNamedQuery() throws CentralDogmaException, org.apache.thrift.TException { getNamedQuery_result result = new getNamedQuery_result(); receiveBase(result, "getNamedQuery"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNamedQuery failed: unknown result"); } public void saveNamedQuery(String projectName, NamedQuery namedQuery) throws CentralDogmaException, org.apache.thrift.TException { send_saveNamedQuery(projectName, namedQuery); recv_saveNamedQuery(); } public void send_saveNamedQuery(String projectName, NamedQuery namedQuery) throws org.apache.thrift.TException { saveNamedQuery_args args = new saveNamedQuery_args(); args.setProjectName(projectName); args.setNamedQuery(namedQuery); sendBase("saveNamedQuery", args); } public void recv_saveNamedQuery() throws CentralDogmaException, org.apache.thrift.TException { saveNamedQuery_result result = new saveNamedQuery_result(); receiveBase(result, "saveNamedQuery"); if (result.e != null) { throw result.e; } return; } public void removeNamedQuery(String projectName, String name) throws CentralDogmaException, org.apache.thrift.TException { send_removeNamedQuery(projectName, name); recv_removeNamedQuery(); } public void send_removeNamedQuery(String projectName, String name) throws org.apache.thrift.TException { removeNamedQuery_args args = new removeNamedQuery_args(); args.setProjectName(projectName); args.setName(name); sendBase("removeNamedQuery", args); } public void recv_removeNamedQuery() throws CentralDogmaException, org.apache.thrift.TException { removeNamedQuery_result result = new removeNamedQuery_result(); receiveBase(result, "removeNamedQuery"); if (result.e != null) { throw result.e; } return; } public List listNamedQueries(String projectName) throws CentralDogmaException, org.apache.thrift.TException { send_listNamedQueries(projectName); return recv_listNamedQueries(); } public void send_listNamedQueries(String projectName) throws org.apache.thrift.TException { listNamedQueries_args args = new listNamedQueries_args(); args.setProjectName(projectName); sendBase("listNamedQueries", args); } public List recv_listNamedQueries() throws CentralDogmaException, org.apache.thrift.TException { listNamedQueries_result result = new listNamedQueries_result(); receiveBase(result, "listNamedQueries"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listNamedQueries failed: unknown result"); } public Plugin getPlugin(String projectName, String pluginName) throws CentralDogmaException, org.apache.thrift.TException { send_getPlugin(projectName, pluginName); return recv_getPlugin(); } public void send_getPlugin(String projectName, String pluginName) throws org.apache.thrift.TException { getPlugin_args args = new getPlugin_args(); args.setProjectName(projectName); args.setPluginName(pluginName); sendBase("getPlugin", args); } public Plugin recv_getPlugin() throws CentralDogmaException, org.apache.thrift.TException { getPlugin_result result = new getPlugin_result(); receiveBase(result, "getPlugin"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPlugin failed: unknown result"); } public void savePlugin(String projectName, Plugin plugin) throws CentralDogmaException, org.apache.thrift.TException { send_savePlugin(projectName, plugin); recv_savePlugin(); } public void send_savePlugin(String projectName, Plugin plugin) throws org.apache.thrift.TException { savePlugin_args args = new savePlugin_args(); args.setProjectName(projectName); args.setPlugin(plugin); sendBase("savePlugin", args); } public void recv_savePlugin() throws CentralDogmaException, org.apache.thrift.TException { savePlugin_result result = new savePlugin_result(); receiveBase(result, "savePlugin"); if (result.e != null) { throw result.e; } return; } public void removePlugin(String projectName, String pluginName) throws CentralDogmaException, org.apache.thrift.TException { send_removePlugin(projectName, pluginName); recv_removePlugin(); } public void send_removePlugin(String projectName, String pluginName) throws org.apache.thrift.TException { removePlugin_args args = new removePlugin_args(); args.setProjectName(projectName); args.setPluginName(pluginName); sendBase("removePlugin", args); } public void recv_removePlugin() throws CentralDogmaException, org.apache.thrift.TException { removePlugin_result result = new removePlugin_result(); receiveBase(result, "removePlugin"); if (result.e != null) { throw result.e; } return; } public List listPlugins(String projectName) throws CentralDogmaException, org.apache.thrift.TException { send_listPlugins(projectName); return recv_listPlugins(); } public void send_listPlugins(String projectName) throws org.apache.thrift.TException { listPlugins_args args = new listPlugins_args(); args.setProjectName(projectName); sendBase("listPlugins", args); } public List recv_listPlugins() throws CentralDogmaException, org.apache.thrift.TException { listPlugins_result result = new listPlugins_result(); receiveBase(result, "listPlugins"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listPlugins failed: unknown result"); } public List listPluginOperations(String projectName) throws CentralDogmaException, org.apache.thrift.TException { send_listPluginOperations(projectName); return recv_listPluginOperations(); } public void send_listPluginOperations(String projectName) throws org.apache.thrift.TException { listPluginOperations_args args = new listPluginOperations_args(); args.setProjectName(projectName); sendBase("listPluginOperations", args); } public List recv_listPluginOperations() throws CentralDogmaException, org.apache.thrift.TException { listPluginOperations_result result = new listPluginOperations_result(); receiveBase(result, "listPluginOperations"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listPluginOperations failed: unknown result"); } public String performPluginOperation(String projectName, String pluginName, String operationName, String params) throws CentralDogmaException, org.apache.thrift.TException { send_performPluginOperation(projectName, pluginName, operationName, params); return recv_performPluginOperation(); } public void send_performPluginOperation(String projectName, String pluginName, String operationName, String params) throws org.apache.thrift.TException { performPluginOperation_args args = new performPluginOperation_args(); args.setProjectName(projectName); args.setPluginName(pluginName); args.setOperationName(operationName); args.setParams(params); sendBase("performPluginOperation", args); } public String recv_performPluginOperation() throws CentralDogmaException, org.apache.thrift.TException { performPluginOperation_result result = new performPluginOperation_result(); receiveBase(result, "performPluginOperation"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "performPluginOperation failed: unknown result"); } public String queryByNamedQuery(String projectName, String namedQuery, Revision revision) throws CentralDogmaException, org.apache.thrift.TException { send_queryByNamedQuery(projectName, namedQuery, revision); return recv_queryByNamedQuery(); } public void send_queryByNamedQuery(String projectName, String namedQuery, Revision revision) throws org.apache.thrift.TException { queryByNamedQuery_args args = new queryByNamedQuery_args(); args.setProjectName(projectName); args.setNamedQuery(namedQuery); args.setRevision(revision); sendBase("queryByNamedQuery", args); } public String recv_queryByNamedQuery() throws CentralDogmaException, org.apache.thrift.TException { queryByNamedQuery_result result = new queryByNamedQuery_result(); receiveBase(result, "queryByNamedQuery"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "queryByNamedQuery failed: unknown result"); } public List listSubscribers(String projectName, String repositoryName, String path) throws CentralDogmaException, org.apache.thrift.TException { send_listSubscribers(projectName, repositoryName, path); return recv_listSubscribers(); } public void send_listSubscribers(String projectName, String repositoryName, String path) throws org.apache.thrift.TException { listSubscribers_args args = new listSubscribers_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setPath(path); sendBase("listSubscribers", args); } public List recv_listSubscribers() throws CentralDogmaException, org.apache.thrift.TException { listSubscribers_result result = new listSubscribers_result(); receiveBase(result, "listSubscribers"); if (result.isSetSuccess()) { return result.success; } if (result.e != null) { throw result.e; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listSubscribers failed: unknown result"); } } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { 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 createProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); createProject_call method_call = new createProject_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createProject_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; public createProject_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.name = name; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createProject", org.apache.thrift.protocol.TMessageType.CALL, 0)); createProject_args args = new createProject_args(); args.setName(name); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws CentralDogmaException, 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_createProject(); } } public void removeProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); removeProject_call method_call = new removeProject_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class removeProject_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; public removeProject_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.name = name; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeProject", org.apache.thrift.protocol.TMessageType.CALL, 0)); removeProject_args args = new removeProject_args(); args.setName(name); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws CentralDogmaException, 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_removeProject(); } } public void purgeProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); purgeProject_call method_call = new purgeProject_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class purgeProject_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; public purgeProject_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.name = name; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("purgeProject", org.apache.thrift.protocol.TMessageType.CALL, 0)); purgeProject_args args = new purgeProject_args(); args.setName(name); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws CentralDogmaException, 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_purgeProject(); } } public void unremoveProject(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); unremoveProject_call method_call = new unremoveProject_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class unremoveProject_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; public unremoveProject_call(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.name = name; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unremoveProject", org.apache.thrift.protocol.TMessageType.CALL, 0)); unremoveProject_args args = new unremoveProject_args(); args.setName(name); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws CentralDogmaException, 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_unremoveProject(); } } public void listProjects(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); listProjects_call method_call = new listProjects_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listProjects_call extends org.apache.thrift.async.TAsyncMethodCall { public listProjects_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listProjects", org.apache.thrift.protocol.TMessageType.CALL, 0)); listProjects_args args = new listProjects_args(); args.write(prot); prot.writeMessageEnd(); } public List getResult() throws CentralDogmaException, 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_listProjects(); } } public void listRemovedProjects(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); listRemovedProjects_call method_call = new listRemovedProjects_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listRemovedProjects_call extends org.apache.thrift.async.TAsyncMethodCall { public listRemovedProjects_call(org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listRemovedProjects", org.apache.thrift.protocol.TMessageType.CALL, 0)); listRemovedProjects_args args = new listRemovedProjects_args(); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws CentralDogmaException, 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_listRemovedProjects(); } } public void createRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); createRepository_call method_call = new createRepository_call(projectName, repositoryName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class createRepository_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; public createRepository_call(String projectName, String repositoryName, 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.projectName = projectName; this.repositoryName = repositoryName; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRepository", org.apache.thrift.protocol.TMessageType.CALL, 0)); createRepository_args args = new createRepository_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws CentralDogmaException, 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_createRepository(); } } public void removeRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); removeRepository_call method_call = new removeRepository_call(projectName, repositoryName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class removeRepository_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; public removeRepository_call(String projectName, String repositoryName, 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.projectName = projectName; this.repositoryName = repositoryName; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeRepository", org.apache.thrift.protocol.TMessageType.CALL, 0)); removeRepository_args args = new removeRepository_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws CentralDogmaException, 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_removeRepository(); } } public void purgeRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); purgeRepository_call method_call = new purgeRepository_call(projectName, repositoryName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class purgeRepository_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; public purgeRepository_call(String projectName, String repositoryName, 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.projectName = projectName; this.repositoryName = repositoryName; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("purgeRepository", org.apache.thrift.protocol.TMessageType.CALL, 0)); purgeRepository_args args = new purgeRepository_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws CentralDogmaException, 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_purgeRepository(); } } public void unremoveRepository(String projectName, String repositoryName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); unremoveRepository_call method_call = new unremoveRepository_call(projectName, repositoryName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class unremoveRepository_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; public unremoveRepository_call(String projectName, String repositoryName, 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.projectName = projectName; this.repositoryName = repositoryName; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unremoveRepository", org.apache.thrift.protocol.TMessageType.CALL, 0)); unremoveRepository_args args = new unremoveRepository_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws CentralDogmaException, 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_unremoveRepository(); } } public void listRepositories(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); listRepositories_call method_call = new listRepositories_call(projectName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listRepositories_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; public listRepositories_call(String projectName, 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.projectName = projectName; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listRepositories", org.apache.thrift.protocol.TMessageType.CALL, 0)); listRepositories_args args = new listRepositories_args(); args.setProjectName(projectName); args.write(prot); prot.writeMessageEnd(); } public List getResult() throws CentralDogmaException, 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_listRepositories(); } } public void listRemovedRepositories(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); listRemovedRepositories_call method_call = new listRemovedRepositories_call(projectName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listRemovedRepositories_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; public listRemovedRepositories_call(String projectName, 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.projectName = projectName; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listRemovedRepositories", org.apache.thrift.protocol.TMessageType.CALL, 0)); listRemovedRepositories_args args = new listRemovedRepositories_args(); args.setProjectName(projectName); args.write(prot); prot.writeMessageEnd(); } public Set getResult() throws CentralDogmaException, 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_listRemovedRepositories(); } } public void normalizeRevision(String projectName, String repositoryName, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); normalizeRevision_call method_call = new normalizeRevision_call(projectName, repositoryName, revision, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class normalizeRevision_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; private Revision revision; public normalizeRevision_call(String projectName, String repositoryName, Revision revision, 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.projectName = projectName; this.repositoryName = repositoryName; this.revision = revision; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("normalizeRevision", org.apache.thrift.protocol.TMessageType.CALL, 0)); normalizeRevision_args args = new normalizeRevision_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setRevision(revision); args.write(prot); prot.writeMessageEnd(); } public Revision getResult() throws CentralDogmaException, 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_normalizeRevision(); } } public void listFiles(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); listFiles_call method_call = new listFiles_call(projectName, repositoryName, revision, pathPattern, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listFiles_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; private Revision revision; private String pathPattern; public listFiles_call(String projectName, String repositoryName, Revision revision, String pathPattern, 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.projectName = projectName; this.repositoryName = repositoryName; this.revision = revision; this.pathPattern = pathPattern; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listFiles", org.apache.thrift.protocol.TMessageType.CALL, 0)); listFiles_args args = new listFiles_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setRevision(revision); args.setPathPattern(pathPattern); args.write(prot); prot.writeMessageEnd(); } public List getResult() throws CentralDogmaException, 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_listFiles(); } } public void getFiles(String projectName, String repositoryName, Revision revision, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getFiles_call method_call = new getFiles_call(projectName, repositoryName, revision, pathPattern, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getFiles_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; private Revision revision; private String pathPattern; public getFiles_call(String projectName, String repositoryName, Revision revision, String pathPattern, 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.projectName = projectName; this.repositoryName = repositoryName; this.revision = revision; this.pathPattern = pathPattern; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFiles", org.apache.thrift.protocol.TMessageType.CALL, 0)); getFiles_args args = new getFiles_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setRevision(revision); args.setPathPattern(pathPattern); args.write(prot); prot.writeMessageEnd(); } public List getResult() throws CentralDogmaException, 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_getFiles(); } } public void getHistory(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getHistory_call method_call = new getHistory_call(projectName, repositoryName, from, to, pathPattern, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getHistory_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; private Revision from; private Revision to; private String pathPattern; public getHistory_call(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, 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.projectName = projectName; this.repositoryName = repositoryName; this.from = from; this.to = to; this.pathPattern = pathPattern; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistory", org.apache.thrift.protocol.TMessageType.CALL, 0)); getHistory_args args = new getHistory_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setFromRevision(from); args.setToRevision(to); args.setPathPattern(pathPattern); args.write(prot); prot.writeMessageEnd(); } public List getResult() throws CentralDogmaException, 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_getHistory(); } } public void getDiffs(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getDiffs_call method_call = new getDiffs_call(projectName, repositoryName, from, to, pathPattern, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getDiffs_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; private Revision from; private Revision to; private String pathPattern; public getDiffs_call(String projectName, String repositoryName, Revision from, Revision to, String pathPattern, 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.projectName = projectName; this.repositoryName = repositoryName; this.from = from; this.to = to; this.pathPattern = pathPattern; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDiffs", org.apache.thrift.protocol.TMessageType.CALL, 0)); getDiffs_args args = new getDiffs_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setFromRevision(from); args.setToRevision(to); args.setPathPattern(pathPattern); args.write(prot); prot.writeMessageEnd(); } public List getResult() throws CentralDogmaException, 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_getDiffs(); } } public void getPreviewDiffs(String projectName, String repositoryName, Revision baseRevision, List changes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getPreviewDiffs_call method_call = new getPreviewDiffs_call(projectName, repositoryName, baseRevision, changes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getPreviewDiffs_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; private Revision baseRevision; private List changes; public getPreviewDiffs_call(String projectName, String repositoryName, Revision baseRevision, List changes, 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.projectName = projectName; this.repositoryName = repositoryName; this.baseRevision = baseRevision; this.changes = changes; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPreviewDiffs", org.apache.thrift.protocol.TMessageType.CALL, 0)); getPreviewDiffs_args args = new getPreviewDiffs_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setBaseRevision(baseRevision); args.setChanges(changes); args.write(prot); prot.writeMessageEnd(); } public List getResult() throws CentralDogmaException, 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_getPreviewDiffs(); } } public void push(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List changes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); push_call method_call = new push_call(projectName, repositoryName, baseRevision, author, summary, detail, changes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class push_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; private Revision baseRevision; private Author author; private String summary; private Comment detail; private List changes; public push_call(String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List changes, 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.projectName = projectName; this.repositoryName = repositoryName; this.baseRevision = baseRevision; this.author = author; this.summary = summary; this.detail = detail; this.changes = changes; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("push", org.apache.thrift.protocol.TMessageType.CALL, 0)); push_args args = new push_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setBaseRevision(baseRevision); args.setAuthor(author); args.setSummary(summary); args.setDetail(detail); args.setChanges(changes); args.write(prot); prot.writeMessageEnd(); } public Commit getResult() throws CentralDogmaException, 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_push(); } } public void getFile(String projectName, String repositoryName, Revision revision, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getFile_call method_call = new getFile_call(projectName, repositoryName, revision, query, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getFile_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; private Revision revision; private Query query; public getFile_call(String projectName, String repositoryName, Revision revision, Query query, 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.projectName = projectName; this.repositoryName = repositoryName; this.revision = revision; this.query = query; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFile", org.apache.thrift.protocol.TMessageType.CALL, 0)); getFile_args args = new getFile_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setRevision(revision); args.setQuery(query); args.write(prot); prot.writeMessageEnd(); } public GetFileResult getResult() throws CentralDogmaException, 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_getFile(); } } public void diffFile(String projectName, String repositoryName, Revision from, Revision to, Query query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); diffFile_call method_call = new diffFile_call(projectName, repositoryName, from, to, query, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class diffFile_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; private Revision from; private Revision to; private Query query; public diffFile_call(String projectName, String repositoryName, Revision from, Revision to, Query query, 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.projectName = projectName; this.repositoryName = repositoryName; this.from = from; this.to = to; this.query = query; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("diffFile", org.apache.thrift.protocol.TMessageType.CALL, 0)); diffFile_args args = new diffFile_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setFromRevision(from); args.setToRevision(to); args.setQuery(query); args.write(prot); prot.writeMessageEnd(); } public DiffFileResult getResult() throws CentralDogmaException, 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_diffFile(); } } public void mergeFiles(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); mergeFiles_call method_call = new mergeFiles_call(projectName, repositoryName, revision, mergeQuery, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class mergeFiles_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; private Revision revision; private MergeQuery mergeQuery; public mergeFiles_call(String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery, 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.projectName = projectName; this.repositoryName = repositoryName; this.revision = revision; this.mergeQuery = mergeQuery; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mergeFiles", org.apache.thrift.protocol.TMessageType.CALL, 0)); mergeFiles_args args = new mergeFiles_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setRevision(revision); args.setMergeQuery(mergeQuery); args.write(prot); prot.writeMessageEnd(); } public MergedEntry getResult() throws CentralDogmaException, 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_mergeFiles(); } } public void watchRepository(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); watchRepository_call method_call = new watchRepository_call(projectName, repositoryName, lastKnownRevision, pathPattern, timeoutMillis, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class watchRepository_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; private Revision lastKnownRevision; private String pathPattern; private long timeoutMillis; public watchRepository_call(String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis, 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.projectName = projectName; this.repositoryName = repositoryName; this.lastKnownRevision = lastKnownRevision; this.pathPattern = pathPattern; this.timeoutMillis = timeoutMillis; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("watchRepository", org.apache.thrift.protocol.TMessageType.CALL, 0)); watchRepository_args args = new watchRepository_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setLastKnownRevision(lastKnownRevision); args.setPathPattern(pathPattern); args.setTimeoutMillis(timeoutMillis); args.write(prot); prot.writeMessageEnd(); } public WatchRepositoryResult getResult() throws CentralDogmaException, 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_watchRepository(); } } public void watchFile(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); watchFile_call method_call = new watchFile_call(projectName, repositoryName, lastKnownRevision, query, timeoutMillis, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class watchFile_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; private Revision lastKnownRevision; private Query query; private long timeoutMillis; public watchFile_call(String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis, 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.projectName = projectName; this.repositoryName = repositoryName; this.lastKnownRevision = lastKnownRevision; this.query = query; this.timeoutMillis = timeoutMillis; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("watchFile", org.apache.thrift.protocol.TMessageType.CALL, 0)); watchFile_args args = new watchFile_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setLastKnownRevision(lastKnownRevision); args.setQuery(query); args.setTimeoutMillis(timeoutMillis); args.write(prot); prot.writeMessageEnd(); } public WatchFileResult getResult() throws CentralDogmaException, 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_watchFile(); } } public void getSchema(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getSchema_call method_call = new getSchema_call(projectName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getSchema_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; public getSchema_call(String projectName, 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.projectName = projectName; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSchema", org.apache.thrift.protocol.TMessageType.CALL, 0)); getSchema_args args = new getSchema_args(); args.setProjectName(projectName); args.write(prot); prot.writeMessageEnd(); } public Schema getResult() throws CentralDogmaException, 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_getSchema(); } } public void saveSchema(String projectName, Schema schema, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); saveSchema_call method_call = new saveSchema_call(projectName, schema, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class saveSchema_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private Schema schema; public saveSchema_call(String projectName, Schema schema, 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.projectName = projectName; this.schema = schema; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveSchema", org.apache.thrift.protocol.TMessageType.CALL, 0)); saveSchema_args args = new saveSchema_args(); args.setProjectName(projectName); args.setSchema(schema); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws CentralDogmaException, 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_saveSchema(); } } public void getNamedQuery(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getNamedQuery_call method_call = new getNamedQuery_call(projectName, name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getNamedQuery_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String name; public getNamedQuery_call(String projectName, String name, 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.projectName = projectName; this.name = name; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNamedQuery", org.apache.thrift.protocol.TMessageType.CALL, 0)); getNamedQuery_args args = new getNamedQuery_args(); args.setProjectName(projectName); args.setName(name); args.write(prot); prot.writeMessageEnd(); } public NamedQuery getResult() throws CentralDogmaException, 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_getNamedQuery(); } } public void saveNamedQuery(String projectName, NamedQuery namedQuery, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); saveNamedQuery_call method_call = new saveNamedQuery_call(projectName, namedQuery, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class saveNamedQuery_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private NamedQuery namedQuery; public saveNamedQuery_call(String projectName, NamedQuery namedQuery, 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.projectName = projectName; this.namedQuery = namedQuery; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveNamedQuery", org.apache.thrift.protocol.TMessageType.CALL, 0)); saveNamedQuery_args args = new saveNamedQuery_args(); args.setProjectName(projectName); args.setNamedQuery(namedQuery); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws CentralDogmaException, 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_saveNamedQuery(); } } public void removeNamedQuery(String projectName, String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); removeNamedQuery_call method_call = new removeNamedQuery_call(projectName, name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class removeNamedQuery_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String name; public removeNamedQuery_call(String projectName, String name, 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.projectName = projectName; this.name = name; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeNamedQuery", org.apache.thrift.protocol.TMessageType.CALL, 0)); removeNamedQuery_args args = new removeNamedQuery_args(); args.setProjectName(projectName); args.setName(name); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws CentralDogmaException, 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_removeNamedQuery(); } } public void listNamedQueries(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); listNamedQueries_call method_call = new listNamedQueries_call(projectName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listNamedQueries_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; public listNamedQueries_call(String projectName, 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.projectName = projectName; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listNamedQueries", org.apache.thrift.protocol.TMessageType.CALL, 0)); listNamedQueries_args args = new listNamedQueries_args(); args.setProjectName(projectName); args.write(prot); prot.writeMessageEnd(); } public List getResult() throws CentralDogmaException, 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_listNamedQueries(); } } public void getPlugin(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getPlugin_call method_call = new getPlugin_call(projectName, pluginName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getPlugin_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String pluginName; public getPlugin_call(String projectName, String pluginName, 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.projectName = projectName; this.pluginName = pluginName; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPlugin", org.apache.thrift.protocol.TMessageType.CALL, 0)); getPlugin_args args = new getPlugin_args(); args.setProjectName(projectName); args.setPluginName(pluginName); args.write(prot); prot.writeMessageEnd(); } public Plugin getResult() throws CentralDogmaException, 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_getPlugin(); } } public void savePlugin(String projectName, Plugin plugin, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); savePlugin_call method_call = new savePlugin_call(projectName, plugin, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class savePlugin_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private Plugin plugin; public savePlugin_call(String projectName, Plugin plugin, 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.projectName = projectName; this.plugin = plugin; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("savePlugin", org.apache.thrift.protocol.TMessageType.CALL, 0)); savePlugin_args args = new savePlugin_args(); args.setProjectName(projectName); args.setPlugin(plugin); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws CentralDogmaException, 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_savePlugin(); } } public void removePlugin(String projectName, String pluginName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); removePlugin_call method_call = new removePlugin_call(projectName, pluginName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class removePlugin_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String pluginName; public removePlugin_call(String projectName, String pluginName, 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.projectName = projectName; this.pluginName = pluginName; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removePlugin", org.apache.thrift.protocol.TMessageType.CALL, 0)); removePlugin_args args = new removePlugin_args(); args.setProjectName(projectName); args.setPluginName(pluginName); args.write(prot); prot.writeMessageEnd(); } public void getResult() throws CentralDogmaException, 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_removePlugin(); } } public void listPlugins(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); listPlugins_call method_call = new listPlugins_call(projectName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listPlugins_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; public listPlugins_call(String projectName, 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.projectName = projectName; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listPlugins", org.apache.thrift.protocol.TMessageType.CALL, 0)); listPlugins_args args = new listPlugins_args(); args.setProjectName(projectName); args.write(prot); prot.writeMessageEnd(); } public List getResult() throws CentralDogmaException, 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_listPlugins(); } } public void listPluginOperations(String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); listPluginOperations_call method_call = new listPluginOperations_call(projectName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listPluginOperations_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; public listPluginOperations_call(String projectName, 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.projectName = projectName; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listPluginOperations", org.apache.thrift.protocol.TMessageType.CALL, 0)); listPluginOperations_args args = new listPluginOperations_args(); args.setProjectName(projectName); args.write(prot); prot.writeMessageEnd(); } public List getResult() throws CentralDogmaException, 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_listPluginOperations(); } } public void performPluginOperation(String projectName, String pluginName, String operationName, String params, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); performPluginOperation_call method_call = new performPluginOperation_call(projectName, pluginName, operationName, params, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class performPluginOperation_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String pluginName; private String operationName; private String params; public performPluginOperation_call(String projectName, String pluginName, String operationName, String params, 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.projectName = projectName; this.pluginName = pluginName; this.operationName = operationName; this.params = params; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("performPluginOperation", org.apache.thrift.protocol.TMessageType.CALL, 0)); performPluginOperation_args args = new performPluginOperation_args(); args.setProjectName(projectName); args.setPluginName(pluginName); args.setOperationName(operationName); args.setParams(params); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws CentralDogmaException, 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_performPluginOperation(); } } public void queryByNamedQuery(String projectName, String namedQuery, Revision revision, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); queryByNamedQuery_call method_call = new queryByNamedQuery_call(projectName, namedQuery, revision, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class queryByNamedQuery_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String namedQuery; private Revision revision; public queryByNamedQuery_call(String projectName, String namedQuery, Revision revision, 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.projectName = projectName; this.namedQuery = namedQuery; this.revision = revision; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("queryByNamedQuery", org.apache.thrift.protocol.TMessageType.CALL, 0)); queryByNamedQuery_args args = new queryByNamedQuery_args(); args.setProjectName(projectName); args.setNamedQuery(namedQuery); args.setRevision(revision); args.write(prot); prot.writeMessageEnd(); } public String getResult() throws CentralDogmaException, 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_queryByNamedQuery(); } } public void listSubscribers(String projectName, String repositoryName, String path, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); listSubscribers_call method_call = new listSubscribers_call(projectName, repositoryName, path, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class listSubscribers_call extends org.apache.thrift.async.TAsyncMethodCall { private String projectName; private String repositoryName; private String path; public listSubscribers_call(String projectName, String repositoryName, String path, 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.projectName = projectName; this.repositoryName = repositoryName; this.path = path; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listSubscribers", org.apache.thrift.protocol.TMessageType.CALL, 0)); listSubscribers_args args = new listSubscribers_args(); args.setProjectName(projectName); args.setRepositoryName(repositoryName); args.setPath(path); args.write(prot); prot.writeMessageEnd(); } public List getResult() throws CentralDogmaException, 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_listSubscribers(); } } } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); public Processor(I iface) { super(iface, getProcessMap(new HashMap>())); } protected Processor(I iface, Map> processMap) { super(iface, getProcessMap(processMap)); } private static Map> getProcessMap(Map> processMap) { processMap.put("createProject", new createProject()); processMap.put("removeProject", new removeProject()); processMap.put("purgeProject", new purgeProject()); processMap.put("unremoveProject", new unremoveProject()); processMap.put("listProjects", new listProjects()); processMap.put("listRemovedProjects", new listRemovedProjects()); processMap.put("createRepository", new createRepository()); processMap.put("removeRepository", new removeRepository()); processMap.put("purgeRepository", new purgeRepository()); processMap.put("unremoveRepository", new unremoveRepository()); processMap.put("listRepositories", new listRepositories()); processMap.put("listRemovedRepositories", new listRemovedRepositories()); processMap.put("normalizeRevision", new normalizeRevision()); processMap.put("listFiles", new listFiles()); processMap.put("getFiles", new getFiles()); processMap.put("getHistory", new getHistory()); processMap.put("getDiffs", new getDiffs()); processMap.put("getPreviewDiffs", new getPreviewDiffs()); processMap.put("push", new push()); processMap.put("getFile", new getFile()); processMap.put("diffFile", new diffFile()); processMap.put("mergeFiles", new mergeFiles()); processMap.put("watchRepository", new watchRepository()); processMap.put("watchFile", new watchFile()); processMap.put("getSchema", new getSchema()); processMap.put("saveSchema", new saveSchema()); processMap.put("getNamedQuery", new getNamedQuery()); processMap.put("saveNamedQuery", new saveNamedQuery()); processMap.put("removeNamedQuery", new removeNamedQuery()); processMap.put("listNamedQueries", new listNamedQueries()); processMap.put("getPlugin", new getPlugin()); processMap.put("savePlugin", new savePlugin()); processMap.put("removePlugin", new removePlugin()); processMap.put("listPlugins", new listPlugins()); processMap.put("listPluginOperations", new listPluginOperations()); processMap.put("performPluginOperation", new performPluginOperation()); processMap.put("queryByNamedQuery", new queryByNamedQuery()); processMap.put("listSubscribers", new listSubscribers()); return processMap; } public static class createProject extends org.apache.thrift.ProcessFunction { public createProject() { super("createProject"); } public createProject_args getEmptyArgsInstance() { return new createProject_args(); } protected boolean isOneway() { return false; } public createProject_result getResult(I iface, createProject_args args) throws org.apache.thrift.TException { createProject_result result = new createProject_result(); try { iface.createProject(args.name); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class removeProject extends org.apache.thrift.ProcessFunction { public removeProject() { super("removeProject"); } public removeProject_args getEmptyArgsInstance() { return new removeProject_args(); } protected boolean isOneway() { return false; } public removeProject_result getResult(I iface, removeProject_args args) throws org.apache.thrift.TException { removeProject_result result = new removeProject_result(); try { iface.removeProject(args.name); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class purgeProject extends org.apache.thrift.ProcessFunction { public purgeProject() { super("purgeProject"); } public purgeProject_args getEmptyArgsInstance() { return new purgeProject_args(); } protected boolean isOneway() { return false; } public purgeProject_result getResult(I iface, purgeProject_args args) throws org.apache.thrift.TException { purgeProject_result result = new purgeProject_result(); try { iface.purgeProject(args.name); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class unremoveProject extends org.apache.thrift.ProcessFunction { public unremoveProject() { super("unremoveProject"); } public unremoveProject_args getEmptyArgsInstance() { return new unremoveProject_args(); } protected boolean isOneway() { return false; } public unremoveProject_result getResult(I iface, unremoveProject_args args) throws org.apache.thrift.TException { unremoveProject_result result = new unremoveProject_result(); try { iface.unremoveProject(args.name); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class listProjects extends org.apache.thrift.ProcessFunction { public listProjects() { super("listProjects"); } public listProjects_args getEmptyArgsInstance() { return new listProjects_args(); } protected boolean isOneway() { return false; } public listProjects_result getResult(I iface, listProjects_args args) throws org.apache.thrift.TException { listProjects_result result = new listProjects_result(); try { result.success = iface.listProjects(); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class listRemovedProjects extends org.apache.thrift.ProcessFunction { public listRemovedProjects() { super("listRemovedProjects"); } public listRemovedProjects_args getEmptyArgsInstance() { return new listRemovedProjects_args(); } protected boolean isOneway() { return false; } public listRemovedProjects_result getResult(I iface, listRemovedProjects_args args) throws org.apache.thrift.TException { listRemovedProjects_result result = new listRemovedProjects_result(); try { result.success = iface.listRemovedProjects(); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class createRepository extends org.apache.thrift.ProcessFunction { public createRepository() { super("createRepository"); } public createRepository_args getEmptyArgsInstance() { return new createRepository_args(); } protected boolean isOneway() { return false; } public createRepository_result getResult(I iface, createRepository_args args) throws org.apache.thrift.TException { createRepository_result result = new createRepository_result(); try { iface.createRepository(args.projectName, args.repositoryName); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class removeRepository extends org.apache.thrift.ProcessFunction { public removeRepository() { super("removeRepository"); } public removeRepository_args getEmptyArgsInstance() { return new removeRepository_args(); } protected boolean isOneway() { return false; } public removeRepository_result getResult(I iface, removeRepository_args args) throws org.apache.thrift.TException { removeRepository_result result = new removeRepository_result(); try { iface.removeRepository(args.projectName, args.repositoryName); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class purgeRepository extends org.apache.thrift.ProcessFunction { public purgeRepository() { super("purgeRepository"); } public purgeRepository_args getEmptyArgsInstance() { return new purgeRepository_args(); } protected boolean isOneway() { return false; } public purgeRepository_result getResult(I iface, purgeRepository_args args) throws org.apache.thrift.TException { purgeRepository_result result = new purgeRepository_result(); try { iface.purgeRepository(args.projectName, args.repositoryName); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class unremoveRepository extends org.apache.thrift.ProcessFunction { public unremoveRepository() { super("unremoveRepository"); } public unremoveRepository_args getEmptyArgsInstance() { return new unremoveRepository_args(); } protected boolean isOneway() { return false; } public unremoveRepository_result getResult(I iface, unremoveRepository_args args) throws org.apache.thrift.TException { unremoveRepository_result result = new unremoveRepository_result(); try { iface.unremoveRepository(args.projectName, args.repositoryName); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class listRepositories extends org.apache.thrift.ProcessFunction { public listRepositories() { super("listRepositories"); } public listRepositories_args getEmptyArgsInstance() { return new listRepositories_args(); } protected boolean isOneway() { return false; } public listRepositories_result getResult(I iface, listRepositories_args args) throws org.apache.thrift.TException { listRepositories_result result = new listRepositories_result(); try { result.success = iface.listRepositories(args.projectName); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class listRemovedRepositories extends org.apache.thrift.ProcessFunction { public listRemovedRepositories() { super("listRemovedRepositories"); } public listRemovedRepositories_args getEmptyArgsInstance() { return new listRemovedRepositories_args(); } protected boolean isOneway() { return false; } public listRemovedRepositories_result getResult(I iface, listRemovedRepositories_args args) throws org.apache.thrift.TException { listRemovedRepositories_result result = new listRemovedRepositories_result(); try { result.success = iface.listRemovedRepositories(args.projectName); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class normalizeRevision extends org.apache.thrift.ProcessFunction { public normalizeRevision() { super("normalizeRevision"); } public normalizeRevision_args getEmptyArgsInstance() { return new normalizeRevision_args(); } protected boolean isOneway() { return false; } public normalizeRevision_result getResult(I iface, normalizeRevision_args args) throws org.apache.thrift.TException { normalizeRevision_result result = new normalizeRevision_result(); try { result.success = iface.normalizeRevision(args.projectName, args.repositoryName, args.revision); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class listFiles extends org.apache.thrift.ProcessFunction { public listFiles() { super("listFiles"); } public listFiles_args getEmptyArgsInstance() { return new listFiles_args(); } protected boolean isOneway() { return false; } public listFiles_result getResult(I iface, listFiles_args args) throws org.apache.thrift.TException { listFiles_result result = new listFiles_result(); try { result.success = iface.listFiles(args.projectName, args.repositoryName, args.revision, args.pathPattern); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class getFiles extends org.apache.thrift.ProcessFunction { public getFiles() { super("getFiles"); } public getFiles_args getEmptyArgsInstance() { return new getFiles_args(); } protected boolean isOneway() { return false; } public getFiles_result getResult(I iface, getFiles_args args) throws org.apache.thrift.TException { getFiles_result result = new getFiles_result(); try { result.success = iface.getFiles(args.projectName, args.repositoryName, args.revision, args.pathPattern); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class getHistory extends org.apache.thrift.ProcessFunction { public getHistory() { super("getHistory"); } public getHistory_args getEmptyArgsInstance() { return new getHistory_args(); } protected boolean isOneway() { return false; } public getHistory_result getResult(I iface, getHistory_args args) throws org.apache.thrift.TException { getHistory_result result = new getHistory_result(); try { result.success = iface.getHistory(args.projectName, args.repositoryName, args.from, args.to, args.pathPattern); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class getDiffs extends org.apache.thrift.ProcessFunction { public getDiffs() { super("getDiffs"); } public getDiffs_args getEmptyArgsInstance() { return new getDiffs_args(); } protected boolean isOneway() { return false; } public getDiffs_result getResult(I iface, getDiffs_args args) throws org.apache.thrift.TException { getDiffs_result result = new getDiffs_result(); try { result.success = iface.getDiffs(args.projectName, args.repositoryName, args.from, args.to, args.pathPattern); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class getPreviewDiffs extends org.apache.thrift.ProcessFunction { public getPreviewDiffs() { super("getPreviewDiffs"); } public getPreviewDiffs_args getEmptyArgsInstance() { return new getPreviewDiffs_args(); } protected boolean isOneway() { return false; } public getPreviewDiffs_result getResult(I iface, getPreviewDiffs_args args) throws org.apache.thrift.TException { getPreviewDiffs_result result = new getPreviewDiffs_result(); try { result.success = iface.getPreviewDiffs(args.projectName, args.repositoryName, args.baseRevision, args.changes); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class push extends org.apache.thrift.ProcessFunction { public push() { super("push"); } public push_args getEmptyArgsInstance() { return new push_args(); } protected boolean isOneway() { return false; } public push_result getResult(I iface, push_args args) throws org.apache.thrift.TException { push_result result = new push_result(); try { result.success = iface.push(args.projectName, args.repositoryName, args.baseRevision, args.author, args.summary, args.detail, args.changes); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class getFile extends org.apache.thrift.ProcessFunction { public getFile() { super("getFile"); } public getFile_args getEmptyArgsInstance() { return new getFile_args(); } protected boolean isOneway() { return false; } public getFile_result getResult(I iface, getFile_args args) throws org.apache.thrift.TException { getFile_result result = new getFile_result(); try { result.success = iface.getFile(args.projectName, args.repositoryName, args.revision, args.query); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class diffFile extends org.apache.thrift.ProcessFunction { public diffFile() { super("diffFile"); } public diffFile_args getEmptyArgsInstance() { return new diffFile_args(); } protected boolean isOneway() { return false; } public diffFile_result getResult(I iface, diffFile_args args) throws org.apache.thrift.TException { diffFile_result result = new diffFile_result(); try { result.success = iface.diffFile(args.projectName, args.repositoryName, args.from, args.to, args.query); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class mergeFiles extends org.apache.thrift.ProcessFunction { public mergeFiles() { super("mergeFiles"); } public mergeFiles_args getEmptyArgsInstance() { return new mergeFiles_args(); } protected boolean isOneway() { return false; } public mergeFiles_result getResult(I iface, mergeFiles_args args) throws org.apache.thrift.TException { mergeFiles_result result = new mergeFiles_result(); try { result.success = iface.mergeFiles(args.projectName, args.repositoryName, args.revision, args.mergeQuery); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class watchRepository extends org.apache.thrift.ProcessFunction { public watchRepository() { super("watchRepository"); } public watchRepository_args getEmptyArgsInstance() { return new watchRepository_args(); } protected boolean isOneway() { return false; } public watchRepository_result getResult(I iface, watchRepository_args args) throws org.apache.thrift.TException { watchRepository_result result = new watchRepository_result(); try { result.success = iface.watchRepository(args.projectName, args.repositoryName, args.lastKnownRevision, args.pathPattern, args.timeoutMillis); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class watchFile extends org.apache.thrift.ProcessFunction { public watchFile() { super("watchFile"); } public watchFile_args getEmptyArgsInstance() { return new watchFile_args(); } protected boolean isOneway() { return false; } public watchFile_result getResult(I iface, watchFile_args args) throws org.apache.thrift.TException { watchFile_result result = new watchFile_result(); try { result.success = iface.watchFile(args.projectName, args.repositoryName, args.lastKnownRevision, args.query, args.timeoutMillis); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class getSchema extends org.apache.thrift.ProcessFunction { public getSchema() { super("getSchema"); } public getSchema_args getEmptyArgsInstance() { return new getSchema_args(); } protected boolean isOneway() { return false; } public getSchema_result getResult(I iface, getSchema_args args) throws org.apache.thrift.TException { getSchema_result result = new getSchema_result(); try { result.success = iface.getSchema(args.projectName); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class saveSchema extends org.apache.thrift.ProcessFunction { public saveSchema() { super("saveSchema"); } public saveSchema_args getEmptyArgsInstance() { return new saveSchema_args(); } protected boolean isOneway() { return false; } public saveSchema_result getResult(I iface, saveSchema_args args) throws org.apache.thrift.TException { saveSchema_result result = new saveSchema_result(); try { iface.saveSchema(args.projectName, args.schema); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class getNamedQuery extends org.apache.thrift.ProcessFunction { public getNamedQuery() { super("getNamedQuery"); } public getNamedQuery_args getEmptyArgsInstance() { return new getNamedQuery_args(); } protected boolean isOneway() { return false; } public getNamedQuery_result getResult(I iface, getNamedQuery_args args) throws org.apache.thrift.TException { getNamedQuery_result result = new getNamedQuery_result(); try { result.success = iface.getNamedQuery(args.projectName, args.name); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class saveNamedQuery extends org.apache.thrift.ProcessFunction { public saveNamedQuery() { super("saveNamedQuery"); } public saveNamedQuery_args getEmptyArgsInstance() { return new saveNamedQuery_args(); } protected boolean isOneway() { return false; } public saveNamedQuery_result getResult(I iface, saveNamedQuery_args args) throws org.apache.thrift.TException { saveNamedQuery_result result = new saveNamedQuery_result(); try { iface.saveNamedQuery(args.projectName, args.namedQuery); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class removeNamedQuery extends org.apache.thrift.ProcessFunction { public removeNamedQuery() { super("removeNamedQuery"); } public removeNamedQuery_args getEmptyArgsInstance() { return new removeNamedQuery_args(); } protected boolean isOneway() { return false; } public removeNamedQuery_result getResult(I iface, removeNamedQuery_args args) throws org.apache.thrift.TException { removeNamedQuery_result result = new removeNamedQuery_result(); try { iface.removeNamedQuery(args.projectName, args.name); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class listNamedQueries extends org.apache.thrift.ProcessFunction { public listNamedQueries() { super("listNamedQueries"); } public listNamedQueries_args getEmptyArgsInstance() { return new listNamedQueries_args(); } protected boolean isOneway() { return false; } public listNamedQueries_result getResult(I iface, listNamedQueries_args args) throws org.apache.thrift.TException { listNamedQueries_result result = new listNamedQueries_result(); try { result.success = iface.listNamedQueries(args.projectName); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class getPlugin extends org.apache.thrift.ProcessFunction { public getPlugin() { super("getPlugin"); } public getPlugin_args getEmptyArgsInstance() { return new getPlugin_args(); } protected boolean isOneway() { return false; } public getPlugin_result getResult(I iface, getPlugin_args args) throws org.apache.thrift.TException { getPlugin_result result = new getPlugin_result(); try { result.success = iface.getPlugin(args.projectName, args.pluginName); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class savePlugin extends org.apache.thrift.ProcessFunction { public savePlugin() { super("savePlugin"); } public savePlugin_args getEmptyArgsInstance() { return new savePlugin_args(); } protected boolean isOneway() { return false; } public savePlugin_result getResult(I iface, savePlugin_args args) throws org.apache.thrift.TException { savePlugin_result result = new savePlugin_result(); try { iface.savePlugin(args.projectName, args.plugin); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class removePlugin extends org.apache.thrift.ProcessFunction { public removePlugin() { super("removePlugin"); } public removePlugin_args getEmptyArgsInstance() { return new removePlugin_args(); } protected boolean isOneway() { return false; } public removePlugin_result getResult(I iface, removePlugin_args args) throws org.apache.thrift.TException { removePlugin_result result = new removePlugin_result(); try { iface.removePlugin(args.projectName, args.pluginName); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class listPlugins extends org.apache.thrift.ProcessFunction { public listPlugins() { super("listPlugins"); } public listPlugins_args getEmptyArgsInstance() { return new listPlugins_args(); } protected boolean isOneway() { return false; } public listPlugins_result getResult(I iface, listPlugins_args args) throws org.apache.thrift.TException { listPlugins_result result = new listPlugins_result(); try { result.success = iface.listPlugins(args.projectName); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class listPluginOperations extends org.apache.thrift.ProcessFunction { public listPluginOperations() { super("listPluginOperations"); } public listPluginOperations_args getEmptyArgsInstance() { return new listPluginOperations_args(); } protected boolean isOneway() { return false; } public listPluginOperations_result getResult(I iface, listPluginOperations_args args) throws org.apache.thrift.TException { listPluginOperations_result result = new listPluginOperations_result(); try { result.success = iface.listPluginOperations(args.projectName); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class performPluginOperation extends org.apache.thrift.ProcessFunction { public performPluginOperation() { super("performPluginOperation"); } public performPluginOperation_args getEmptyArgsInstance() { return new performPluginOperation_args(); } protected boolean isOneway() { return false; } public performPluginOperation_result getResult(I iface, performPluginOperation_args args) throws org.apache.thrift.TException { performPluginOperation_result result = new performPluginOperation_result(); try { result.success = iface.performPluginOperation(args.projectName, args.pluginName, args.operationName, args.params); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class queryByNamedQuery extends org.apache.thrift.ProcessFunction { public queryByNamedQuery() { super("queryByNamedQuery"); } public queryByNamedQuery_args getEmptyArgsInstance() { return new queryByNamedQuery_args(); } protected boolean isOneway() { return false; } public queryByNamedQuery_result getResult(I iface, queryByNamedQuery_args args) throws org.apache.thrift.TException { queryByNamedQuery_result result = new queryByNamedQuery_result(); try { result.success = iface.queryByNamedQuery(args.projectName, args.namedQuery, args.revision); } catch (CentralDogmaException e) { result.e = e; } return result; } } public static class listSubscribers extends org.apache.thrift.ProcessFunction { public listSubscribers() { super("listSubscribers"); } public listSubscribers_args getEmptyArgsInstance() { return new listSubscribers_args(); } protected boolean isOneway() { return false; } public listSubscribers_result getResult(I iface, listSubscribers_args args) throws org.apache.thrift.TException { listSubscribers_result result = new listSubscribers_result(); try { result.success = iface.listSubscribers(args.projectName, args.repositoryName, args.path); } catch (CentralDogmaException e) { result.e = e; } return result; } } } public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); public AsyncProcessor(I iface) { super(iface, getProcessMap(new HashMap>())); } protected AsyncProcessor(I iface, Map> processMap) { super(iface, getProcessMap(processMap)); } private static Map> getProcessMap(Map> processMap) { processMap.put("createProject", new createProject()); processMap.put("removeProject", new removeProject()); processMap.put("purgeProject", new purgeProject()); processMap.put("unremoveProject", new unremoveProject()); processMap.put("listProjects", new listProjects()); processMap.put("listRemovedProjects", new listRemovedProjects()); processMap.put("createRepository", new createRepository()); processMap.put("removeRepository", new removeRepository()); processMap.put("purgeRepository", new purgeRepository()); processMap.put("unremoveRepository", new unremoveRepository()); processMap.put("listRepositories", new listRepositories()); processMap.put("listRemovedRepositories", new listRemovedRepositories()); processMap.put("normalizeRevision", new normalizeRevision()); processMap.put("listFiles", new listFiles()); processMap.put("getFiles", new getFiles()); processMap.put("getHistory", new getHistory()); processMap.put("getDiffs", new getDiffs()); processMap.put("getPreviewDiffs", new getPreviewDiffs()); processMap.put("push", new push()); processMap.put("getFile", new getFile()); processMap.put("diffFile", new diffFile()); processMap.put("mergeFiles", new mergeFiles()); processMap.put("watchRepository", new watchRepository()); processMap.put("watchFile", new watchFile()); processMap.put("getSchema", new getSchema()); processMap.put("saveSchema", new saveSchema()); processMap.put("getNamedQuery", new getNamedQuery()); processMap.put("saveNamedQuery", new saveNamedQuery()); processMap.put("removeNamedQuery", new removeNamedQuery()); processMap.put("listNamedQueries", new listNamedQueries()); processMap.put("getPlugin", new getPlugin()); processMap.put("savePlugin", new savePlugin()); processMap.put("removePlugin", new removePlugin()); processMap.put("listPlugins", new listPlugins()); processMap.put("listPluginOperations", new listPluginOperations()); processMap.put("performPluginOperation", new performPluginOperation()); processMap.put("queryByNamedQuery", new queryByNamedQuery()); processMap.put("listSubscribers", new listSubscribers()); return processMap; } public static class createProject extends org.apache.thrift.AsyncProcessFunction { public createProject() { super("createProject"); } public createProject_args getEmptyArgsInstance() { return new createProject_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { createProject_result result = new createProject_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; createProject_result result = new createProject_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, createProject_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.createProject(args.name,resultHandler); } } public static class removeProject extends org.apache.thrift.AsyncProcessFunction { public removeProject() { super("removeProject"); } public removeProject_args getEmptyArgsInstance() { return new removeProject_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { removeProject_result result = new removeProject_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; removeProject_result result = new removeProject_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, removeProject_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.removeProject(args.name,resultHandler); } } public static class purgeProject extends org.apache.thrift.AsyncProcessFunction { public purgeProject() { super("purgeProject"); } public purgeProject_args getEmptyArgsInstance() { return new purgeProject_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { purgeProject_result result = new purgeProject_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; purgeProject_result result = new purgeProject_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, purgeProject_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.purgeProject(args.name,resultHandler); } } public static class unremoveProject extends org.apache.thrift.AsyncProcessFunction { public unremoveProject() { super("unremoveProject"); } public unremoveProject_args getEmptyArgsInstance() { return new unremoveProject_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { unremoveProject_result result = new unremoveProject_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; unremoveProject_result result = new unremoveProject_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, unremoveProject_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.unremoveProject(args.name,resultHandler); } } public static class listProjects extends org.apache.thrift.AsyncProcessFunction> { public listProjects() { super("listProjects"); } public listProjects_args getEmptyArgsInstance() { return new listProjects_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { listProjects_result result = new listProjects_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; listProjects_result result = new listProjects_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, listProjects_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.listProjects(resultHandler); } } public static class listRemovedProjects extends org.apache.thrift.AsyncProcessFunction> { public listRemovedProjects() { super("listRemovedProjects"); } public listRemovedProjects_args getEmptyArgsInstance() { return new listRemovedProjects_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { listRemovedProjects_result result = new listRemovedProjects_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; listRemovedProjects_result result = new listRemovedProjects_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, listRemovedProjects_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.listRemovedProjects(resultHandler); } } public static class createRepository extends org.apache.thrift.AsyncProcessFunction { public createRepository() { super("createRepository"); } public createRepository_args getEmptyArgsInstance() { return new createRepository_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { createRepository_result result = new createRepository_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; createRepository_result result = new createRepository_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, createRepository_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.createRepository(args.projectName, args.repositoryName,resultHandler); } } public static class removeRepository extends org.apache.thrift.AsyncProcessFunction { public removeRepository() { super("removeRepository"); } public removeRepository_args getEmptyArgsInstance() { return new removeRepository_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { removeRepository_result result = new removeRepository_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; removeRepository_result result = new removeRepository_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, removeRepository_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.removeRepository(args.projectName, args.repositoryName,resultHandler); } } public static class purgeRepository extends org.apache.thrift.AsyncProcessFunction { public purgeRepository() { super("purgeRepository"); } public purgeRepository_args getEmptyArgsInstance() { return new purgeRepository_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { purgeRepository_result result = new purgeRepository_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; purgeRepository_result result = new purgeRepository_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, purgeRepository_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.purgeRepository(args.projectName, args.repositoryName,resultHandler); } } public static class unremoveRepository extends org.apache.thrift.AsyncProcessFunction { public unremoveRepository() { super("unremoveRepository"); } public unremoveRepository_args getEmptyArgsInstance() { return new unremoveRepository_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { unremoveRepository_result result = new unremoveRepository_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; unremoveRepository_result result = new unremoveRepository_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, unremoveRepository_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.unremoveRepository(args.projectName, args.repositoryName,resultHandler); } } public static class listRepositories extends org.apache.thrift.AsyncProcessFunction> { public listRepositories() { super("listRepositories"); } public listRepositories_args getEmptyArgsInstance() { return new listRepositories_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { listRepositories_result result = new listRepositories_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; listRepositories_result result = new listRepositories_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, listRepositories_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.listRepositories(args.projectName,resultHandler); } } public static class listRemovedRepositories extends org.apache.thrift.AsyncProcessFunction> { public listRemovedRepositories() { super("listRemovedRepositories"); } public listRemovedRepositories_args getEmptyArgsInstance() { return new listRemovedRepositories_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(Set o) { listRemovedRepositories_result result = new listRemovedRepositories_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; listRemovedRepositories_result result = new listRemovedRepositories_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, listRemovedRepositories_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.listRemovedRepositories(args.projectName,resultHandler); } } public static class normalizeRevision extends org.apache.thrift.AsyncProcessFunction { public normalizeRevision() { super("normalizeRevision"); } public normalizeRevision_args getEmptyArgsInstance() { return new normalizeRevision_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Revision o) { normalizeRevision_result result = new normalizeRevision_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; normalizeRevision_result result = new normalizeRevision_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, normalizeRevision_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.normalizeRevision(args.projectName, args.repositoryName, args.revision,resultHandler); } } public static class listFiles extends org.apache.thrift.AsyncProcessFunction> { public listFiles() { super("listFiles"); } public listFiles_args getEmptyArgsInstance() { return new listFiles_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { listFiles_result result = new listFiles_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; listFiles_result result = new listFiles_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, listFiles_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.listFiles(args.projectName, args.repositoryName, args.revision, args.pathPattern,resultHandler); } } public static class getFiles extends org.apache.thrift.AsyncProcessFunction> { public getFiles() { super("getFiles"); } public getFiles_args getEmptyArgsInstance() { return new getFiles_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { getFiles_result result = new getFiles_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; getFiles_result result = new getFiles_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, getFiles_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getFiles(args.projectName, args.repositoryName, args.revision, args.pathPattern,resultHandler); } } public static class getHistory extends org.apache.thrift.AsyncProcessFunction> { public getHistory() { super("getHistory"); } public getHistory_args getEmptyArgsInstance() { return new getHistory_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { getHistory_result result = new getHistory_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; getHistory_result result = new getHistory_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, getHistory_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getHistory(args.projectName, args.repositoryName, args.from, args.to, args.pathPattern,resultHandler); } } public static class getDiffs extends org.apache.thrift.AsyncProcessFunction> { public getDiffs() { super("getDiffs"); } public getDiffs_args getEmptyArgsInstance() { return new getDiffs_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { getDiffs_result result = new getDiffs_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; getDiffs_result result = new getDiffs_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, getDiffs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getDiffs(args.projectName, args.repositoryName, args.from, args.to, args.pathPattern,resultHandler); } } public static class getPreviewDiffs extends org.apache.thrift.AsyncProcessFunction> { public getPreviewDiffs() { super("getPreviewDiffs"); } public getPreviewDiffs_args getEmptyArgsInstance() { return new getPreviewDiffs_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { getPreviewDiffs_result result = new getPreviewDiffs_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; getPreviewDiffs_result result = new getPreviewDiffs_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, getPreviewDiffs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.getPreviewDiffs(args.projectName, args.repositoryName, args.baseRevision, args.changes,resultHandler); } } public static class push extends org.apache.thrift.AsyncProcessFunction { public push() { super("push"); } public push_args getEmptyArgsInstance() { return new push_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Commit o) { push_result result = new push_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; push_result result = new push_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, push_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.push(args.projectName, args.repositoryName, args.baseRevision, args.author, args.summary, args.detail, args.changes,resultHandler); } } public static class getFile extends org.apache.thrift.AsyncProcessFunction { public getFile() { super("getFile"); } public getFile_args getEmptyArgsInstance() { return new getFile_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(GetFileResult o) { getFile_result result = new getFile_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; getFile_result result = new getFile_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, getFile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getFile(args.projectName, args.repositoryName, args.revision, args.query,resultHandler); } } public static class diffFile extends org.apache.thrift.AsyncProcessFunction { public diffFile() { super("diffFile"); } public diffFile_args getEmptyArgsInstance() { return new diffFile_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(DiffFileResult o) { diffFile_result result = new diffFile_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; diffFile_result result = new diffFile_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, diffFile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.diffFile(args.projectName, args.repositoryName, args.from, args.to, args.query,resultHandler); } } public static class mergeFiles extends org.apache.thrift.AsyncProcessFunction { public mergeFiles() { super("mergeFiles"); } public mergeFiles_args getEmptyArgsInstance() { return new mergeFiles_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(MergedEntry o) { mergeFiles_result result = new mergeFiles_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; mergeFiles_result result = new mergeFiles_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, mergeFiles_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.mergeFiles(args.projectName, args.repositoryName, args.revision, args.mergeQuery,resultHandler); } } public static class watchRepository extends org.apache.thrift.AsyncProcessFunction { public watchRepository() { super("watchRepository"); } public watchRepository_args getEmptyArgsInstance() { return new watchRepository_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(WatchRepositoryResult o) { watchRepository_result result = new watchRepository_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; watchRepository_result result = new watchRepository_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, watchRepository_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.watchRepository(args.projectName, args.repositoryName, args.lastKnownRevision, args.pathPattern, args.timeoutMillis,resultHandler); } } public static class watchFile extends org.apache.thrift.AsyncProcessFunction { public watchFile() { super("watchFile"); } public watchFile_args getEmptyArgsInstance() { return new watchFile_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(WatchFileResult o) { watchFile_result result = new watchFile_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; watchFile_result result = new watchFile_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, watchFile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.watchFile(args.projectName, args.repositoryName, args.lastKnownRevision, args.query, args.timeoutMillis,resultHandler); } } public static class getSchema extends org.apache.thrift.AsyncProcessFunction { public getSchema() { super("getSchema"); } public getSchema_args getEmptyArgsInstance() { return new getSchema_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Schema o) { getSchema_result result = new getSchema_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; getSchema_result result = new getSchema_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, getSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getSchema(args.projectName,resultHandler); } } public static class saveSchema extends org.apache.thrift.AsyncProcessFunction { public saveSchema() { super("saveSchema"); } public saveSchema_args getEmptyArgsInstance() { return new saveSchema_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { saveSchema_result result = new saveSchema_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; saveSchema_result result = new saveSchema_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, saveSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.saveSchema(args.projectName, args.schema,resultHandler); } } public static class getNamedQuery extends org.apache.thrift.AsyncProcessFunction { public getNamedQuery() { super("getNamedQuery"); } public getNamedQuery_args getEmptyArgsInstance() { return new getNamedQuery_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(NamedQuery o) { getNamedQuery_result result = new getNamedQuery_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; getNamedQuery_result result = new getNamedQuery_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, getNamedQuery_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getNamedQuery(args.projectName, args.name,resultHandler); } } public static class saveNamedQuery extends org.apache.thrift.AsyncProcessFunction { public saveNamedQuery() { super("saveNamedQuery"); } public saveNamedQuery_args getEmptyArgsInstance() { return new saveNamedQuery_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { saveNamedQuery_result result = new saveNamedQuery_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; saveNamedQuery_result result = new saveNamedQuery_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, saveNamedQuery_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.saveNamedQuery(args.projectName, args.namedQuery,resultHandler); } } public static class removeNamedQuery extends org.apache.thrift.AsyncProcessFunction { public removeNamedQuery() { super("removeNamedQuery"); } public removeNamedQuery_args getEmptyArgsInstance() { return new removeNamedQuery_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { removeNamedQuery_result result = new removeNamedQuery_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; removeNamedQuery_result result = new removeNamedQuery_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, removeNamedQuery_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.removeNamedQuery(args.projectName, args.name,resultHandler); } } public static class listNamedQueries extends org.apache.thrift.AsyncProcessFunction> { public listNamedQueries() { super("listNamedQueries"); } public listNamedQueries_args getEmptyArgsInstance() { return new listNamedQueries_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { listNamedQueries_result result = new listNamedQueries_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; listNamedQueries_result result = new listNamedQueries_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, listNamedQueries_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.listNamedQueries(args.projectName,resultHandler); } } public static class getPlugin extends org.apache.thrift.AsyncProcessFunction { public getPlugin() { super("getPlugin"); } public getPlugin_args getEmptyArgsInstance() { return new getPlugin_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Plugin o) { getPlugin_result result = new getPlugin_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; getPlugin_result result = new getPlugin_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, getPlugin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.getPlugin(args.projectName, args.pluginName,resultHandler); } } public static class savePlugin extends org.apache.thrift.AsyncProcessFunction { public savePlugin() { super("savePlugin"); } public savePlugin_args getEmptyArgsInstance() { return new savePlugin_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { savePlugin_result result = new savePlugin_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; savePlugin_result result = new savePlugin_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, savePlugin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.savePlugin(args.projectName, args.plugin,resultHandler); } } public static class removePlugin extends org.apache.thrift.AsyncProcessFunction { public removePlugin() { super("removePlugin"); } public removePlugin_args getEmptyArgsInstance() { return new removePlugin_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { removePlugin_result result = new removePlugin_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; removePlugin_result result = new removePlugin_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, removePlugin_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.removePlugin(args.projectName, args.pluginName,resultHandler); } } public static class listPlugins extends org.apache.thrift.AsyncProcessFunction> { public listPlugins() { super("listPlugins"); } public listPlugins_args getEmptyArgsInstance() { return new listPlugins_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { listPlugins_result result = new listPlugins_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; listPlugins_result result = new listPlugins_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, listPlugins_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.listPlugins(args.projectName,resultHandler); } } public static class listPluginOperations extends org.apache.thrift.AsyncProcessFunction> { public listPluginOperations() { super("listPluginOperations"); } public listPluginOperations_args getEmptyArgsInstance() { return new listPluginOperations_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { listPluginOperations_result result = new listPluginOperations_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; listPluginOperations_result result = new listPluginOperations_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, listPluginOperations_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.listPluginOperations(args.projectName,resultHandler); } } public static class performPluginOperation extends org.apache.thrift.AsyncProcessFunction { public performPluginOperation() { super("performPluginOperation"); } public performPluginOperation_args getEmptyArgsInstance() { return new performPluginOperation_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { performPluginOperation_result result = new performPluginOperation_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; performPluginOperation_result result = new performPluginOperation_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, performPluginOperation_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.performPluginOperation(args.projectName, args.pluginName, args.operationName, args.params,resultHandler); } } public static class queryByNamedQuery extends org.apache.thrift.AsyncProcessFunction { public queryByNamedQuery() { super("queryByNamedQuery"); } public queryByNamedQuery_args getEmptyArgsInstance() { return new queryByNamedQuery_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { queryByNamedQuery_result result = new queryByNamedQuery_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; queryByNamedQuery_result result = new queryByNamedQuery_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, queryByNamedQuery_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.queryByNamedQuery(args.projectName, args.namedQuery, args.revision,resultHandler); } } public static class listSubscribers extends org.apache.thrift.AsyncProcessFunction> { public listSubscribers() { super("listSubscribers"); } public listSubscribers_args getEmptyArgsInstance() { return new listSubscribers_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { listSubscribers_result result = new listSubscribers_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; listSubscribers_result result = new listSubscribers_result(); if (e instanceof CentralDogmaException) { result.e = (CentralDogmaException) e; result.setEIsSet(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, listSubscribers_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { iface.listSubscribers(args.projectName, args.repositoryName, args.path,resultHandler); } } } public static class createProject_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createProject_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new createProject_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new createProject_argsTupleSchemeFactory()); } public String name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"); private static final Map byName = new HashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NAME return NAME; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createProject_args.class, metaDataMap); } public createProject_args() { } public createProject_args( String name) { this(); this.name = name; } /** * Performs a deep copy on other. */ public createProject_args(createProject_args other) { if (other.isSetName()) { this.name = other.name; } } public createProject_args deepCopy() { return new createProject_args(this); } @Override public void clear() { this.name = null; } public String getName() { return this.name; } public createProject_args setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NAME: return isSetName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof createProject_args) return this.equals((createProject_args)that); return false; } public boolean equals(createProject_args that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); return list.hashCode(); } @Override public int compareTo(createProject_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } 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("createProject_args("); boolean first = true; sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } 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 createProject_argsStandardSchemeFactory implements SchemeFactory { public createProject_argsStandardScheme getScheme() { return new createProject_argsStandardScheme(); } } private static class createProject_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, createProject_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, createProject_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class createProject_argsTupleSchemeFactory implements SchemeFactory { public createProject_argsTupleScheme getScheme() { return new createProject_argsTupleScheme(); } } private static class createProject_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, createProject_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetName()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetName()) { oprot.writeString(struct.name); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, createProject_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } } } } public static class createProject_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createProject_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new createProject_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new createProject_resultTupleSchemeFactory()); } public CentralDogmaException e; // 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 { E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(createProject_result.class, metaDataMap); } public createProject_result() { } public createProject_result( CentralDogmaException e) { this(); this.e = e; } /** * Performs a deep copy on other. */ public createProject_result(createProject_result other) { if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public createProject_result deepCopy() { return new createProject_result(this); } @Override public void clear() { this.e = null; } public CentralDogmaException getE() { return this.e; } public createProject_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof createProject_result) return this.equals((createProject_result)that); return false; } public boolean equals(createProject_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(createProject_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("createProject_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 createProject_resultStandardSchemeFactory implements SchemeFactory { public createProject_resultStandardScheme getScheme() { return new createProject_resultStandardScheme(); } } private static class createProject_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, createProject_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: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, createProject_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class createProject_resultTupleSchemeFactory implements SchemeFactory { public createProject_resultTupleScheme getScheme() { return new createProject_resultTupleScheme(); } } private static class createProject_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, createProject_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetE()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, createProject_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class removeProject_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeProject_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removeProject_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new removeProject_argsTupleSchemeFactory()); } public String name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"); private static final Map byName = new HashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NAME return NAME; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeProject_args.class, metaDataMap); } public removeProject_args() { } public removeProject_args( String name) { this(); this.name = name; } /** * Performs a deep copy on other. */ public removeProject_args(removeProject_args other) { if (other.isSetName()) { this.name = other.name; } } public removeProject_args deepCopy() { return new removeProject_args(this); } @Override public void clear() { this.name = null; } public String getName() { return this.name; } public removeProject_args setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NAME: return isSetName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof removeProject_args) return this.equals((removeProject_args)that); return false; } public boolean equals(removeProject_args that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); return list.hashCode(); } @Override public int compareTo(removeProject_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } 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("removeProject_args("); boolean first = true; sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } 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 removeProject_argsStandardSchemeFactory implements SchemeFactory { public removeProject_argsStandardScheme getScheme() { return new removeProject_argsStandardScheme(); } } private static class removeProject_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removeProject_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, removeProject_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removeProject_argsTupleSchemeFactory implements SchemeFactory { public removeProject_argsTupleScheme getScheme() { return new removeProject_argsTupleScheme(); } } private static class removeProject_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removeProject_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetName()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetName()) { oprot.writeString(struct.name); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeProject_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } } } } public static class removeProject_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeProject_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removeProject_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new removeProject_resultTupleSchemeFactory()); } public CentralDogmaException e; // 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 { E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(removeProject_result.class, metaDataMap); } public removeProject_result() { } public removeProject_result( CentralDogmaException e) { this(); this.e = e; } /** * Performs a deep copy on other. */ public removeProject_result(removeProject_result other) { if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public removeProject_result deepCopy() { return new removeProject_result(this); } @Override public void clear() { this.e = null; } public CentralDogmaException getE() { return this.e; } public removeProject_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof removeProject_result) return this.equals((removeProject_result)that); return false; } public boolean equals(removeProject_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(removeProject_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("removeProject_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 removeProject_resultStandardSchemeFactory implements SchemeFactory { public removeProject_resultStandardScheme getScheme() { return new removeProject_resultStandardScheme(); } } private static class removeProject_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removeProject_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: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, removeProject_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removeProject_resultTupleSchemeFactory implements SchemeFactory { public removeProject_resultTupleScheme getScheme() { return new removeProject_resultTupleScheme(); } } private static class removeProject_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removeProject_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetE()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeProject_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class purgeProject_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("purgeProject_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new purgeProject_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new purgeProject_argsTupleSchemeFactory()); } public String name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"); private static final Map byName = new HashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NAME return NAME; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(purgeProject_args.class, metaDataMap); } public purgeProject_args() { } public purgeProject_args( String name) { this(); this.name = name; } /** * Performs a deep copy on other. */ public purgeProject_args(purgeProject_args other) { if (other.isSetName()) { this.name = other.name; } } public purgeProject_args deepCopy() { return new purgeProject_args(this); } @Override public void clear() { this.name = null; } public String getName() { return this.name; } public purgeProject_args setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NAME: return isSetName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof purgeProject_args) return this.equals((purgeProject_args)that); return false; } public boolean equals(purgeProject_args that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); return list.hashCode(); } @Override public int compareTo(purgeProject_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } 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("purgeProject_args("); boolean first = true; sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } 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 purgeProject_argsStandardSchemeFactory implements SchemeFactory { public purgeProject_argsStandardScheme getScheme() { return new purgeProject_argsStandardScheme(); } } private static class purgeProject_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, purgeProject_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, purgeProject_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class purgeProject_argsTupleSchemeFactory implements SchemeFactory { public purgeProject_argsTupleScheme getScheme() { return new purgeProject_argsTupleScheme(); } } private static class purgeProject_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, purgeProject_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetName()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetName()) { oprot.writeString(struct.name); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, purgeProject_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } } } } public static class purgeProject_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("purgeProject_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new purgeProject_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new purgeProject_resultTupleSchemeFactory()); } public CentralDogmaException e; // 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 { E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(purgeProject_result.class, metaDataMap); } public purgeProject_result() { } public purgeProject_result( CentralDogmaException e) { this(); this.e = e; } /** * Performs a deep copy on other. */ public purgeProject_result(purgeProject_result other) { if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public purgeProject_result deepCopy() { return new purgeProject_result(this); } @Override public void clear() { this.e = null; } public CentralDogmaException getE() { return this.e; } public purgeProject_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof purgeProject_result) return this.equals((purgeProject_result)that); return false; } public boolean equals(purgeProject_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(purgeProject_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("purgeProject_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 purgeProject_resultStandardSchemeFactory implements SchemeFactory { public purgeProject_resultStandardScheme getScheme() { return new purgeProject_resultStandardScheme(); } } private static class purgeProject_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, purgeProject_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: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, purgeProject_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class purgeProject_resultTupleSchemeFactory implements SchemeFactory { public purgeProject_resultTupleScheme getScheme() { return new purgeProject_resultTupleScheme(); } } private static class purgeProject_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, purgeProject_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetE()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, purgeProject_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class unremoveProject_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unremoveProject_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new unremoveProject_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new unremoveProject_argsTupleSchemeFactory()); } public String name; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"); private static final Map byName = new HashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NAME return NAME; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unremoveProject_args.class, metaDataMap); } public unremoveProject_args() { } public unremoveProject_args( String name) { this(); this.name = name; } /** * Performs a deep copy on other. */ public unremoveProject_args(unremoveProject_args other) { if (other.isSetName()) { this.name = other.name; } } public unremoveProject_args deepCopy() { return new unremoveProject_args(this); } @Override public void clear() { this.name = null; } public String getName() { return this.name; } public unremoveProject_args setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NAME: return isSetName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof unremoveProject_args) return this.equals((unremoveProject_args)that); return false; } public boolean equals(unremoveProject_args that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); return list.hashCode(); } @Override public int compareTo(unremoveProject_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } 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("unremoveProject_args("); boolean first = true; sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } 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 unremoveProject_argsStandardSchemeFactory implements SchemeFactory { public unremoveProject_argsStandardScheme getScheme() { return new unremoveProject_argsStandardScheme(); } } private static class unremoveProject_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, unremoveProject_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, unremoveProject_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class unremoveProject_argsTupleSchemeFactory implements SchemeFactory { public unremoveProject_argsTupleScheme getScheme() { return new unremoveProject_argsTupleScheme(); } } private static class unremoveProject_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, unremoveProject_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetName()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetName()) { oprot.writeString(struct.name); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, unremoveProject_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } } } } public static class unremoveProject_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unremoveProject_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new unremoveProject_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new unremoveProject_resultTupleSchemeFactory()); } public CentralDogmaException e; // 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 { E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(unremoveProject_result.class, metaDataMap); } public unremoveProject_result() { } public unremoveProject_result( CentralDogmaException e) { this(); this.e = e; } /** * Performs a deep copy on other. */ public unremoveProject_result(unremoveProject_result other) { if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public unremoveProject_result deepCopy() { return new unremoveProject_result(this); } @Override public void clear() { this.e = null; } public CentralDogmaException getE() { return this.e; } public unremoveProject_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof unremoveProject_result) return this.equals((unremoveProject_result)that); return false; } public boolean equals(unremoveProject_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(unremoveProject_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("unremoveProject_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 unremoveProject_resultStandardSchemeFactory implements SchemeFactory { public unremoveProject_resultStandardScheme getScheme() { return new unremoveProject_resultStandardScheme(); } } private static class unremoveProject_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, unremoveProject_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: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, unremoveProject_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class unremoveProject_resultTupleSchemeFactory implements SchemeFactory { public unremoveProject_resultTupleScheme getScheme() { return new unremoveProject_resultTupleScheme(); } } private static class unremoveProject_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, unremoveProject_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetE()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, unremoveProject_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class listProjects_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listProjects_args"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listProjects_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new listProjects_argsTupleSchemeFactory()); } /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map byName = new HashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listProjects_args.class, metaDataMap); } public listProjects_args() { } /** * Performs a deep copy on other. */ public listProjects_args(listProjects_args other) { } public listProjects_args deepCopy() { return new listProjects_args(this); } @Override public void clear() { } public void setFieldValue(_Fields field, Object value) { switch (field) { } } public Object getFieldValue(_Fields field) { switch (field) { } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listProjects_args) return this.equals((listProjects_args)that); return false; } public boolean equals(listProjects_args that) { if (that == null) return false; return true; } @Override public int hashCode() { List list = new ArrayList(); return list.hashCode(); } @Override public int compareTo(listProjects_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("listProjects_args("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class listProjects_argsStandardSchemeFactory implements SchemeFactory { public listProjects_argsStandardScheme getScheme() { return new listProjects_argsStandardScheme(); } } private static class listProjects_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listProjects_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) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listProjects_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listProjects_argsTupleSchemeFactory implements SchemeFactory { public listProjects_argsTupleScheme getScheme() { return new listProjects_argsTupleScheme(); } } private static class listProjects_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listProjects_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listProjects_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class listProjects_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listProjects_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listProjects_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new listProjects_resultTupleSchemeFactory()); } public List success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Project.class)))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(listProjects_result.class, metaDataMap); } public listProjects_result() { } public listProjects_result( List success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public listProjects_result(listProjects_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Project other_element : other.success) { __this__success.add(new Project(other_element)); } this.success = __this__success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public listProjects_result deepCopy() { return new listProjects_result(this); } @Override public void clear() { this.success = null; this.e = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(Project elem) { if (this.success == null) { this.success = new ArrayList(); } this.success.add(elem); } public List getSuccess() { return this.success; } public listProjects_result setSuccess(List success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public listProjects_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listProjects_result) return this.equals((listProjects_result)that); return false; } public boolean equals(listProjects_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(listProjects_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("listProjects_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 listProjects_resultStandardSchemeFactory implements SchemeFactory { public listProjects_resultStandardScheme getScheme() { return new listProjects_resultStandardScheme(); } } private static class listProjects_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listProjects_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.LIST) { { org.apache.thrift.protocol.TList _list72 = iprot.readListBegin(); struct.success = new ArrayList(_list72.size); Project _elem73; for (int _i74 = 0; _i74 < _list72.size; ++_i74) { _elem73 = new Project(); _elem73.read(iprot); struct.success.add(_elem73); } iprot.readListEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listProjects_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Project _iter75 : struct.success) { _iter75.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listProjects_resultTupleSchemeFactory implements SchemeFactory { public listProjects_resultTupleScheme getScheme() { return new listProjects_resultTupleScheme(); } } private static class listProjects_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listProjects_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Project _iter76 : struct.success) { _iter76.write(oprot); } } } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listProjects_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list77 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list77.size); Project _elem78; for (int _i79 = 0; _i79 < _list77.size; ++_i79) { _elem78 = new Project(); _elem78.read(iprot); struct.success.add(_elem78); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class listRemovedProjects_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRemovedProjects_args"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listRemovedProjects_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new listRemovedProjects_argsTupleSchemeFactory()); } /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ; private static final Map byName = new HashMap(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listRemovedProjects_args.class, metaDataMap); } public listRemovedProjects_args() { } /** * Performs a deep copy on other. */ public listRemovedProjects_args(listRemovedProjects_args other) { } public listRemovedProjects_args deepCopy() { return new listRemovedProjects_args(this); } @Override public void clear() { } public void setFieldValue(_Fields field, Object value) { switch (field) { } } public Object getFieldValue(_Fields field) { switch (field) { } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listRemovedProjects_args) return this.equals((listRemovedProjects_args)that); return false; } public boolean equals(listRemovedProjects_args that) { if (that == null) return false; return true; } @Override public int hashCode() { List list = new ArrayList(); return list.hashCode(); } @Override public int compareTo(listRemovedProjects_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } @Override public String toString() { StringBuilder sb = new StringBuilder("listRemovedProjects_args("); boolean first = true; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class listRemovedProjects_argsStandardSchemeFactory implements SchemeFactory { public listRemovedProjects_argsStandardScheme getScheme() { return new listRemovedProjects_argsStandardScheme(); } } private static class listRemovedProjects_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listRemovedProjects_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) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listRemovedProjects_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listRemovedProjects_argsTupleSchemeFactory implements SchemeFactory { public listRemovedProjects_argsTupleScheme getScheme() { return new listRemovedProjects_argsTupleScheme(); } } private static class listRemovedProjects_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listRemovedProjects_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listRemovedProjects_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } public static class listRemovedProjects_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRemovedProjects_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.SET, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listRemovedProjects_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new listRemovedProjects_resultTupleSchemeFactory()); } public Set success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(listRemovedProjects_result.class, metaDataMap); } public listRemovedProjects_result() { } public listRemovedProjects_result( Set success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public listRemovedProjects_result(listRemovedProjects_result other) { if (other.isSetSuccess()) { Set __this__success = new HashSet(other.success); this.success = __this__success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public listRemovedProjects_result deepCopy() { return new listRemovedProjects_result(this); } @Override public void clear() { this.success = null; this.e = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(String elem) { if (this.success == null) { this.success = new HashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public listRemovedProjects_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public listRemovedProjects_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listRemovedProjects_result) return this.equals((listRemovedProjects_result)that); return false; } public boolean equals(listRemovedProjects_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(listRemovedProjects_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("listRemovedProjects_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 listRemovedProjects_resultStandardSchemeFactory implements SchemeFactory { public listRemovedProjects_resultStandardScheme getScheme() { return new listRemovedProjects_resultStandardScheme(); } } private static class listRemovedProjects_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listRemovedProjects_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.SET) { { org.apache.thrift.protocol.TSet _set80 = iprot.readSetBegin(); struct.success = new HashSet(2*_set80.size); String _elem81; for (int _i82 = 0; _i82 < _set80.size; ++_i82) { _elem81 = iprot.readString(); struct.success.add(_elem81); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listRemovedProjects_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (String _iter83 : struct.success) { oprot.writeString(_iter83); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listRemovedProjects_resultTupleSchemeFactory implements SchemeFactory { public listRemovedProjects_resultTupleScheme getScheme() { return new listRemovedProjects_resultTupleScheme(); } } private static class listRemovedProjects_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listRemovedProjects_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (String _iter84 : struct.success) { oprot.writeString(_iter84); } } } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listRemovedProjects_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set85 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new HashSet(2*_set85.size); String _elem86; for (int _i87 = 0; _i87 < _set85.size; ++_i87) { _elem86 = iprot.readString(); struct.success.add(_elem86); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class createRepository_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRepository_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new createRepository_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new createRepository_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", 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(createRepository_args.class, metaDataMap); } public createRepository_args() { } public createRepository_args( String projectName, String repositoryName) { this(); this.projectName = projectName; this.repositoryName = repositoryName; } /** * Performs a deep copy on other. */ public createRepository_args(createRepository_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } } public createRepository_args deepCopy() { return new createRepository_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; } public String getProjectName() { return this.projectName; } public createRepository_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public createRepository_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof createRepository_args) return this.equals((createRepository_args)that); return false; } public boolean equals(createRepository_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); return list.hashCode(); } @Override public int compareTo(createRepository_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); 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("createRepository_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } 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 createRepository_argsStandardSchemeFactory implements SchemeFactory { public createRepository_argsStandardScheme getScheme() { return new createRepository_argsStandardScheme(); } } private static class createRepository_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, createRepository_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, createRepository_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class createRepository_argsTupleSchemeFactory implements SchemeFactory { public createRepository_argsTupleScheme getScheme() { return new createRepository_argsTupleScheme(); } } private static class createRepository_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, createRepository_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, createRepository_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } } } } public static class createRepository_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRepository_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new createRepository_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new createRepository_resultTupleSchemeFactory()); } public CentralDogmaException e; // 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 { E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(createRepository_result.class, metaDataMap); } public createRepository_result() { } public createRepository_result( CentralDogmaException e) { this(); this.e = e; } /** * Performs a deep copy on other. */ public createRepository_result(createRepository_result other) { if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public createRepository_result deepCopy() { return new createRepository_result(this); } @Override public void clear() { this.e = null; } public CentralDogmaException getE() { return this.e; } public createRepository_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof createRepository_result) return this.equals((createRepository_result)that); return false; } public boolean equals(createRepository_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(createRepository_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("createRepository_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 createRepository_resultStandardSchemeFactory implements SchemeFactory { public createRepository_resultStandardScheme getScheme() { return new createRepository_resultStandardScheme(); } } private static class createRepository_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, createRepository_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: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, createRepository_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class createRepository_resultTupleSchemeFactory implements SchemeFactory { public createRepository_resultTupleScheme getScheme() { return new createRepository_resultTupleScheme(); } } private static class createRepository_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, createRepository_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetE()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, createRepository_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class removeRepository_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeRepository_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removeRepository_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new removeRepository_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", 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(removeRepository_args.class, metaDataMap); } public removeRepository_args() { } public removeRepository_args( String projectName, String repositoryName) { this(); this.projectName = projectName; this.repositoryName = repositoryName; } /** * Performs a deep copy on other. */ public removeRepository_args(removeRepository_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } } public removeRepository_args deepCopy() { return new removeRepository_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; } public String getProjectName() { return this.projectName; } public removeRepository_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public removeRepository_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof removeRepository_args) return this.equals((removeRepository_args)that); return false; } public boolean equals(removeRepository_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); return list.hashCode(); } @Override public int compareTo(removeRepository_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); 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("removeRepository_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } 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 removeRepository_argsStandardSchemeFactory implements SchemeFactory { public removeRepository_argsStandardScheme getScheme() { return new removeRepository_argsStandardScheme(); } } private static class removeRepository_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removeRepository_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, removeRepository_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removeRepository_argsTupleSchemeFactory implements SchemeFactory { public removeRepository_argsTupleScheme getScheme() { return new removeRepository_argsTupleScheme(); } } private static class removeRepository_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removeRepository_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeRepository_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } } } } public static class removeRepository_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeRepository_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removeRepository_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new removeRepository_resultTupleSchemeFactory()); } public CentralDogmaException e; // 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 { E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(removeRepository_result.class, metaDataMap); } public removeRepository_result() { } public removeRepository_result( CentralDogmaException e) { this(); this.e = e; } /** * Performs a deep copy on other. */ public removeRepository_result(removeRepository_result other) { if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public removeRepository_result deepCopy() { return new removeRepository_result(this); } @Override public void clear() { this.e = null; } public CentralDogmaException getE() { return this.e; } public removeRepository_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof removeRepository_result) return this.equals((removeRepository_result)that); return false; } public boolean equals(removeRepository_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(removeRepository_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("removeRepository_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 removeRepository_resultStandardSchemeFactory implements SchemeFactory { public removeRepository_resultStandardScheme getScheme() { return new removeRepository_resultStandardScheme(); } } private static class removeRepository_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removeRepository_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: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, removeRepository_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removeRepository_resultTupleSchemeFactory implements SchemeFactory { public removeRepository_resultTupleScheme getScheme() { return new removeRepository_resultTupleScheme(); } } private static class removeRepository_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removeRepository_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetE()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeRepository_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class purgeRepository_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("purgeRepository_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new purgeRepository_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new purgeRepository_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", 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(purgeRepository_args.class, metaDataMap); } public purgeRepository_args() { } public purgeRepository_args( String projectName, String repositoryName) { this(); this.projectName = projectName; this.repositoryName = repositoryName; } /** * Performs a deep copy on other. */ public purgeRepository_args(purgeRepository_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } } public purgeRepository_args deepCopy() { return new purgeRepository_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; } public String getProjectName() { return this.projectName; } public purgeRepository_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public purgeRepository_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof purgeRepository_args) return this.equals((purgeRepository_args)that); return false; } public boolean equals(purgeRepository_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); return list.hashCode(); } @Override public int compareTo(purgeRepository_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); 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("purgeRepository_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } 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 purgeRepository_argsStandardSchemeFactory implements SchemeFactory { public purgeRepository_argsStandardScheme getScheme() { return new purgeRepository_argsStandardScheme(); } } private static class purgeRepository_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, purgeRepository_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, purgeRepository_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class purgeRepository_argsTupleSchemeFactory implements SchemeFactory { public purgeRepository_argsTupleScheme getScheme() { return new purgeRepository_argsTupleScheme(); } } private static class purgeRepository_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, purgeRepository_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, purgeRepository_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } } } } public static class purgeRepository_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("purgeRepository_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new purgeRepository_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new purgeRepository_resultTupleSchemeFactory()); } public CentralDogmaException e; // 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 { E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(purgeRepository_result.class, metaDataMap); } public purgeRepository_result() { } public purgeRepository_result( CentralDogmaException e) { this(); this.e = e; } /** * Performs a deep copy on other. */ public purgeRepository_result(purgeRepository_result other) { if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public purgeRepository_result deepCopy() { return new purgeRepository_result(this); } @Override public void clear() { this.e = null; } public CentralDogmaException getE() { return this.e; } public purgeRepository_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof purgeRepository_result) return this.equals((purgeRepository_result)that); return false; } public boolean equals(purgeRepository_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(purgeRepository_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("purgeRepository_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 purgeRepository_resultStandardSchemeFactory implements SchemeFactory { public purgeRepository_resultStandardScheme getScheme() { return new purgeRepository_resultStandardScheme(); } } private static class purgeRepository_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, purgeRepository_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: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, purgeRepository_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class purgeRepository_resultTupleSchemeFactory implements SchemeFactory { public purgeRepository_resultTupleScheme getScheme() { return new purgeRepository_resultTupleScheme(); } } private static class purgeRepository_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, purgeRepository_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetE()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, purgeRepository_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class unremoveRepository_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unremoveRepository_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new unremoveRepository_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new unremoveRepository_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", 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(unremoveRepository_args.class, metaDataMap); } public unremoveRepository_args() { } public unremoveRepository_args( String projectName, String repositoryName) { this(); this.projectName = projectName; this.repositoryName = repositoryName; } /** * Performs a deep copy on other. */ public unremoveRepository_args(unremoveRepository_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } } public unremoveRepository_args deepCopy() { return new unremoveRepository_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; } public String getProjectName() { return this.projectName; } public unremoveRepository_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public unremoveRepository_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof unremoveRepository_args) return this.equals((unremoveRepository_args)that); return false; } public boolean equals(unremoveRepository_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); return list.hashCode(); } @Override public int compareTo(unremoveRepository_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); 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("unremoveRepository_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } 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 unremoveRepository_argsStandardSchemeFactory implements SchemeFactory { public unremoveRepository_argsStandardScheme getScheme() { return new unremoveRepository_argsStandardScheme(); } } private static class unremoveRepository_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, unremoveRepository_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, unremoveRepository_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class unremoveRepository_argsTupleSchemeFactory implements SchemeFactory { public unremoveRepository_argsTupleScheme getScheme() { return new unremoveRepository_argsTupleScheme(); } } private static class unremoveRepository_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, unremoveRepository_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, unremoveRepository_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } } } } public static class unremoveRepository_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unremoveRepository_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new unremoveRepository_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new unremoveRepository_resultTupleSchemeFactory()); } public CentralDogmaException e; // 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 { E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(unremoveRepository_result.class, metaDataMap); } public unremoveRepository_result() { } public unremoveRepository_result( CentralDogmaException e) { this(); this.e = e; } /** * Performs a deep copy on other. */ public unremoveRepository_result(unremoveRepository_result other) { if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public unremoveRepository_result deepCopy() { return new unremoveRepository_result(this); } @Override public void clear() { this.e = null; } public CentralDogmaException getE() { return this.e; } public unremoveRepository_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof unremoveRepository_result) return this.equals((unremoveRepository_result)that); return false; } public boolean equals(unremoveRepository_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(unremoveRepository_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("unremoveRepository_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 unremoveRepository_resultStandardSchemeFactory implements SchemeFactory { public unremoveRepository_resultStandardScheme getScheme() { return new unremoveRepository_resultStandardScheme(); } } private static class unremoveRepository_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, unremoveRepository_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: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, unremoveRepository_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class unremoveRepository_resultTupleSchemeFactory implements SchemeFactory { public unremoveRepository_resultTupleScheme getScheme() { return new unremoveRepository_resultTupleScheme(); } } private static class unremoveRepository_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, unremoveRepository_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetE()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, unremoveRepository_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class listRepositories_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRepositories_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listRepositories_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new listRepositories_argsTupleSchemeFactory()); } public String projectName; // 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 { PROJECT_NAME((short)1, "projectName"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", 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(listRepositories_args.class, metaDataMap); } public listRepositories_args() { } public listRepositories_args( String projectName) { this(); this.projectName = projectName; } /** * Performs a deep copy on other. */ public listRepositories_args(listRepositories_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } } public listRepositories_args deepCopy() { return new listRepositories_args(this); } @Override public void clear() { this.projectName = null; } public String getProjectName() { return this.projectName; } public listRepositories_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); } 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 PROJECT_NAME: return isSetProjectName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listRepositories_args) return this.equals((listRepositories_args)that); return false; } public boolean equals(listRepositories_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); return list.hashCode(); } @Override public int compareTo(listRepositories_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); 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("listRepositories_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } 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 listRepositories_argsStandardSchemeFactory implements SchemeFactory { public listRepositories_argsStandardScheme getScheme() { return new listRepositories_argsStandardScheme(); } } private static class listRepositories_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listRepositories_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listRepositories_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listRepositories_argsTupleSchemeFactory implements SchemeFactory { public listRepositories_argsTupleScheme getScheme() { return new listRepositories_argsTupleScheme(); } } private static class listRepositories_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listRepositories_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listRepositories_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } } } } public static class listRepositories_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRepositories_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listRepositories_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new listRepositories_resultTupleSchemeFactory()); } public List success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Repository.class)))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(listRepositories_result.class, metaDataMap); } public listRepositories_result() { } public listRepositories_result( List success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public listRepositories_result(listRepositories_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Repository other_element : other.success) { __this__success.add(new Repository(other_element)); } this.success = __this__success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public listRepositories_result deepCopy() { return new listRepositories_result(this); } @Override public void clear() { this.success = null; this.e = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(Repository elem) { if (this.success == null) { this.success = new ArrayList(); } this.success.add(elem); } public List getSuccess() { return this.success; } public listRepositories_result setSuccess(List success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public listRepositories_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listRepositories_result) return this.equals((listRepositories_result)that); return false; } public boolean equals(listRepositories_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(listRepositories_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("listRepositories_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 listRepositories_resultStandardSchemeFactory implements SchemeFactory { public listRepositories_resultStandardScheme getScheme() { return new listRepositories_resultStandardScheme(); } } private static class listRepositories_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listRepositories_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.LIST) { { org.apache.thrift.protocol.TList _list88 = iprot.readListBegin(); struct.success = new ArrayList(_list88.size); Repository _elem89; for (int _i90 = 0; _i90 < _list88.size; ++_i90) { _elem89 = new Repository(); _elem89.read(iprot); struct.success.add(_elem89); } iprot.readListEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listRepositories_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Repository _iter91 : struct.success) { _iter91.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listRepositories_resultTupleSchemeFactory implements SchemeFactory { public listRepositories_resultTupleScheme getScheme() { return new listRepositories_resultTupleScheme(); } } private static class listRepositories_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listRepositories_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Repository _iter92 : struct.success) { _iter92.write(oprot); } } } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listRepositories_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list93 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list93.size); Repository _elem94; for (int _i95 = 0; _i95 < _list93.size; ++_i95) { _elem94 = new Repository(); _elem94.read(iprot); struct.success.add(_elem94); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class listRemovedRepositories_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRemovedRepositories_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listRemovedRepositories_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new listRemovedRepositories_argsTupleSchemeFactory()); } public String projectName; // 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 { PROJECT_NAME((short)1, "projectName"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", 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(listRemovedRepositories_args.class, metaDataMap); } public listRemovedRepositories_args() { } public listRemovedRepositories_args( String projectName) { this(); this.projectName = projectName; } /** * Performs a deep copy on other. */ public listRemovedRepositories_args(listRemovedRepositories_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } } public listRemovedRepositories_args deepCopy() { return new listRemovedRepositories_args(this); } @Override public void clear() { this.projectName = null; } public String getProjectName() { return this.projectName; } public listRemovedRepositories_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); } 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 PROJECT_NAME: return isSetProjectName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listRemovedRepositories_args) return this.equals((listRemovedRepositories_args)that); return false; } public boolean equals(listRemovedRepositories_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); return list.hashCode(); } @Override public int compareTo(listRemovedRepositories_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); 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("listRemovedRepositories_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } 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 listRemovedRepositories_argsStandardSchemeFactory implements SchemeFactory { public listRemovedRepositories_argsStandardScheme getScheme() { return new listRemovedRepositories_argsStandardScheme(); } } private static class listRemovedRepositories_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listRemovedRepositories_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listRemovedRepositories_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listRemovedRepositories_argsTupleSchemeFactory implements SchemeFactory { public listRemovedRepositories_argsTupleScheme getScheme() { return new listRemovedRepositories_argsTupleScheme(); } } private static class listRemovedRepositories_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listRemovedRepositories_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listRemovedRepositories_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } } } } public static class listRemovedRepositories_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listRemovedRepositories_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.SET, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listRemovedRepositories_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new listRemovedRepositories_resultTupleSchemeFactory()); } public Set success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(listRemovedRepositories_result.class, metaDataMap); } public listRemovedRepositories_result() { } public listRemovedRepositories_result( Set success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public listRemovedRepositories_result(listRemovedRepositories_result other) { if (other.isSetSuccess()) { Set __this__success = new HashSet(other.success); this.success = __this__success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public listRemovedRepositories_result deepCopy() { return new listRemovedRepositories_result(this); } @Override public void clear() { this.success = null; this.e = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(String elem) { if (this.success == null) { this.success = new HashSet(); } this.success.add(elem); } public Set getSuccess() { return this.success; } public listRemovedRepositories_result setSuccess(Set success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public listRemovedRepositories_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Set)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listRemovedRepositories_result) return this.equals((listRemovedRepositories_result)that); return false; } public boolean equals(listRemovedRepositories_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(listRemovedRepositories_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("listRemovedRepositories_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 listRemovedRepositories_resultStandardSchemeFactory implements SchemeFactory { public listRemovedRepositories_resultStandardScheme getScheme() { return new listRemovedRepositories_resultStandardScheme(); } } private static class listRemovedRepositories_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listRemovedRepositories_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.SET) { { org.apache.thrift.protocol.TSet _set96 = iprot.readSetBegin(); struct.success = new HashSet(2*_set96.size); String _elem97; for (int _i98 = 0; _i98 < _set96.size; ++_i98) { _elem97 = iprot.readString(); struct.success.add(_elem97); } iprot.readSetEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listRemovedRepositories_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, struct.success.size())); for (String _iter99 : struct.success) { oprot.writeString(_iter99); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listRemovedRepositories_resultTupleSchemeFactory implements SchemeFactory { public listRemovedRepositories_resultTupleScheme getScheme() { return new listRemovedRepositories_resultTupleScheme(); } } private static class listRemovedRepositories_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listRemovedRepositories_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (String _iter100 : struct.success) { oprot.writeString(_iter100); } } } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listRemovedRepositories_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TSet _set101 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new HashSet(2*_set101.size); String _elem102; for (int _i103 = 0; _i103 < _set101.size; ++_i103) { _elem102 = iprot.readString(); struct.success.add(_elem102); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class normalizeRevision_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("normalizeRevision_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new normalizeRevision_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new normalizeRevision_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // required public Revision revision; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"), REVISION((short)3, "revision"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_NAME; case 3: // REVISION return REVISION; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(normalizeRevision_args.class, metaDataMap); } public normalizeRevision_args() { } public normalizeRevision_args( String projectName, String repositoryName, Revision revision) { this(); this.projectName = projectName; this.repositoryName = repositoryName; this.revision = revision; } /** * Performs a deep copy on other. */ public normalizeRevision_args(normalizeRevision_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetRevision()) { this.revision = new Revision(other.revision); } } public normalizeRevision_args deepCopy() { return new normalizeRevision_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; this.revision = null; } public String getProjectName() { return this.projectName; } public normalizeRevision_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public normalizeRevision_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public Revision getRevision() { return this.revision; } public normalizeRevision_args setRevision(Revision revision) { this.revision = revision; return this; } public void unsetRevision() { this.revision = null; } /** Returns true if field revision is set (has been assigned a value) and false otherwise */ public boolean isSetRevision() { return this.revision != null; } public void setRevisionIsSet(boolean value) { if (!value) { this.revision = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; case REVISION: if (value == null) { unsetRevision(); } else { setRevision((Revision)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); case REVISION: return getRevision(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); case REVISION: return isSetRevision(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof normalizeRevision_args) return this.equals((normalizeRevision_args)that); return false; } public boolean equals(normalizeRevision_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } boolean this_present_revision = true && this.isSetRevision(); boolean that_present_revision = true && that.isSetRevision(); if (this_present_revision || that_present_revision) { if (!(this_present_revision && that_present_revision)) return false; if (!this.revision.equals(that.revision)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); boolean present_revision = true && (isSetRevision()); list.add(present_revision); if (present_revision) list.add(revision); return list.hashCode(); } @Override public int compareTo(normalizeRevision_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision); 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("normalizeRevision_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } first = false; if (!first) sb.append(", "); sb.append("revision:"); if (this.revision == null) { sb.append("null"); } else { sb.append(this.revision); } 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 (revision != null) { revision.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 normalizeRevision_argsStandardSchemeFactory implements SchemeFactory { public normalizeRevision_argsStandardScheme getScheme() { return new normalizeRevision_argsStandardScheme(); } } private static class normalizeRevision_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, normalizeRevision_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, normalizeRevision_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } if (struct.revision != null) { oprot.writeFieldBegin(REVISION_FIELD_DESC); struct.revision.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class normalizeRevision_argsTupleSchemeFactory implements SchemeFactory { public normalizeRevision_argsTupleScheme getScheme() { return new normalizeRevision_argsTupleScheme(); } } private static class normalizeRevision_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, normalizeRevision_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } if (struct.isSetRevision()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } if (struct.isSetRevision()) { struct.revision.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, normalizeRevision_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } if (incoming.get(2)) { struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); } } } } public static class normalizeRevision_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("normalizeRevision_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 E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new normalizeRevision_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new normalizeRevision_resultTupleSchemeFactory()); } public Revision success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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, Revision.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(normalizeRevision_result.class, metaDataMap); } public normalizeRevision_result() { } public normalizeRevision_result( Revision success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public normalizeRevision_result(normalizeRevision_result other) { if (other.isSetSuccess()) { this.success = new Revision(other.success); } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public normalizeRevision_result deepCopy() { return new normalizeRevision_result(this); } @Override public void clear() { this.success = null; this.e = null; } public Revision getSuccess() { return this.success; } public normalizeRevision_result setSuccess(Revision success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public normalizeRevision_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Revision)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof normalizeRevision_result) return this.equals((normalizeRevision_result)that); return false; } public boolean equals(normalizeRevision_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(normalizeRevision_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("normalizeRevision_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 normalizeRevision_resultStandardSchemeFactory implements SchemeFactory { public normalizeRevision_resultStandardScheme getScheme() { return new normalizeRevision_resultStandardScheme(); } } private static class normalizeRevision_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, normalizeRevision_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 Revision(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, normalizeRevision_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.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class normalizeRevision_resultTupleSchemeFactory implements SchemeFactory { public normalizeRevision_resultTupleScheme getScheme() { return new normalizeRevision_resultTupleScheme(); } } private static class normalizeRevision_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, normalizeRevision_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, normalizeRevision_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new Revision(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class listFiles_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listFiles_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listFiles_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new listFiles_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // required public Revision revision; // required public String pathPattern; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"), REVISION((short)3, "revision"), PATH_PATTERN((short)4, "pathPattern"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_NAME; case 3: // REVISION return REVISION; case 4: // PATH_PATTERN return PATH_PATTERN; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", 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(listFiles_args.class, metaDataMap); } public listFiles_args() { } public listFiles_args( String projectName, String repositoryName, Revision revision, String pathPattern) { this(); this.projectName = projectName; this.repositoryName = repositoryName; this.revision = revision; this.pathPattern = pathPattern; } /** * Performs a deep copy on other. */ public listFiles_args(listFiles_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetRevision()) { this.revision = new Revision(other.revision); } if (other.isSetPathPattern()) { this.pathPattern = other.pathPattern; } } public listFiles_args deepCopy() { return new listFiles_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; this.revision = null; this.pathPattern = null; } public String getProjectName() { return this.projectName; } public listFiles_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public listFiles_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public Revision getRevision() { return this.revision; } public listFiles_args setRevision(Revision revision) { this.revision = revision; return this; } public void unsetRevision() { this.revision = null; } /** Returns true if field revision is set (has been assigned a value) and false otherwise */ public boolean isSetRevision() { return this.revision != null; } public void setRevisionIsSet(boolean value) { if (!value) { this.revision = null; } } public String getPathPattern() { return this.pathPattern; } public listFiles_args setPathPattern(String pathPattern) { this.pathPattern = pathPattern; return this; } public void unsetPathPattern() { this.pathPattern = null; } /** Returns true if field pathPattern is set (has been assigned a value) and false otherwise */ public boolean isSetPathPattern() { return this.pathPattern != null; } public void setPathPatternIsSet(boolean value) { if (!value) { this.pathPattern = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; case REVISION: if (value == null) { unsetRevision(); } else { setRevision((Revision)value); } break; case PATH_PATTERN: if (value == null) { unsetPathPattern(); } else { setPathPattern((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); case REVISION: return getRevision(); case PATH_PATTERN: return getPathPattern(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); case REVISION: return isSetRevision(); case PATH_PATTERN: return isSetPathPattern(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listFiles_args) return this.equals((listFiles_args)that); return false; } public boolean equals(listFiles_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } boolean this_present_revision = true && this.isSetRevision(); boolean that_present_revision = true && that.isSetRevision(); if (this_present_revision || that_present_revision) { if (!(this_present_revision && that_present_revision)) return false; if (!this.revision.equals(that.revision)) return false; } boolean this_present_pathPattern = true && this.isSetPathPattern(); boolean that_present_pathPattern = true && that.isSetPathPattern(); if (this_present_pathPattern || that_present_pathPattern) { if (!(this_present_pathPattern && that_present_pathPattern)) return false; if (!this.pathPattern.equals(that.pathPattern)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); boolean present_revision = true && (isSetRevision()); list.add(present_revision); if (present_revision) list.add(revision); boolean present_pathPattern = true && (isSetPathPattern()); list.add(present_pathPattern); if (present_pathPattern) list.add(pathPattern); return list.hashCode(); } @Override public int compareTo(listFiles_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern()); if (lastComparison != 0) { return lastComparison; } if (isSetPathPattern()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern); 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("listFiles_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } first = false; if (!first) sb.append(", "); sb.append("revision:"); if (this.revision == null) { sb.append("null"); } else { sb.append(this.revision); } first = false; if (!first) sb.append(", "); sb.append("pathPattern:"); if (this.pathPattern == null) { sb.append("null"); } else { sb.append(this.pathPattern); } 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 (revision != null) { revision.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 listFiles_argsStandardSchemeFactory implements SchemeFactory { public listFiles_argsStandardScheme getScheme() { return new listFiles_argsStandardScheme(); } } private static class listFiles_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listFiles_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // PATH_PATTERN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.pathPattern = iprot.readString(); struct.setPathPatternIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listFiles_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } if (struct.revision != null) { oprot.writeFieldBegin(REVISION_FIELD_DESC); struct.revision.write(oprot); oprot.writeFieldEnd(); } if (struct.pathPattern != null) { oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC); oprot.writeString(struct.pathPattern); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listFiles_argsTupleSchemeFactory implements SchemeFactory { public listFiles_argsTupleScheme getScheme() { return new listFiles_argsTupleScheme(); } } private static class listFiles_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listFiles_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } if (struct.isSetRevision()) { optionals.set(2); } if (struct.isSetPathPattern()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } if (struct.isSetRevision()) { struct.revision.write(oprot); } if (struct.isSetPathPattern()) { oprot.writeString(struct.pathPattern); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listFiles_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } if (incoming.get(2)) { struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); } if (incoming.get(3)) { struct.pathPattern = iprot.readString(); struct.setPathPatternIsSet(true); } } } } public static class listFiles_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listFiles_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listFiles_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new listFiles_resultTupleSchemeFactory()); } public List success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Entry.class)))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(listFiles_result.class, metaDataMap); } public listFiles_result() { } public listFiles_result( List success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public listFiles_result(listFiles_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Entry other_element : other.success) { __this__success.add(new Entry(other_element)); } this.success = __this__success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public listFiles_result deepCopy() { return new listFiles_result(this); } @Override public void clear() { this.success = null; this.e = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(Entry elem) { if (this.success == null) { this.success = new ArrayList(); } this.success.add(elem); } public List getSuccess() { return this.success; } public listFiles_result setSuccess(List success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public listFiles_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listFiles_result) return this.equals((listFiles_result)that); return false; } public boolean equals(listFiles_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(listFiles_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("listFiles_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 listFiles_resultStandardSchemeFactory implements SchemeFactory { public listFiles_resultStandardScheme getScheme() { return new listFiles_resultStandardScheme(); } } private static class listFiles_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listFiles_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.LIST) { { org.apache.thrift.protocol.TList _list104 = iprot.readListBegin(); struct.success = new ArrayList(_list104.size); Entry _elem105; for (int _i106 = 0; _i106 < _list104.size; ++_i106) { _elem105 = new Entry(); _elem105.read(iprot); struct.success.add(_elem105); } iprot.readListEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listFiles_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Entry _iter107 : struct.success) { _iter107.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listFiles_resultTupleSchemeFactory implements SchemeFactory { public listFiles_resultTupleScheme getScheme() { return new listFiles_resultTupleScheme(); } } private static class listFiles_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listFiles_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Entry _iter108 : struct.success) { _iter108.write(oprot); } } } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listFiles_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list109 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list109.size); Entry _elem110; for (int _i111 = 0; _i111 < _list109.size; ++_i111) { _elem110 = new Entry(); _elem110.read(iprot); struct.success.add(_elem110); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class getFiles_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFiles_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getFiles_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getFiles_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // required public Revision revision; // required public String pathPattern; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"), REVISION((short)3, "revision"), PATH_PATTERN((short)4, "pathPattern"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_NAME; case 3: // REVISION return REVISION; case 4: // PATH_PATTERN return PATH_PATTERN; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", 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(getFiles_args.class, metaDataMap); } public getFiles_args() { } public getFiles_args( String projectName, String repositoryName, Revision revision, String pathPattern) { this(); this.projectName = projectName; this.repositoryName = repositoryName; this.revision = revision; this.pathPattern = pathPattern; } /** * Performs a deep copy on other. */ public getFiles_args(getFiles_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetRevision()) { this.revision = new Revision(other.revision); } if (other.isSetPathPattern()) { this.pathPattern = other.pathPattern; } } public getFiles_args deepCopy() { return new getFiles_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; this.revision = null; this.pathPattern = null; } public String getProjectName() { return this.projectName; } public getFiles_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public getFiles_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public Revision getRevision() { return this.revision; } public getFiles_args setRevision(Revision revision) { this.revision = revision; return this; } public void unsetRevision() { this.revision = null; } /** Returns true if field revision is set (has been assigned a value) and false otherwise */ public boolean isSetRevision() { return this.revision != null; } public void setRevisionIsSet(boolean value) { if (!value) { this.revision = null; } } public String getPathPattern() { return this.pathPattern; } public getFiles_args setPathPattern(String pathPattern) { this.pathPattern = pathPattern; return this; } public void unsetPathPattern() { this.pathPattern = null; } /** Returns true if field pathPattern is set (has been assigned a value) and false otherwise */ public boolean isSetPathPattern() { return this.pathPattern != null; } public void setPathPatternIsSet(boolean value) { if (!value) { this.pathPattern = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; case REVISION: if (value == null) { unsetRevision(); } else { setRevision((Revision)value); } break; case PATH_PATTERN: if (value == null) { unsetPathPattern(); } else { setPathPattern((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); case REVISION: return getRevision(); case PATH_PATTERN: return getPathPattern(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); case REVISION: return isSetRevision(); case PATH_PATTERN: return isSetPathPattern(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getFiles_args) return this.equals((getFiles_args)that); return false; } public boolean equals(getFiles_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } boolean this_present_revision = true && this.isSetRevision(); boolean that_present_revision = true && that.isSetRevision(); if (this_present_revision || that_present_revision) { if (!(this_present_revision && that_present_revision)) return false; if (!this.revision.equals(that.revision)) return false; } boolean this_present_pathPattern = true && this.isSetPathPattern(); boolean that_present_pathPattern = true && that.isSetPathPattern(); if (this_present_pathPattern || that_present_pathPattern) { if (!(this_present_pathPattern && that_present_pathPattern)) return false; if (!this.pathPattern.equals(that.pathPattern)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); boolean present_revision = true && (isSetRevision()); list.add(present_revision); if (present_revision) list.add(revision); boolean present_pathPattern = true && (isSetPathPattern()); list.add(present_pathPattern); if (present_pathPattern) list.add(pathPattern); return list.hashCode(); } @Override public int compareTo(getFiles_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern()); if (lastComparison != 0) { return lastComparison; } if (isSetPathPattern()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern); 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("getFiles_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } first = false; if (!first) sb.append(", "); sb.append("revision:"); if (this.revision == null) { sb.append("null"); } else { sb.append(this.revision); } first = false; if (!first) sb.append(", "); sb.append("pathPattern:"); if (this.pathPattern == null) { sb.append("null"); } else { sb.append(this.pathPattern); } 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 (revision != null) { revision.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 getFiles_argsStandardSchemeFactory implements SchemeFactory { public getFiles_argsStandardScheme getScheme() { return new getFiles_argsStandardScheme(); } } private static class getFiles_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getFiles_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // PATH_PATTERN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.pathPattern = iprot.readString(); struct.setPathPatternIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getFiles_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } if (struct.revision != null) { oprot.writeFieldBegin(REVISION_FIELD_DESC); struct.revision.write(oprot); oprot.writeFieldEnd(); } if (struct.pathPattern != null) { oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC); oprot.writeString(struct.pathPattern); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getFiles_argsTupleSchemeFactory implements SchemeFactory { public getFiles_argsTupleScheme getScheme() { return new getFiles_argsTupleScheme(); } } private static class getFiles_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getFiles_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } if (struct.isSetRevision()) { optionals.set(2); } if (struct.isSetPathPattern()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } if (struct.isSetRevision()) { struct.revision.write(oprot); } if (struct.isSetPathPattern()) { oprot.writeString(struct.pathPattern); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getFiles_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } if (incoming.get(2)) { struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); } if (incoming.get(3)) { struct.pathPattern = iprot.readString(); struct.setPathPatternIsSet(true); } } } } public static class getFiles_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFiles_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getFiles_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getFiles_resultTupleSchemeFactory()); } public List success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Entry.class)))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(getFiles_result.class, metaDataMap); } public getFiles_result() { } public getFiles_result( List success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public getFiles_result(getFiles_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Entry other_element : other.success) { __this__success.add(new Entry(other_element)); } this.success = __this__success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public getFiles_result deepCopy() { return new getFiles_result(this); } @Override public void clear() { this.success = null; this.e = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(Entry elem) { if (this.success == null) { this.success = new ArrayList(); } this.success.add(elem); } public List getSuccess() { return this.success; } public getFiles_result setSuccess(List success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public getFiles_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getFiles_result) return this.equals((getFiles_result)that); return false; } public boolean equals(getFiles_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(getFiles_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("getFiles_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 getFiles_resultStandardSchemeFactory implements SchemeFactory { public getFiles_resultStandardScheme getScheme() { return new getFiles_resultStandardScheme(); } } private static class getFiles_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getFiles_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.LIST) { { org.apache.thrift.protocol.TList _list112 = iprot.readListBegin(); struct.success = new ArrayList(_list112.size); Entry _elem113; for (int _i114 = 0; _i114 < _list112.size; ++_i114) { _elem113 = new Entry(); _elem113.read(iprot); struct.success.add(_elem113); } iprot.readListEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getFiles_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Entry _iter115 : struct.success) { _iter115.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getFiles_resultTupleSchemeFactory implements SchemeFactory { public getFiles_resultTupleScheme getScheme() { return new getFiles_resultTupleScheme(); } } private static class getFiles_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getFiles_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Entry _iter116 : struct.success) { _iter116.write(oprot); } } } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getFiles_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list117 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list117.size); Entry _elem118; for (int _i119 = 0; _i119 < _list117.size; ++_i119) { _elem118 = new Entry(); _elem118.read(iprot); struct.success.add(_elem118); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class getHistory_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistory_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField FROM_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("from", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TO_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("to", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getHistory_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getHistory_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // required public Revision from; // required public Revision to; // required public String pathPattern; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"), FROM_REVISION((short)3, "from"), TO_REVISION((short)4, "to"), PATH_PATTERN((short)5, "pathPattern"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_NAME; case 3: // FROM_REVISION return FROM_REVISION; case 4: // TO_REVISION return TO_REVISION; case 5: // PATH_PATTERN return PATH_PATTERN; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.FROM_REVISION, new org.apache.thrift.meta_data.FieldMetaData("from", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); tmpMap.put(_Fields.TO_REVISION, new org.apache.thrift.meta_data.FieldMetaData("to", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", 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(getHistory_args.class, metaDataMap); } public getHistory_args() { } public getHistory_args( String projectName, String repositoryName, Revision from, Revision to, String pathPattern) { this(); this.projectName = projectName; this.repositoryName = repositoryName; this.from = from; this.to = to; this.pathPattern = pathPattern; } /** * Performs a deep copy on other. */ public getHistory_args(getHistory_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetFromRevision()) { this.from = new Revision(other.from); } if (other.isSetToRevision()) { this.to = new Revision(other.to); } if (other.isSetPathPattern()) { this.pathPattern = other.pathPattern; } } public getHistory_args deepCopy() { return new getHistory_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; this.from = null; this.to = null; this.pathPattern = null; } public String getProjectName() { return this.projectName; } public getHistory_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public getHistory_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public Revision getFromRevision() { return this.from; } public getHistory_args setFromRevision(Revision from) { this.from = from; return this; } public void unsetFromRevision() { this.from = null; } /** Returns true if field from is set (has been assigned a value) and false otherwise */ public boolean isSetFromRevision() { return this.from != null; } public void setFromRevisionIsSet(boolean value) { if (!value) { this.from = null; } } public Revision getToRevision() { return this.to; } public getHistory_args setToRevision(Revision to) { this.to = to; return this; } public void unsetToRevision() { this.to = null; } /** Returns true if field to is set (has been assigned a value) and false otherwise */ public boolean isSetToRevision() { return this.to != null; } public void setToRevisionIsSet(boolean value) { if (!value) { this.to = null; } } public String getPathPattern() { return this.pathPattern; } public getHistory_args setPathPattern(String pathPattern) { this.pathPattern = pathPattern; return this; } public void unsetPathPattern() { this.pathPattern = null; } /** Returns true if field pathPattern is set (has been assigned a value) and false otherwise */ public boolean isSetPathPattern() { return this.pathPattern != null; } public void setPathPatternIsSet(boolean value) { if (!value) { this.pathPattern = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; case FROM_REVISION: if (value == null) { unsetFromRevision(); } else { setFromRevision((Revision)value); } break; case TO_REVISION: if (value == null) { unsetToRevision(); } else { setToRevision((Revision)value); } break; case PATH_PATTERN: if (value == null) { unsetPathPattern(); } else { setPathPattern((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); case FROM_REVISION: return getFromRevision(); case TO_REVISION: return getToRevision(); case PATH_PATTERN: return getPathPattern(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); case FROM_REVISION: return isSetFromRevision(); case TO_REVISION: return isSetToRevision(); case PATH_PATTERN: return isSetPathPattern(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getHistory_args) return this.equals((getHistory_args)that); return false; } public boolean equals(getHistory_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } boolean this_present_from = true && this.isSetFromRevision(); boolean that_present_from = true && that.isSetFromRevision(); if (this_present_from || that_present_from) { if (!(this_present_from && that_present_from)) return false; if (!this.from.equals(that.from)) return false; } boolean this_present_to = true && this.isSetToRevision(); boolean that_present_to = true && that.isSetToRevision(); if (this_present_to || that_present_to) { if (!(this_present_to && that_present_to)) return false; if (!this.to.equals(that.to)) return false; } boolean this_present_pathPattern = true && this.isSetPathPattern(); boolean that_present_pathPattern = true && that.isSetPathPattern(); if (this_present_pathPattern || that_present_pathPattern) { if (!(this_present_pathPattern && that_present_pathPattern)) return false; if (!this.pathPattern.equals(that.pathPattern)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); boolean present_from = true && (isSetFromRevision()); list.add(present_from); if (present_from) list.add(from); boolean present_to = true && (isSetToRevision()); list.add(present_to); if (present_to) list.add(to); boolean present_pathPattern = true && (isSetPathPattern()); list.add(present_pathPattern); if (present_pathPattern) list.add(pathPattern); return list.hashCode(); } @Override public int compareTo(getHistory_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetFromRevision()).compareTo(other.isSetFromRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetFromRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from, other.from); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetToRevision()).compareTo(other.isSetToRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetToRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to, other.to); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern()); if (lastComparison != 0) { return lastComparison; } if (isSetPathPattern()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern); 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("getHistory_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } first = false; if (!first) sb.append(", "); sb.append("from:"); if (this.from == null) { sb.append("null"); } else { sb.append(this.from); } first = false; if (!first) sb.append(", "); sb.append("to:"); if (this.to == null) { sb.append("null"); } else { sb.append(this.to); } first = false; if (!first) sb.append(", "); sb.append("pathPattern:"); if (this.pathPattern == null) { sb.append("null"); } else { sb.append(this.pathPattern); } 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 (from != null) { from.validate(); } if (to != null) { to.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 getHistory_argsStandardSchemeFactory implements SchemeFactory { public getHistory_argsStandardScheme getScheme() { return new getHistory_argsStandardScheme(); } } private static class getHistory_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getHistory_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // FROM_REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.from = new Revision(); struct.from.read(iprot); struct.setFromRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TO_REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.to = new Revision(); struct.to.read(iprot); struct.setToRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // PATH_PATTERN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.pathPattern = iprot.readString(); struct.setPathPatternIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getHistory_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } if (struct.from != null) { oprot.writeFieldBegin(FROM_REVISION_FIELD_DESC); struct.from.write(oprot); oprot.writeFieldEnd(); } if (struct.to != null) { oprot.writeFieldBegin(TO_REVISION_FIELD_DESC); struct.to.write(oprot); oprot.writeFieldEnd(); } if (struct.pathPattern != null) { oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC); oprot.writeString(struct.pathPattern); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getHistory_argsTupleSchemeFactory implements SchemeFactory { public getHistory_argsTupleScheme getScheme() { return new getHistory_argsTupleScheme(); } } private static class getHistory_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getHistory_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } if (struct.isSetFromRevision()) { optionals.set(2); } if (struct.isSetToRevision()) { optionals.set(3); } if (struct.isSetPathPattern()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } if (struct.isSetFromRevision()) { struct.from.write(oprot); } if (struct.isSetToRevision()) { struct.to.write(oprot); } if (struct.isSetPathPattern()) { oprot.writeString(struct.pathPattern); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getHistory_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } if (incoming.get(2)) { struct.from = new Revision(); struct.from.read(iprot); struct.setFromRevisionIsSet(true); } if (incoming.get(3)) { struct.to = new Revision(); struct.to.read(iprot); struct.setToRevisionIsSet(true); } if (incoming.get(4)) { struct.pathPattern = iprot.readString(); struct.setPathPatternIsSet(true); } } } } public static class getHistory_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistory_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getHistory_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getHistory_resultTupleSchemeFactory()); } public List success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Commit.class)))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(getHistory_result.class, metaDataMap); } public getHistory_result() { } public getHistory_result( List success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public getHistory_result(getHistory_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Commit other_element : other.success) { __this__success.add(new Commit(other_element)); } this.success = __this__success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public getHistory_result deepCopy() { return new getHistory_result(this); } @Override public void clear() { this.success = null; this.e = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(Commit elem) { if (this.success == null) { this.success = new ArrayList(); } this.success.add(elem); } public List getSuccess() { return this.success; } public getHistory_result setSuccess(List success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public getHistory_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getHistory_result) return this.equals((getHistory_result)that); return false; } public boolean equals(getHistory_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(getHistory_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("getHistory_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 getHistory_resultStandardSchemeFactory implements SchemeFactory { public getHistory_resultStandardScheme getScheme() { return new getHistory_resultStandardScheme(); } } private static class getHistory_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getHistory_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.LIST) { { org.apache.thrift.protocol.TList _list120 = iprot.readListBegin(); struct.success = new ArrayList(_list120.size); Commit _elem121; for (int _i122 = 0; _i122 < _list120.size; ++_i122) { _elem121 = new Commit(); _elem121.read(iprot); struct.success.add(_elem121); } iprot.readListEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getHistory_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Commit _iter123 : struct.success) { _iter123.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getHistory_resultTupleSchemeFactory implements SchemeFactory { public getHistory_resultTupleScheme getScheme() { return new getHistory_resultTupleScheme(); } } private static class getHistory_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getHistory_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Commit _iter124 : struct.success) { _iter124.write(oprot); } } } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getHistory_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list125 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list125.size); Commit _elem126; for (int _i127 = 0; _i127 < _list125.size; ++_i127) { _elem126 = new Commit(); _elem126.read(iprot); struct.success.add(_elem126); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class getDiffs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDiffs_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField FROM_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("from", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TO_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("to", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getDiffs_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getDiffs_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // required public Revision from; // required public Revision to; // required public String pathPattern; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"), FROM_REVISION((short)3, "from"), TO_REVISION((short)4, "to"), PATH_PATTERN((short)5, "pathPattern"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_NAME; case 3: // FROM_REVISION return FROM_REVISION; case 4: // TO_REVISION return TO_REVISION; case 5: // PATH_PATTERN return PATH_PATTERN; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.FROM_REVISION, new org.apache.thrift.meta_data.FieldMetaData("from", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); tmpMap.put(_Fields.TO_REVISION, new org.apache.thrift.meta_data.FieldMetaData("to", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", 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(getDiffs_args.class, metaDataMap); } public getDiffs_args() { } public getDiffs_args( String projectName, String repositoryName, Revision from, Revision to, String pathPattern) { this(); this.projectName = projectName; this.repositoryName = repositoryName; this.from = from; this.to = to; this.pathPattern = pathPattern; } /** * Performs a deep copy on other. */ public getDiffs_args(getDiffs_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetFromRevision()) { this.from = new Revision(other.from); } if (other.isSetToRevision()) { this.to = new Revision(other.to); } if (other.isSetPathPattern()) { this.pathPattern = other.pathPattern; } } public getDiffs_args deepCopy() { return new getDiffs_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; this.from = null; this.to = null; this.pathPattern = null; } public String getProjectName() { return this.projectName; } public getDiffs_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public getDiffs_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public Revision getFromRevision() { return this.from; } public getDiffs_args setFromRevision(Revision from) { this.from = from; return this; } public void unsetFromRevision() { this.from = null; } /** Returns true if field from is set (has been assigned a value) and false otherwise */ public boolean isSetFromRevision() { return this.from != null; } public void setFromRevisionIsSet(boolean value) { if (!value) { this.from = null; } } public Revision getToRevision() { return this.to; } public getDiffs_args setToRevision(Revision to) { this.to = to; return this; } public void unsetToRevision() { this.to = null; } /** Returns true if field to is set (has been assigned a value) and false otherwise */ public boolean isSetToRevision() { return this.to != null; } public void setToRevisionIsSet(boolean value) { if (!value) { this.to = null; } } public String getPathPattern() { return this.pathPattern; } public getDiffs_args setPathPattern(String pathPattern) { this.pathPattern = pathPattern; return this; } public void unsetPathPattern() { this.pathPattern = null; } /** Returns true if field pathPattern is set (has been assigned a value) and false otherwise */ public boolean isSetPathPattern() { return this.pathPattern != null; } public void setPathPatternIsSet(boolean value) { if (!value) { this.pathPattern = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; case FROM_REVISION: if (value == null) { unsetFromRevision(); } else { setFromRevision((Revision)value); } break; case TO_REVISION: if (value == null) { unsetToRevision(); } else { setToRevision((Revision)value); } break; case PATH_PATTERN: if (value == null) { unsetPathPattern(); } else { setPathPattern((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); case FROM_REVISION: return getFromRevision(); case TO_REVISION: return getToRevision(); case PATH_PATTERN: return getPathPattern(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); case FROM_REVISION: return isSetFromRevision(); case TO_REVISION: return isSetToRevision(); case PATH_PATTERN: return isSetPathPattern(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getDiffs_args) return this.equals((getDiffs_args)that); return false; } public boolean equals(getDiffs_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } boolean this_present_from = true && this.isSetFromRevision(); boolean that_present_from = true && that.isSetFromRevision(); if (this_present_from || that_present_from) { if (!(this_present_from && that_present_from)) return false; if (!this.from.equals(that.from)) return false; } boolean this_present_to = true && this.isSetToRevision(); boolean that_present_to = true && that.isSetToRevision(); if (this_present_to || that_present_to) { if (!(this_present_to && that_present_to)) return false; if (!this.to.equals(that.to)) return false; } boolean this_present_pathPattern = true && this.isSetPathPattern(); boolean that_present_pathPattern = true && that.isSetPathPattern(); if (this_present_pathPattern || that_present_pathPattern) { if (!(this_present_pathPattern && that_present_pathPattern)) return false; if (!this.pathPattern.equals(that.pathPattern)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); boolean present_from = true && (isSetFromRevision()); list.add(present_from); if (present_from) list.add(from); boolean present_to = true && (isSetToRevision()); list.add(present_to); if (present_to) list.add(to); boolean present_pathPattern = true && (isSetPathPattern()); list.add(present_pathPattern); if (present_pathPattern) list.add(pathPattern); return list.hashCode(); } @Override public int compareTo(getDiffs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetFromRevision()).compareTo(other.isSetFromRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetFromRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from, other.from); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetToRevision()).compareTo(other.isSetToRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetToRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to, other.to); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern()); if (lastComparison != 0) { return lastComparison; } if (isSetPathPattern()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern); 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("getDiffs_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } first = false; if (!first) sb.append(", "); sb.append("from:"); if (this.from == null) { sb.append("null"); } else { sb.append(this.from); } first = false; if (!first) sb.append(", "); sb.append("to:"); if (this.to == null) { sb.append("null"); } else { sb.append(this.to); } first = false; if (!first) sb.append(", "); sb.append("pathPattern:"); if (this.pathPattern == null) { sb.append("null"); } else { sb.append(this.pathPattern); } 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 (from != null) { from.validate(); } if (to != null) { to.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 getDiffs_argsStandardSchemeFactory implements SchemeFactory { public getDiffs_argsStandardScheme getScheme() { return new getDiffs_argsStandardScheme(); } } private static class getDiffs_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getDiffs_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // FROM_REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.from = new Revision(); struct.from.read(iprot); struct.setFromRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TO_REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.to = new Revision(); struct.to.read(iprot); struct.setToRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // PATH_PATTERN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.pathPattern = iprot.readString(); struct.setPathPatternIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getDiffs_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } if (struct.from != null) { oprot.writeFieldBegin(FROM_REVISION_FIELD_DESC); struct.from.write(oprot); oprot.writeFieldEnd(); } if (struct.to != null) { oprot.writeFieldBegin(TO_REVISION_FIELD_DESC); struct.to.write(oprot); oprot.writeFieldEnd(); } if (struct.pathPattern != null) { oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC); oprot.writeString(struct.pathPattern); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getDiffs_argsTupleSchemeFactory implements SchemeFactory { public getDiffs_argsTupleScheme getScheme() { return new getDiffs_argsTupleScheme(); } } private static class getDiffs_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getDiffs_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } if (struct.isSetFromRevision()) { optionals.set(2); } if (struct.isSetToRevision()) { optionals.set(3); } if (struct.isSetPathPattern()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } if (struct.isSetFromRevision()) { struct.from.write(oprot); } if (struct.isSetToRevision()) { struct.to.write(oprot); } if (struct.isSetPathPattern()) { oprot.writeString(struct.pathPattern); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getDiffs_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } if (incoming.get(2)) { struct.from = new Revision(); struct.from.read(iprot); struct.setFromRevisionIsSet(true); } if (incoming.get(3)) { struct.to = new Revision(); struct.to.read(iprot); struct.setToRevisionIsSet(true); } if (incoming.get(4)) { struct.pathPattern = iprot.readString(); struct.setPathPatternIsSet(true); } } } } public static class getDiffs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDiffs_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getDiffs_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getDiffs_resultTupleSchemeFactory()); } public List success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Change.class)))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(getDiffs_result.class, metaDataMap); } public getDiffs_result() { } public getDiffs_result( List success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public getDiffs_result(getDiffs_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Change other_element : other.success) { __this__success.add(new Change(other_element)); } this.success = __this__success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public getDiffs_result deepCopy() { return new getDiffs_result(this); } @Override public void clear() { this.success = null; this.e = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(Change elem) { if (this.success == null) { this.success = new ArrayList(); } this.success.add(elem); } public List getSuccess() { return this.success; } public getDiffs_result setSuccess(List success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public getDiffs_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getDiffs_result) return this.equals((getDiffs_result)that); return false; } public boolean equals(getDiffs_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(getDiffs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("getDiffs_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 getDiffs_resultStandardSchemeFactory implements SchemeFactory { public getDiffs_resultStandardScheme getScheme() { return new getDiffs_resultStandardScheme(); } } private static class getDiffs_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getDiffs_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.LIST) { { org.apache.thrift.protocol.TList _list128 = iprot.readListBegin(); struct.success = new ArrayList(_list128.size); Change _elem129; for (int _i130 = 0; _i130 < _list128.size; ++_i130) { _elem129 = new Change(); _elem129.read(iprot); struct.success.add(_elem129); } iprot.readListEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getDiffs_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Change _iter131 : struct.success) { _iter131.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getDiffs_resultTupleSchemeFactory implements SchemeFactory { public getDiffs_resultTupleScheme getScheme() { return new getDiffs_resultTupleScheme(); } } private static class getDiffs_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getDiffs_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Change _iter132 : struct.success) { _iter132.write(oprot); } } } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getDiffs_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list133 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list133.size); Change _elem134; for (int _i135 = 0; _i135 < _list133.size; ++_i135) { _elem134 = new Change(); _elem134.read(iprot); struct.success.add(_elem134); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class getPreviewDiffs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPreviewDiffs_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField BASE_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("baseRevision", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField CHANGES_FIELD_DESC = new org.apache.thrift.protocol.TField("changes", org.apache.thrift.protocol.TType.LIST, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getPreviewDiffs_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getPreviewDiffs_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // required public Revision baseRevision; // required public List changes; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"), BASE_REVISION((short)3, "baseRevision"), CHANGES((short)4, "changes"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_NAME; case 3: // BASE_REVISION return BASE_REVISION; case 4: // CHANGES return CHANGES; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.BASE_REVISION, new org.apache.thrift.meta_data.FieldMetaData("baseRevision", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); tmpMap.put(_Fields.CHANGES, new org.apache.thrift.meta_data.FieldMetaData("changes", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Change.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPreviewDiffs_args.class, metaDataMap); } public getPreviewDiffs_args() { } public getPreviewDiffs_args( String projectName, String repositoryName, Revision baseRevision, List changes) { this(); this.projectName = projectName; this.repositoryName = repositoryName; this.baseRevision = baseRevision; this.changes = changes; } /** * Performs a deep copy on other. */ public getPreviewDiffs_args(getPreviewDiffs_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetBaseRevision()) { this.baseRevision = new Revision(other.baseRevision); } if (other.isSetChanges()) { List __this__changes = new ArrayList(other.changes.size()); for (Change other_element : other.changes) { __this__changes.add(new Change(other_element)); } this.changes = __this__changes; } } public getPreviewDiffs_args deepCopy() { return new getPreviewDiffs_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; this.baseRevision = null; this.changes = null; } public String getProjectName() { return this.projectName; } public getPreviewDiffs_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public getPreviewDiffs_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public Revision getBaseRevision() { return this.baseRevision; } public getPreviewDiffs_args setBaseRevision(Revision baseRevision) { this.baseRevision = baseRevision; return this; } public void unsetBaseRevision() { this.baseRevision = null; } /** Returns true if field baseRevision is set (has been assigned a value) and false otherwise */ public boolean isSetBaseRevision() { return this.baseRevision != null; } public void setBaseRevisionIsSet(boolean value) { if (!value) { this.baseRevision = null; } } public int getChangesSize() { return (this.changes == null) ? 0 : this.changes.size(); } public java.util.Iterator getChangesIterator() { return (this.changes == null) ? null : this.changes.iterator(); } public void addToChanges(Change elem) { if (this.changes == null) { this.changes = new ArrayList(); } this.changes.add(elem); } public List getChanges() { return this.changes; } public getPreviewDiffs_args setChanges(List changes) { this.changes = changes; return this; } public void unsetChanges() { this.changes = null; } /** Returns true if field changes is set (has been assigned a value) and false otherwise */ public boolean isSetChanges() { return this.changes != null; } public void setChangesIsSet(boolean value) { if (!value) { this.changes = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; case BASE_REVISION: if (value == null) { unsetBaseRevision(); } else { setBaseRevision((Revision)value); } break; case CHANGES: if (value == null) { unsetChanges(); } else { setChanges((List)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); case BASE_REVISION: return getBaseRevision(); case CHANGES: return getChanges(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); case BASE_REVISION: return isSetBaseRevision(); case CHANGES: return isSetChanges(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getPreviewDiffs_args) return this.equals((getPreviewDiffs_args)that); return false; } public boolean equals(getPreviewDiffs_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } boolean this_present_baseRevision = true && this.isSetBaseRevision(); boolean that_present_baseRevision = true && that.isSetBaseRevision(); if (this_present_baseRevision || that_present_baseRevision) { if (!(this_present_baseRevision && that_present_baseRevision)) return false; if (!this.baseRevision.equals(that.baseRevision)) return false; } boolean this_present_changes = true && this.isSetChanges(); boolean that_present_changes = true && that.isSetChanges(); if (this_present_changes || that_present_changes) { if (!(this_present_changes && that_present_changes)) return false; if (!this.changes.equals(that.changes)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); boolean present_baseRevision = true && (isSetBaseRevision()); list.add(present_baseRevision); if (present_baseRevision) list.add(baseRevision); boolean present_changes = true && (isSetChanges()); list.add(present_changes); if (present_changes) list.add(changes); return list.hashCode(); } @Override public int compareTo(getPreviewDiffs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetBaseRevision()).compareTo(other.isSetBaseRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetBaseRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.baseRevision, other.baseRevision); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetChanges()).compareTo(other.isSetChanges()); if (lastComparison != 0) { return lastComparison; } if (isSetChanges()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.changes, other.changes); 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("getPreviewDiffs_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } first = false; if (!first) sb.append(", "); sb.append("baseRevision:"); if (this.baseRevision == null) { sb.append("null"); } else { sb.append(this.baseRevision); } first = false; if (!first) sb.append(", "); sb.append("changes:"); if (this.changes == null) { sb.append("null"); } else { sb.append(this.changes); } 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 (baseRevision != null) { baseRevision.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 getPreviewDiffs_argsStandardSchemeFactory implements SchemeFactory { public getPreviewDiffs_argsStandardScheme getScheme() { return new getPreviewDiffs_argsStandardScheme(); } } private static class getPreviewDiffs_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getPreviewDiffs_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // BASE_REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.baseRevision = new Revision(); struct.baseRevision.read(iprot); struct.setBaseRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // CHANGES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list136 = iprot.readListBegin(); struct.changes = new ArrayList(_list136.size); Change _elem137; for (int _i138 = 0; _i138 < _list136.size; ++_i138) { _elem137 = new Change(); _elem137.read(iprot); struct.changes.add(_elem137); } iprot.readListEnd(); } struct.setChangesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getPreviewDiffs_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } if (struct.baseRevision != null) { oprot.writeFieldBegin(BASE_REVISION_FIELD_DESC); struct.baseRevision.write(oprot); oprot.writeFieldEnd(); } if (struct.changes != null) { oprot.writeFieldBegin(CHANGES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.changes.size())); for (Change _iter139 : struct.changes) { _iter139.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getPreviewDiffs_argsTupleSchemeFactory implements SchemeFactory { public getPreviewDiffs_argsTupleScheme getScheme() { return new getPreviewDiffs_argsTupleScheme(); } } private static class getPreviewDiffs_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getPreviewDiffs_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } if (struct.isSetBaseRevision()) { optionals.set(2); } if (struct.isSetChanges()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } if (struct.isSetBaseRevision()) { struct.baseRevision.write(oprot); } if (struct.isSetChanges()) { { oprot.writeI32(struct.changes.size()); for (Change _iter140 : struct.changes) { _iter140.write(oprot); } } } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getPreviewDiffs_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } if (incoming.get(2)) { struct.baseRevision = new Revision(); struct.baseRevision.read(iprot); struct.setBaseRevisionIsSet(true); } if (incoming.get(3)) { { org.apache.thrift.protocol.TList _list141 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.changes = new ArrayList(_list141.size); Change _elem142; for (int _i143 = 0; _i143 < _list141.size; ++_i143) { _elem142 = new Change(); _elem142.read(iprot); struct.changes.add(_elem142); } } struct.setChangesIsSet(true); } } } } public static class getPreviewDiffs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPreviewDiffs_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getPreviewDiffs_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getPreviewDiffs_resultTupleSchemeFactory()); } public List success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Change.class)))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(getPreviewDiffs_result.class, metaDataMap); } public getPreviewDiffs_result() { } public getPreviewDiffs_result( List success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public getPreviewDiffs_result(getPreviewDiffs_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Change other_element : other.success) { __this__success.add(new Change(other_element)); } this.success = __this__success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public getPreviewDiffs_result deepCopy() { return new getPreviewDiffs_result(this); } @Override public void clear() { this.success = null; this.e = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(Change elem) { if (this.success == null) { this.success = new ArrayList(); } this.success.add(elem); } public List getSuccess() { return this.success; } public getPreviewDiffs_result setSuccess(List success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public getPreviewDiffs_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getPreviewDiffs_result) return this.equals((getPreviewDiffs_result)that); return false; } public boolean equals(getPreviewDiffs_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(getPreviewDiffs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("getPreviewDiffs_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 getPreviewDiffs_resultStandardSchemeFactory implements SchemeFactory { public getPreviewDiffs_resultStandardScheme getScheme() { return new getPreviewDiffs_resultStandardScheme(); } } private static class getPreviewDiffs_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getPreviewDiffs_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.LIST) { { org.apache.thrift.protocol.TList _list144 = iprot.readListBegin(); struct.success = new ArrayList(_list144.size); Change _elem145; for (int _i146 = 0; _i146 < _list144.size; ++_i146) { _elem145 = new Change(); _elem145.read(iprot); struct.success.add(_elem145); } iprot.readListEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getPreviewDiffs_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Change _iter147 : struct.success) { _iter147.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getPreviewDiffs_resultTupleSchemeFactory implements SchemeFactory { public getPreviewDiffs_resultTupleScheme getScheme() { return new getPreviewDiffs_resultTupleScheme(); } } private static class getPreviewDiffs_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getPreviewDiffs_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Change _iter148 : struct.success) { _iter148.write(oprot); } } } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getPreviewDiffs_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list149 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list149.size); Change _elem150; for (int _i151 = 0; _i151 < _list149.size; ++_i151) { _elem150 = new Change(); _elem150.read(iprot); struct.success.add(_elem150); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class push_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("push_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField BASE_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("baseRevision", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField AUTHOR_FIELD_DESC = new org.apache.thrift.protocol.TField("author", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField SUMMARY_FIELD_DESC = new org.apache.thrift.protocol.TField("summary", org.apache.thrift.protocol.TType.STRING, (short)5); private static final org.apache.thrift.protocol.TField DETAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("detail", org.apache.thrift.protocol.TType.STRUCT, (short)6); private static final org.apache.thrift.protocol.TField CHANGES_FIELD_DESC = new org.apache.thrift.protocol.TField("changes", org.apache.thrift.protocol.TType.LIST, (short)7); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new push_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new push_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // required public Revision baseRevision; // required public Author author; // required public String summary; // required public Comment detail; // required public List changes; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"), BASE_REVISION((short)3, "baseRevision"), AUTHOR((short)4, "author"), SUMMARY((short)5, "summary"), DETAIL((short)6, "detail"), CHANGES((short)7, "changes"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_NAME; case 3: // BASE_REVISION return BASE_REVISION; case 4: // AUTHOR return AUTHOR; case 5: // SUMMARY return SUMMARY; case 6: // DETAIL return DETAIL; case 7: // CHANGES return CHANGES; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.BASE_REVISION, new org.apache.thrift.meta_data.FieldMetaData("baseRevision", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); tmpMap.put(_Fields.AUTHOR, new org.apache.thrift.meta_data.FieldMetaData("author", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Author.class))); tmpMap.put(_Fields.SUMMARY, new org.apache.thrift.meta_data.FieldMetaData("summary", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.DETAIL, new org.apache.thrift.meta_data.FieldMetaData("detail", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Comment.class))); tmpMap.put(_Fields.CHANGES, new org.apache.thrift.meta_data.FieldMetaData("changes", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Change.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(push_args.class, metaDataMap); } public push_args() { } public push_args( String projectName, String repositoryName, Revision baseRevision, Author author, String summary, Comment detail, List changes) { this(); this.projectName = projectName; this.repositoryName = repositoryName; this.baseRevision = baseRevision; this.author = author; this.summary = summary; this.detail = detail; this.changes = changes; } /** * Performs a deep copy on other. */ public push_args(push_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetBaseRevision()) { this.baseRevision = new Revision(other.baseRevision); } if (other.isSetAuthor()) { this.author = new Author(other.author); } if (other.isSetSummary()) { this.summary = other.summary; } if (other.isSetDetail()) { this.detail = new Comment(other.detail); } if (other.isSetChanges()) { List __this__changes = new ArrayList(other.changes.size()); for (Change other_element : other.changes) { __this__changes.add(new Change(other_element)); } this.changes = __this__changes; } } public push_args deepCopy() { return new push_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; this.baseRevision = null; this.author = null; this.summary = null; this.detail = null; this.changes = null; } public String getProjectName() { return this.projectName; } public push_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public push_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public Revision getBaseRevision() { return this.baseRevision; } public push_args setBaseRevision(Revision baseRevision) { this.baseRevision = baseRevision; return this; } public void unsetBaseRevision() { this.baseRevision = null; } /** Returns true if field baseRevision is set (has been assigned a value) and false otherwise */ public boolean isSetBaseRevision() { return this.baseRevision != null; } public void setBaseRevisionIsSet(boolean value) { if (!value) { this.baseRevision = null; } } public Author getAuthor() { return this.author; } public push_args setAuthor(Author author) { this.author = author; return this; } public void unsetAuthor() { this.author = null; } /** Returns true if field author is set (has been assigned a value) and false otherwise */ public boolean isSetAuthor() { return this.author != null; } public void setAuthorIsSet(boolean value) { if (!value) { this.author = null; } } public String getSummary() { return this.summary; } public push_args setSummary(String summary) { this.summary = summary; return this; } public void unsetSummary() { this.summary = null; } /** Returns true if field summary is set (has been assigned a value) and false otherwise */ public boolean isSetSummary() { return this.summary != null; } public void setSummaryIsSet(boolean value) { if (!value) { this.summary = null; } } public Comment getDetail() { return this.detail; } public push_args setDetail(Comment detail) { this.detail = detail; return this; } public void unsetDetail() { this.detail = null; } /** Returns true if field detail is set (has been assigned a value) and false otherwise */ public boolean isSetDetail() { return this.detail != null; } public void setDetailIsSet(boolean value) { if (!value) { this.detail = null; } } public int getChangesSize() { return (this.changes == null) ? 0 : this.changes.size(); } public java.util.Iterator getChangesIterator() { return (this.changes == null) ? null : this.changes.iterator(); } public void addToChanges(Change elem) { if (this.changes == null) { this.changes = new ArrayList(); } this.changes.add(elem); } public List getChanges() { return this.changes; } public push_args setChanges(List changes) { this.changes = changes; return this; } public void unsetChanges() { this.changes = null; } /** Returns true if field changes is set (has been assigned a value) and false otherwise */ public boolean isSetChanges() { return this.changes != null; } public void setChangesIsSet(boolean value) { if (!value) { this.changes = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; case BASE_REVISION: if (value == null) { unsetBaseRevision(); } else { setBaseRevision((Revision)value); } break; case AUTHOR: if (value == null) { unsetAuthor(); } else { setAuthor((Author)value); } break; case SUMMARY: if (value == null) { unsetSummary(); } else { setSummary((String)value); } break; case DETAIL: if (value == null) { unsetDetail(); } else { setDetail((Comment)value); } break; case CHANGES: if (value == null) { unsetChanges(); } else { setChanges((List)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); case BASE_REVISION: return getBaseRevision(); case AUTHOR: return getAuthor(); case SUMMARY: return getSummary(); case DETAIL: return getDetail(); case CHANGES: return getChanges(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); case BASE_REVISION: return isSetBaseRevision(); case AUTHOR: return isSetAuthor(); case SUMMARY: return isSetSummary(); case DETAIL: return isSetDetail(); case CHANGES: return isSetChanges(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof push_args) return this.equals((push_args)that); return false; } public boolean equals(push_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } boolean this_present_baseRevision = true && this.isSetBaseRevision(); boolean that_present_baseRevision = true && that.isSetBaseRevision(); if (this_present_baseRevision || that_present_baseRevision) { if (!(this_present_baseRevision && that_present_baseRevision)) return false; if (!this.baseRevision.equals(that.baseRevision)) return false; } boolean this_present_author = true && this.isSetAuthor(); boolean that_present_author = true && that.isSetAuthor(); if (this_present_author || that_present_author) { if (!(this_present_author && that_present_author)) return false; if (!this.author.equals(that.author)) return false; } boolean this_present_summary = true && this.isSetSummary(); boolean that_present_summary = true && that.isSetSummary(); if (this_present_summary || that_present_summary) { if (!(this_present_summary && that_present_summary)) return false; if (!this.summary.equals(that.summary)) return false; } boolean this_present_detail = true && this.isSetDetail(); boolean that_present_detail = true && that.isSetDetail(); if (this_present_detail || that_present_detail) { if (!(this_present_detail && that_present_detail)) return false; if (!this.detail.equals(that.detail)) return false; } boolean this_present_changes = true && this.isSetChanges(); boolean that_present_changes = true && that.isSetChanges(); if (this_present_changes || that_present_changes) { if (!(this_present_changes && that_present_changes)) return false; if (!this.changes.equals(that.changes)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); boolean present_baseRevision = true && (isSetBaseRevision()); list.add(present_baseRevision); if (present_baseRevision) list.add(baseRevision); boolean present_author = true && (isSetAuthor()); list.add(present_author); if (present_author) list.add(author); boolean present_summary = true && (isSetSummary()); list.add(present_summary); if (present_summary) list.add(summary); boolean present_detail = true && (isSetDetail()); list.add(present_detail); if (present_detail) list.add(detail); boolean present_changes = true && (isSetChanges()); list.add(present_changes); if (present_changes) list.add(changes); return list.hashCode(); } @Override public int compareTo(push_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetBaseRevision()).compareTo(other.isSetBaseRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetBaseRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.baseRevision, other.baseRevision); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetAuthor()).compareTo(other.isSetAuthor()); if (lastComparison != 0) { return lastComparison; } if (isSetAuthor()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.author, other.author); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetSummary()).compareTo(other.isSetSummary()); if (lastComparison != 0) { return lastComparison; } if (isSetSummary()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.summary, other.summary); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetDetail()).compareTo(other.isSetDetail()); if (lastComparison != 0) { return lastComparison; } if (isSetDetail()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.detail, other.detail); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetChanges()).compareTo(other.isSetChanges()); if (lastComparison != 0) { return lastComparison; } if (isSetChanges()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.changes, other.changes); 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("push_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } first = false; if (!first) sb.append(", "); sb.append("baseRevision:"); if (this.baseRevision == null) { sb.append("null"); } else { sb.append(this.baseRevision); } first = false; if (!first) sb.append(", "); sb.append("author:"); if (this.author == null) { sb.append("null"); } else { sb.append(this.author); } first = false; if (!first) sb.append(", "); sb.append("summary:"); if (this.summary == null) { sb.append("null"); } else { sb.append(this.summary); } first = false; if (!first) sb.append(", "); sb.append("detail:"); if (this.detail == null) { sb.append("null"); } else { sb.append(this.detail); } first = false; if (!first) sb.append(", "); sb.append("changes:"); if (this.changes == null) { sb.append("null"); } else { sb.append(this.changes); } 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 (baseRevision != null) { baseRevision.validate(); } if (author != null) { author.validate(); } if (detail != null) { detail.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 push_argsStandardSchemeFactory implements SchemeFactory { public push_argsStandardScheme getScheme() { return new push_argsStandardScheme(); } } private static class push_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, push_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // BASE_REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.baseRevision = new Revision(); struct.baseRevision.read(iprot); struct.setBaseRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // AUTHOR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.author = new Author(); struct.author.read(iprot); struct.setAuthorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // SUMMARY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.summary = iprot.readString(); struct.setSummaryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // DETAIL if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.detail = new Comment(); struct.detail.read(iprot); struct.setDetailIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // CHANGES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list152 = iprot.readListBegin(); struct.changes = new ArrayList(_list152.size); Change _elem153; for (int _i154 = 0; _i154 < _list152.size; ++_i154) { _elem153 = new Change(); _elem153.read(iprot); struct.changes.add(_elem153); } iprot.readListEnd(); } struct.setChangesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, push_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } if (struct.baseRevision != null) { oprot.writeFieldBegin(BASE_REVISION_FIELD_DESC); struct.baseRevision.write(oprot); oprot.writeFieldEnd(); } if (struct.author != null) { oprot.writeFieldBegin(AUTHOR_FIELD_DESC); struct.author.write(oprot); oprot.writeFieldEnd(); } if (struct.summary != null) { oprot.writeFieldBegin(SUMMARY_FIELD_DESC); oprot.writeString(struct.summary); oprot.writeFieldEnd(); } if (struct.detail != null) { oprot.writeFieldBegin(DETAIL_FIELD_DESC); struct.detail.write(oprot); oprot.writeFieldEnd(); } if (struct.changes != null) { oprot.writeFieldBegin(CHANGES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.changes.size())); for (Change _iter155 : struct.changes) { _iter155.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class push_argsTupleSchemeFactory implements SchemeFactory { public push_argsTupleScheme getScheme() { return new push_argsTupleScheme(); } } private static class push_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, push_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } if (struct.isSetBaseRevision()) { optionals.set(2); } if (struct.isSetAuthor()) { optionals.set(3); } if (struct.isSetSummary()) { optionals.set(4); } if (struct.isSetDetail()) { optionals.set(5); } if (struct.isSetChanges()) { optionals.set(6); } oprot.writeBitSet(optionals, 7); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } if (struct.isSetBaseRevision()) { struct.baseRevision.write(oprot); } if (struct.isSetAuthor()) { struct.author.write(oprot); } if (struct.isSetSummary()) { oprot.writeString(struct.summary); } if (struct.isSetDetail()) { struct.detail.write(oprot); } if (struct.isSetChanges()) { { oprot.writeI32(struct.changes.size()); for (Change _iter156 : struct.changes) { _iter156.write(oprot); } } } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, push_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } if (incoming.get(2)) { struct.baseRevision = new Revision(); struct.baseRevision.read(iprot); struct.setBaseRevisionIsSet(true); } if (incoming.get(3)) { struct.author = new Author(); struct.author.read(iprot); struct.setAuthorIsSet(true); } if (incoming.get(4)) { struct.summary = iprot.readString(); struct.setSummaryIsSet(true); } if (incoming.get(5)) { struct.detail = new Comment(); struct.detail.read(iprot); struct.setDetailIsSet(true); } if (incoming.get(6)) { { org.apache.thrift.protocol.TList _list157 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.changes = new ArrayList(_list157.size); Change _elem158; for (int _i159 = 0; _i159 < _list157.size; ++_i159) { _elem158 = new Change(); _elem158.read(iprot); struct.changes.add(_elem158); } } struct.setChangesIsSet(true); } } } } public static class push_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("push_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 E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new push_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new push_resultTupleSchemeFactory()); } public Commit success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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, Commit.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(push_result.class, metaDataMap); } public push_result() { } public push_result( Commit success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public push_result(push_result other) { if (other.isSetSuccess()) { this.success = new Commit(other.success); } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public push_result deepCopy() { return new push_result(this); } @Override public void clear() { this.success = null; this.e = null; } public Commit getSuccess() { return this.success; } public push_result setSuccess(Commit success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public push_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Commit)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof push_result) return this.equals((push_result)that); return false; } public boolean equals(push_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(push_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("push_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 push_resultStandardSchemeFactory implements SchemeFactory { public push_resultStandardScheme getScheme() { return new push_resultStandardScheme(); } } private static class push_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, push_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 Commit(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, push_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.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class push_resultTupleSchemeFactory implements SchemeFactory { public push_resultTupleScheme getScheme() { return new push_resultTupleScheme(); } } private static class push_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, push_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, push_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new Commit(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class getFile_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFile_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getFile_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getFile_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // required public Revision revision; // required public Query query; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"), REVISION((short)3, "revision"), QUERY((short)4, "query"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_NAME; case 3: // REVISION return REVISION; case 4: // QUERY return QUERY; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Query.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFile_args.class, metaDataMap); } public getFile_args() { } public getFile_args( String projectName, String repositoryName, Revision revision, Query query) { this(); this.projectName = projectName; this.repositoryName = repositoryName; this.revision = revision; this.query = query; } /** * Performs a deep copy on other. */ public getFile_args(getFile_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetRevision()) { this.revision = new Revision(other.revision); } if (other.isSetQuery()) { this.query = new Query(other.query); } } public getFile_args deepCopy() { return new getFile_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; this.revision = null; this.query = null; } public String getProjectName() { return this.projectName; } public getFile_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public getFile_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public Revision getRevision() { return this.revision; } public getFile_args setRevision(Revision revision) { this.revision = revision; return this; } public void unsetRevision() { this.revision = null; } /** Returns true if field revision is set (has been assigned a value) and false otherwise */ public boolean isSetRevision() { return this.revision != null; } public void setRevisionIsSet(boolean value) { if (!value) { this.revision = null; } } public Query getQuery() { return this.query; } public getFile_args setQuery(Query query) { this.query = query; return this; } public void unsetQuery() { this.query = null; } /** Returns true if field query is set (has been assigned a value) and false otherwise */ public boolean isSetQuery() { return this.query != null; } public void setQueryIsSet(boolean value) { if (!value) { this.query = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; case REVISION: if (value == null) { unsetRevision(); } else { setRevision((Revision)value); } break; case QUERY: if (value == null) { unsetQuery(); } else { setQuery((Query)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); case REVISION: return getRevision(); case QUERY: return getQuery(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); case REVISION: return isSetRevision(); case QUERY: return isSetQuery(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getFile_args) return this.equals((getFile_args)that); return false; } public boolean equals(getFile_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } boolean this_present_revision = true && this.isSetRevision(); boolean that_present_revision = true && that.isSetRevision(); if (this_present_revision || that_present_revision) { if (!(this_present_revision && that_present_revision)) return false; if (!this.revision.equals(that.revision)) return false; } boolean this_present_query = true && this.isSetQuery(); boolean that_present_query = true && that.isSetQuery(); if (this_present_query || that_present_query) { if (!(this_present_query && that_present_query)) return false; if (!this.query.equals(that.query)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); boolean present_revision = true && (isSetRevision()); list.add(present_revision); if (present_revision) list.add(revision); boolean present_query = true && (isSetQuery()); list.add(present_query); if (present_query) list.add(query); return list.hashCode(); } @Override public int compareTo(getFile_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery()); if (lastComparison != 0) { return lastComparison; } if (isSetQuery()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query); 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("getFile_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } first = false; if (!first) sb.append(", "); sb.append("revision:"); if (this.revision == null) { sb.append("null"); } else { sb.append(this.revision); } first = false; if (!first) sb.append(", "); sb.append("query:"); if (this.query == null) { sb.append("null"); } else { sb.append(this.query); } 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 (revision != null) { revision.validate(); } if (query != null) { query.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 getFile_argsStandardSchemeFactory implements SchemeFactory { public getFile_argsStandardScheme getScheme() { return new getFile_argsStandardScheme(); } } private static class getFile_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getFile_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // QUERY if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.query = new Query(); struct.query.read(iprot); struct.setQueryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getFile_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } if (struct.revision != null) { oprot.writeFieldBegin(REVISION_FIELD_DESC); struct.revision.write(oprot); oprot.writeFieldEnd(); } if (struct.query != null) { oprot.writeFieldBegin(QUERY_FIELD_DESC); struct.query.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getFile_argsTupleSchemeFactory implements SchemeFactory { public getFile_argsTupleScheme getScheme() { return new getFile_argsTupleScheme(); } } private static class getFile_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getFile_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } if (struct.isSetRevision()) { optionals.set(2); } if (struct.isSetQuery()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } if (struct.isSetRevision()) { struct.revision.write(oprot); } if (struct.isSetQuery()) { struct.query.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getFile_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } if (incoming.get(2)) { struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); } if (incoming.get(3)) { struct.query = new Query(); struct.query.read(iprot); struct.setQueryIsSet(true); } } } } public static class getFile_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFile_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 E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getFile_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getFile_resultTupleSchemeFactory()); } public GetFileResult success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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, GetFileResult.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(getFile_result.class, metaDataMap); } public getFile_result() { } public getFile_result( GetFileResult success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public getFile_result(getFile_result other) { if (other.isSetSuccess()) { this.success = new GetFileResult(other.success); } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public getFile_result deepCopy() { return new getFile_result(this); } @Override public void clear() { this.success = null; this.e = null; } public GetFileResult getSuccess() { return this.success; } public getFile_result setSuccess(GetFileResult success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public getFile_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((GetFileResult)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getFile_result) return this.equals((getFile_result)that); return false; } public boolean equals(getFile_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(getFile_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("getFile_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 getFile_resultStandardSchemeFactory implements SchemeFactory { public getFile_resultStandardScheme getScheme() { return new getFile_resultStandardScheme(); } } private static class getFile_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getFile_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 GetFileResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getFile_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.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getFile_resultTupleSchemeFactory implements SchemeFactory { public getFile_resultTupleScheme getScheme() { return new getFile_resultTupleScheme(); } } private static class getFile_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getFile_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getFile_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new GetFileResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class diffFile_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("diffFile_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField FROM_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("from", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField TO_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("to", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffFile_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffFile_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // required public Revision from; // required public Revision to; // required public Query query; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"), FROM_REVISION((short)3, "from"), TO_REVISION((short)4, "to"), QUERY((short)5, "query"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_NAME; case 3: // FROM_REVISION return FROM_REVISION; case 4: // TO_REVISION return TO_REVISION; case 5: // QUERY return QUERY; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.FROM_REVISION, new org.apache.thrift.meta_data.FieldMetaData("from", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); tmpMap.put(_Fields.TO_REVISION, new org.apache.thrift.meta_data.FieldMetaData("to", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Query.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(diffFile_args.class, metaDataMap); } public diffFile_args() { } public diffFile_args( String projectName, String repositoryName, Revision from, Revision to, Query query) { this(); this.projectName = projectName; this.repositoryName = repositoryName; this.from = from; this.to = to; this.query = query; } /** * Performs a deep copy on other. */ public diffFile_args(diffFile_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetFromRevision()) { this.from = new Revision(other.from); } if (other.isSetToRevision()) { this.to = new Revision(other.to); } if (other.isSetQuery()) { this.query = new Query(other.query); } } public diffFile_args deepCopy() { return new diffFile_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; this.from = null; this.to = null; this.query = null; } public String getProjectName() { return this.projectName; } public diffFile_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public diffFile_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public Revision getFromRevision() { return this.from; } public diffFile_args setFromRevision(Revision from) { this.from = from; return this; } public void unsetFromRevision() { this.from = null; } /** Returns true if field from is set (has been assigned a value) and false otherwise */ public boolean isSetFromRevision() { return this.from != null; } public void setFromRevisionIsSet(boolean value) { if (!value) { this.from = null; } } public Revision getToRevision() { return this.to; } public diffFile_args setToRevision(Revision to) { this.to = to; return this; } public void unsetToRevision() { this.to = null; } /** Returns true if field to is set (has been assigned a value) and false otherwise */ public boolean isSetToRevision() { return this.to != null; } public void setToRevisionIsSet(boolean value) { if (!value) { this.to = null; } } public Query getQuery() { return this.query; } public diffFile_args setQuery(Query query) { this.query = query; return this; } public void unsetQuery() { this.query = null; } /** Returns true if field query is set (has been assigned a value) and false otherwise */ public boolean isSetQuery() { return this.query != null; } public void setQueryIsSet(boolean value) { if (!value) { this.query = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; case FROM_REVISION: if (value == null) { unsetFromRevision(); } else { setFromRevision((Revision)value); } break; case TO_REVISION: if (value == null) { unsetToRevision(); } else { setToRevision((Revision)value); } break; case QUERY: if (value == null) { unsetQuery(); } else { setQuery((Query)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); case FROM_REVISION: return getFromRevision(); case TO_REVISION: return getToRevision(); case QUERY: return getQuery(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); case FROM_REVISION: return isSetFromRevision(); case TO_REVISION: return isSetToRevision(); case QUERY: return isSetQuery(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffFile_args) return this.equals((diffFile_args)that); return false; } public boolean equals(diffFile_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } boolean this_present_from = true && this.isSetFromRevision(); boolean that_present_from = true && that.isSetFromRevision(); if (this_present_from || that_present_from) { if (!(this_present_from && that_present_from)) return false; if (!this.from.equals(that.from)) return false; } boolean this_present_to = true && this.isSetToRevision(); boolean that_present_to = true && that.isSetToRevision(); if (this_present_to || that_present_to) { if (!(this_present_to && that_present_to)) return false; if (!this.to.equals(that.to)) return false; } boolean this_present_query = true && this.isSetQuery(); boolean that_present_query = true && that.isSetQuery(); if (this_present_query || that_present_query) { if (!(this_present_query && that_present_query)) return false; if (!this.query.equals(that.query)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); boolean present_from = true && (isSetFromRevision()); list.add(present_from); if (present_from) list.add(from); boolean present_to = true && (isSetToRevision()); list.add(present_to); if (present_to) list.add(to); boolean present_query = true && (isSetQuery()); list.add(present_query); if (present_query) list.add(query); return list.hashCode(); } @Override public int compareTo(diffFile_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetFromRevision()).compareTo(other.isSetFromRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetFromRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from, other.from); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetToRevision()).compareTo(other.isSetToRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetToRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to, other.to); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery()); if (lastComparison != 0) { return lastComparison; } if (isSetQuery()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query); 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("diffFile_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } first = false; if (!first) sb.append(", "); sb.append("from:"); if (this.from == null) { sb.append("null"); } else { sb.append(this.from); } first = false; if (!first) sb.append(", "); sb.append("to:"); if (this.to == null) { sb.append("null"); } else { sb.append(this.to); } first = false; if (!first) sb.append(", "); sb.append("query:"); if (this.query == null) { sb.append("null"); } else { sb.append(this.query); } 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 (from != null) { from.validate(); } if (to != null) { to.validate(); } if (query != null) { query.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 diffFile_argsStandardSchemeFactory implements SchemeFactory { public diffFile_argsStandardScheme getScheme() { return new diffFile_argsStandardScheme(); } } private static class diffFile_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffFile_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // FROM_REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.from = new Revision(); struct.from.read(iprot); struct.setFromRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TO_REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.to = new Revision(); struct.to.read(iprot); struct.setToRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // QUERY if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.query = new Query(); struct.query.read(iprot); struct.setQueryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffFile_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } if (struct.from != null) { oprot.writeFieldBegin(FROM_REVISION_FIELD_DESC); struct.from.write(oprot); oprot.writeFieldEnd(); } if (struct.to != null) { oprot.writeFieldBegin(TO_REVISION_FIELD_DESC); struct.to.write(oprot); oprot.writeFieldEnd(); } if (struct.query != null) { oprot.writeFieldBegin(QUERY_FIELD_DESC); struct.query.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffFile_argsTupleSchemeFactory implements SchemeFactory { public diffFile_argsTupleScheme getScheme() { return new diffFile_argsTupleScheme(); } } private static class diffFile_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffFile_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } if (struct.isSetFromRevision()) { optionals.set(2); } if (struct.isSetToRevision()) { optionals.set(3); } if (struct.isSetQuery()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } if (struct.isSetFromRevision()) { struct.from.write(oprot); } if (struct.isSetToRevision()) { struct.to.write(oprot); } if (struct.isSetQuery()) { struct.query.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffFile_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } if (incoming.get(2)) { struct.from = new Revision(); struct.from.read(iprot); struct.setFromRevisionIsSet(true); } if (incoming.get(3)) { struct.to = new Revision(); struct.to.read(iprot); struct.setToRevisionIsSet(true); } if (incoming.get(4)) { struct.query = new Query(); struct.query.read(iprot); struct.setQueryIsSet(true); } } } } public static class diffFile_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("diffFile_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 E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new diffFile_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new diffFile_resultTupleSchemeFactory()); } public DiffFileResult success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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, DiffFileResult.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(diffFile_result.class, metaDataMap); } public diffFile_result() { } public diffFile_result( DiffFileResult success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public diffFile_result(diffFile_result other) { if (other.isSetSuccess()) { this.success = new DiffFileResult(other.success); } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public diffFile_result deepCopy() { return new diffFile_result(this); } @Override public void clear() { this.success = null; this.e = null; } public DiffFileResult getSuccess() { return this.success; } public diffFile_result setSuccess(DiffFileResult success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public diffFile_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((DiffFileResult)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof diffFile_result) return this.equals((diffFile_result)that); return false; } public boolean equals(diffFile_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(diffFile_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("diffFile_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 diffFile_resultStandardSchemeFactory implements SchemeFactory { public diffFile_resultStandardScheme getScheme() { return new diffFile_resultStandardScheme(); } } private static class diffFile_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, diffFile_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 DiffFileResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, diffFile_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.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class diffFile_resultTupleSchemeFactory implements SchemeFactory { public diffFile_resultTupleScheme getScheme() { return new diffFile_resultTupleScheme(); } } private static class diffFile_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, diffFile_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, diffFile_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new DiffFileResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class mergeFiles_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mergeFiles_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField MERGE_QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("mergeQuery", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new mergeFiles_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new mergeFiles_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // required public Revision revision; // required public MergeQuery mergeQuery; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"), REVISION((short)3, "revision"), MERGE_QUERY((short)4, "mergeQuery"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_NAME; case 3: // REVISION return REVISION; case 4: // MERGE_QUERY return MERGE_QUERY; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); tmpMap.put(_Fields.MERGE_QUERY, new org.apache.thrift.meta_data.FieldMetaData("mergeQuery", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MergeQuery.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mergeFiles_args.class, metaDataMap); } public mergeFiles_args() { } public mergeFiles_args( String projectName, String repositoryName, Revision revision, MergeQuery mergeQuery) { this(); this.projectName = projectName; this.repositoryName = repositoryName; this.revision = revision; this.mergeQuery = mergeQuery; } /** * Performs a deep copy on other. */ public mergeFiles_args(mergeFiles_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetRevision()) { this.revision = new Revision(other.revision); } if (other.isSetMergeQuery()) { this.mergeQuery = new MergeQuery(other.mergeQuery); } } public mergeFiles_args deepCopy() { return new mergeFiles_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; this.revision = null; this.mergeQuery = null; } public String getProjectName() { return this.projectName; } public mergeFiles_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public mergeFiles_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public Revision getRevision() { return this.revision; } public mergeFiles_args setRevision(Revision revision) { this.revision = revision; return this; } public void unsetRevision() { this.revision = null; } /** Returns true if field revision is set (has been assigned a value) and false otherwise */ public boolean isSetRevision() { return this.revision != null; } public void setRevisionIsSet(boolean value) { if (!value) { this.revision = null; } } public MergeQuery getMergeQuery() { return this.mergeQuery; } public mergeFiles_args setMergeQuery(MergeQuery mergeQuery) { this.mergeQuery = mergeQuery; return this; } public void unsetMergeQuery() { this.mergeQuery = null; } /** Returns true if field mergeQuery is set (has been assigned a value) and false otherwise */ public boolean isSetMergeQuery() { return this.mergeQuery != null; } public void setMergeQueryIsSet(boolean value) { if (!value) { this.mergeQuery = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; case REVISION: if (value == null) { unsetRevision(); } else { setRevision((Revision)value); } break; case MERGE_QUERY: if (value == null) { unsetMergeQuery(); } else { setMergeQuery((MergeQuery)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); case REVISION: return getRevision(); case MERGE_QUERY: return getMergeQuery(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); case REVISION: return isSetRevision(); case MERGE_QUERY: return isSetMergeQuery(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof mergeFiles_args) return this.equals((mergeFiles_args)that); return false; } public boolean equals(mergeFiles_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } boolean this_present_revision = true && this.isSetRevision(); boolean that_present_revision = true && that.isSetRevision(); if (this_present_revision || that_present_revision) { if (!(this_present_revision && that_present_revision)) return false; if (!this.revision.equals(that.revision)) return false; } boolean this_present_mergeQuery = true && this.isSetMergeQuery(); boolean that_present_mergeQuery = true && that.isSetMergeQuery(); if (this_present_mergeQuery || that_present_mergeQuery) { if (!(this_present_mergeQuery && that_present_mergeQuery)) return false; if (!this.mergeQuery.equals(that.mergeQuery)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); boolean present_revision = true && (isSetRevision()); list.add(present_revision); if (present_revision) list.add(revision); boolean present_mergeQuery = true && (isSetMergeQuery()); list.add(present_mergeQuery); if (present_mergeQuery) list.add(mergeQuery); return list.hashCode(); } @Override public int compareTo(mergeFiles_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetMergeQuery()).compareTo(other.isSetMergeQuery()); if (lastComparison != 0) { return lastComparison; } if (isSetMergeQuery()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mergeQuery, other.mergeQuery); 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("mergeFiles_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } first = false; if (!first) sb.append(", "); sb.append("revision:"); if (this.revision == null) { sb.append("null"); } else { sb.append(this.revision); } first = false; if (!first) sb.append(", "); sb.append("mergeQuery:"); if (this.mergeQuery == null) { sb.append("null"); } else { sb.append(this.mergeQuery); } 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 (revision != null) { revision.validate(); } if (mergeQuery != null) { mergeQuery.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 mergeFiles_argsStandardSchemeFactory implements SchemeFactory { public mergeFiles_argsStandardScheme getScheme() { return new mergeFiles_argsStandardScheme(); } } private static class mergeFiles_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, mergeFiles_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // MERGE_QUERY if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.mergeQuery = new MergeQuery(); struct.mergeQuery.read(iprot); struct.setMergeQueryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, mergeFiles_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } if (struct.revision != null) { oprot.writeFieldBegin(REVISION_FIELD_DESC); struct.revision.write(oprot); oprot.writeFieldEnd(); } if (struct.mergeQuery != null) { oprot.writeFieldBegin(MERGE_QUERY_FIELD_DESC); struct.mergeQuery.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class mergeFiles_argsTupleSchemeFactory implements SchemeFactory { public mergeFiles_argsTupleScheme getScheme() { return new mergeFiles_argsTupleScheme(); } } private static class mergeFiles_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, mergeFiles_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } if (struct.isSetRevision()) { optionals.set(2); } if (struct.isSetMergeQuery()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } if (struct.isSetRevision()) { struct.revision.write(oprot); } if (struct.isSetMergeQuery()) { struct.mergeQuery.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, mergeFiles_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } if (incoming.get(2)) { struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); } if (incoming.get(3)) { struct.mergeQuery = new MergeQuery(); struct.mergeQuery.read(iprot); struct.setMergeQueryIsSet(true); } } } } public static class mergeFiles_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mergeFiles_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 E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new mergeFiles_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new mergeFiles_resultTupleSchemeFactory()); } public MergedEntry success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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, MergedEntry.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(mergeFiles_result.class, metaDataMap); } public mergeFiles_result() { } public mergeFiles_result( MergedEntry success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public mergeFiles_result(mergeFiles_result other) { if (other.isSetSuccess()) { this.success = new MergedEntry(other.success); } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public mergeFiles_result deepCopy() { return new mergeFiles_result(this); } @Override public void clear() { this.success = null; this.e = null; } public MergedEntry getSuccess() { return this.success; } public mergeFiles_result setSuccess(MergedEntry success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public mergeFiles_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((MergedEntry)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof mergeFiles_result) return this.equals((mergeFiles_result)that); return false; } public boolean equals(mergeFiles_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(mergeFiles_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("mergeFiles_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 mergeFiles_resultStandardSchemeFactory implements SchemeFactory { public mergeFiles_resultStandardScheme getScheme() { return new mergeFiles_resultStandardScheme(); } } private static class mergeFiles_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, mergeFiles_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 MergedEntry(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, mergeFiles_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.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class mergeFiles_resultTupleSchemeFactory implements SchemeFactory { public mergeFiles_resultTupleScheme getScheme() { return new mergeFiles_resultTupleScheme(); } } private static class mergeFiles_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, mergeFiles_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, mergeFiles_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new MergedEntry(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class watchRepository_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("watchRepository_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField LAST_KNOWN_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("lastKnownRevision", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField PATH_PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pathPattern", org.apache.thrift.protocol.TType.STRING, (short)4); private static final org.apache.thrift.protocol.TField TIMEOUT_MILLIS_FIELD_DESC = new org.apache.thrift.protocol.TField("timeoutMillis", org.apache.thrift.protocol.TType.I64, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new watchRepository_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new watchRepository_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // required public Revision lastKnownRevision; // required public String pathPattern; // required public long timeoutMillis; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"), LAST_KNOWN_REVISION((short)3, "lastKnownRevision"), PATH_PATTERN((short)4, "pathPattern"), TIMEOUT_MILLIS((short)5, "timeoutMillis"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_NAME; case 3: // LAST_KNOWN_REVISION return LAST_KNOWN_REVISION; case 4: // PATH_PATTERN return PATH_PATTERN; case 5: // TIMEOUT_MILLIS return TIMEOUT_MILLIS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMEOUTMILLIS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.LAST_KNOWN_REVISION, new org.apache.thrift.meta_data.FieldMetaData("lastKnownRevision", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); tmpMap.put(_Fields.PATH_PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pathPattern", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TIMEOUT_MILLIS, new org.apache.thrift.meta_data.FieldMetaData("timeoutMillis", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(watchRepository_args.class, metaDataMap); } public watchRepository_args() { } public watchRepository_args( String projectName, String repositoryName, Revision lastKnownRevision, String pathPattern, long timeoutMillis) { this(); this.projectName = projectName; this.repositoryName = repositoryName; this.lastKnownRevision = lastKnownRevision; this.pathPattern = pathPattern; this.timeoutMillis = timeoutMillis; setTimeoutMillisIsSet(true); } /** * Performs a deep copy on other. */ public watchRepository_args(watchRepository_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetLastKnownRevision()) { this.lastKnownRevision = new Revision(other.lastKnownRevision); } if (other.isSetPathPattern()) { this.pathPattern = other.pathPattern; } this.timeoutMillis = other.timeoutMillis; } public watchRepository_args deepCopy() { return new watchRepository_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; this.lastKnownRevision = null; this.pathPattern = null; setTimeoutMillisIsSet(false); this.timeoutMillis = 0; } public String getProjectName() { return this.projectName; } public watchRepository_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public watchRepository_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public Revision getLastKnownRevision() { return this.lastKnownRevision; } public watchRepository_args setLastKnownRevision(Revision lastKnownRevision) { this.lastKnownRevision = lastKnownRevision; return this; } public void unsetLastKnownRevision() { this.lastKnownRevision = null; } /** Returns true if field lastKnownRevision is set (has been assigned a value) and false otherwise */ public boolean isSetLastKnownRevision() { return this.lastKnownRevision != null; } public void setLastKnownRevisionIsSet(boolean value) { if (!value) { this.lastKnownRevision = null; } } public String getPathPattern() { return this.pathPattern; } public watchRepository_args setPathPattern(String pathPattern) { this.pathPattern = pathPattern; return this; } public void unsetPathPattern() { this.pathPattern = null; } /** Returns true if field pathPattern is set (has been assigned a value) and false otherwise */ public boolean isSetPathPattern() { return this.pathPattern != null; } public void setPathPatternIsSet(boolean value) { if (!value) { this.pathPattern = null; } } public long getTimeoutMillis() { return this.timeoutMillis; } public watchRepository_args setTimeoutMillis(long timeoutMillis) { this.timeoutMillis = timeoutMillis; setTimeoutMillisIsSet(true); return this; } public void unsetTimeoutMillis() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID); } /** Returns true if field timeoutMillis is set (has been assigned a value) and false otherwise */ public boolean isSetTimeoutMillis() { return EncodingUtils.testBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID); } public void setTimeoutMillisIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; case LAST_KNOWN_REVISION: if (value == null) { unsetLastKnownRevision(); } else { setLastKnownRevision((Revision)value); } break; case PATH_PATTERN: if (value == null) { unsetPathPattern(); } else { setPathPattern((String)value); } break; case TIMEOUT_MILLIS: if (value == null) { unsetTimeoutMillis(); } else { setTimeoutMillis((Long)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); case LAST_KNOWN_REVISION: return getLastKnownRevision(); case PATH_PATTERN: return getPathPattern(); case TIMEOUT_MILLIS: return getTimeoutMillis(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); case LAST_KNOWN_REVISION: return isSetLastKnownRevision(); case PATH_PATTERN: return isSetPathPattern(); case TIMEOUT_MILLIS: return isSetTimeoutMillis(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof watchRepository_args) return this.equals((watchRepository_args)that); return false; } public boolean equals(watchRepository_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } boolean this_present_lastKnownRevision = true && this.isSetLastKnownRevision(); boolean that_present_lastKnownRevision = true && that.isSetLastKnownRevision(); if (this_present_lastKnownRevision || that_present_lastKnownRevision) { if (!(this_present_lastKnownRevision && that_present_lastKnownRevision)) return false; if (!this.lastKnownRevision.equals(that.lastKnownRevision)) return false; } boolean this_present_pathPattern = true && this.isSetPathPattern(); boolean that_present_pathPattern = true && that.isSetPathPattern(); if (this_present_pathPattern || that_present_pathPattern) { if (!(this_present_pathPattern && that_present_pathPattern)) return false; if (!this.pathPattern.equals(that.pathPattern)) return false; } boolean this_present_timeoutMillis = true; boolean that_present_timeoutMillis = true; if (this_present_timeoutMillis || that_present_timeoutMillis) { if (!(this_present_timeoutMillis && that_present_timeoutMillis)) return false; if (this.timeoutMillis != that.timeoutMillis) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); boolean present_lastKnownRevision = true && (isSetLastKnownRevision()); list.add(present_lastKnownRevision); if (present_lastKnownRevision) list.add(lastKnownRevision); boolean present_pathPattern = true && (isSetPathPattern()); list.add(present_pathPattern); if (present_pathPattern) list.add(pathPattern); boolean present_timeoutMillis = true; list.add(present_timeoutMillis); if (present_timeoutMillis) list.add(timeoutMillis); return list.hashCode(); } @Override public int compareTo(watchRepository_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetLastKnownRevision()).compareTo(other.isSetLastKnownRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetLastKnownRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastKnownRevision, other.lastKnownRevision); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPathPattern()).compareTo(other.isSetPathPattern()); if (lastComparison != 0) { return lastComparison; } if (isSetPathPattern()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathPattern, other.pathPattern); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimeoutMillis()).compareTo(other.isSetTimeoutMillis()); if (lastComparison != 0) { return lastComparison; } if (isSetTimeoutMillis()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timeoutMillis, other.timeoutMillis); 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("watchRepository_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } first = false; if (!first) sb.append(", "); sb.append("lastKnownRevision:"); if (this.lastKnownRevision == null) { sb.append("null"); } else { sb.append(this.lastKnownRevision); } first = false; if (!first) sb.append(", "); sb.append("pathPattern:"); if (this.pathPattern == null) { sb.append("null"); } else { sb.append(this.pathPattern); } first = false; if (!first) sb.append(", "); sb.append("timeoutMillis:"); sb.append(this.timeoutMillis); 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 (lastKnownRevision != null) { lastKnownRevision.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 { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class watchRepository_argsStandardSchemeFactory implements SchemeFactory { public watchRepository_argsStandardScheme getScheme() { return new watchRepository_argsStandardScheme(); } } private static class watchRepository_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, watchRepository_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // LAST_KNOWN_REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.lastKnownRevision = new Revision(); struct.lastKnownRevision.read(iprot); struct.setLastKnownRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // PATH_PATTERN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.pathPattern = iprot.readString(); struct.setPathPatternIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TIMEOUT_MILLIS if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timeoutMillis = iprot.readI64(); struct.setTimeoutMillisIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, watchRepository_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } if (struct.lastKnownRevision != null) { oprot.writeFieldBegin(LAST_KNOWN_REVISION_FIELD_DESC); struct.lastKnownRevision.write(oprot); oprot.writeFieldEnd(); } if (struct.pathPattern != null) { oprot.writeFieldBegin(PATH_PATTERN_FIELD_DESC); oprot.writeString(struct.pathPattern); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMEOUT_MILLIS_FIELD_DESC); oprot.writeI64(struct.timeoutMillis); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class watchRepository_argsTupleSchemeFactory implements SchemeFactory { public watchRepository_argsTupleScheme getScheme() { return new watchRepository_argsTupleScheme(); } } private static class watchRepository_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, watchRepository_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } if (struct.isSetLastKnownRevision()) { optionals.set(2); } if (struct.isSetPathPattern()) { optionals.set(3); } if (struct.isSetTimeoutMillis()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } if (struct.isSetLastKnownRevision()) { struct.lastKnownRevision.write(oprot); } if (struct.isSetPathPattern()) { oprot.writeString(struct.pathPattern); } if (struct.isSetTimeoutMillis()) { oprot.writeI64(struct.timeoutMillis); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, watchRepository_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } if (incoming.get(2)) { struct.lastKnownRevision = new Revision(); struct.lastKnownRevision.read(iprot); struct.setLastKnownRevisionIsSet(true); } if (incoming.get(3)) { struct.pathPattern = iprot.readString(); struct.setPathPatternIsSet(true); } if (incoming.get(4)) { struct.timeoutMillis = iprot.readI64(); struct.setTimeoutMillisIsSet(true); } } } } public static class watchRepository_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("watchRepository_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 E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new watchRepository_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new watchRepository_resultTupleSchemeFactory()); } public WatchRepositoryResult success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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, WatchRepositoryResult.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(watchRepository_result.class, metaDataMap); } public watchRepository_result() { } public watchRepository_result( WatchRepositoryResult success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public watchRepository_result(watchRepository_result other) { if (other.isSetSuccess()) { this.success = new WatchRepositoryResult(other.success); } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public watchRepository_result deepCopy() { return new watchRepository_result(this); } @Override public void clear() { this.success = null; this.e = null; } public WatchRepositoryResult getSuccess() { return this.success; } public watchRepository_result setSuccess(WatchRepositoryResult success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public watchRepository_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((WatchRepositoryResult)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof watchRepository_result) return this.equals((watchRepository_result)that); return false; } public boolean equals(watchRepository_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(watchRepository_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("watchRepository_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 watchRepository_resultStandardSchemeFactory implements SchemeFactory { public watchRepository_resultStandardScheme getScheme() { return new watchRepository_resultStandardScheme(); } } private static class watchRepository_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, watchRepository_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 WatchRepositoryResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, watchRepository_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.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class watchRepository_resultTupleSchemeFactory implements SchemeFactory { public watchRepository_resultTupleScheme getScheme() { return new watchRepository_resultTupleScheme(); } } private static class watchRepository_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, watchRepository_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, watchRepository_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new WatchRepositoryResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class watchFile_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("watchFile_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField LAST_KNOWN_REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("lastKnownRevision", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final org.apache.thrift.protocol.TField TIMEOUT_MILLIS_FIELD_DESC = new org.apache.thrift.protocol.TField("timeoutMillis", org.apache.thrift.protocol.TType.I64, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new watchFile_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new watchFile_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // required public Revision lastKnownRevision; // required public Query query; // required public long timeoutMillis; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"), LAST_KNOWN_REVISION((short)3, "lastKnownRevision"), QUERY((short)4, "query"), TIMEOUT_MILLIS((short)5, "timeoutMillis"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_NAME; case 3: // LAST_KNOWN_REVISION return LAST_KNOWN_REVISION; case 4: // QUERY return QUERY; case 5: // TIMEOUT_MILLIS return TIMEOUT_MILLIS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments private static final int __TIMEOUTMILLIS_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.LAST_KNOWN_REVISION, new org.apache.thrift.meta_data.FieldMetaData("lastKnownRevision", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); tmpMap.put(_Fields.QUERY, new org.apache.thrift.meta_data.FieldMetaData("query", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Query.class))); tmpMap.put(_Fields.TIMEOUT_MILLIS, new org.apache.thrift.meta_data.FieldMetaData("timeoutMillis", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(watchFile_args.class, metaDataMap); } public watchFile_args() { } public watchFile_args( String projectName, String repositoryName, Revision lastKnownRevision, Query query, long timeoutMillis) { this(); this.projectName = projectName; this.repositoryName = repositoryName; this.lastKnownRevision = lastKnownRevision; this.query = query; this.timeoutMillis = timeoutMillis; setTimeoutMillisIsSet(true); } /** * Performs a deep copy on other. */ public watchFile_args(watchFile_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetLastKnownRevision()) { this.lastKnownRevision = new Revision(other.lastKnownRevision); } if (other.isSetQuery()) { this.query = new Query(other.query); } this.timeoutMillis = other.timeoutMillis; } public watchFile_args deepCopy() { return new watchFile_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; this.lastKnownRevision = null; this.query = null; setTimeoutMillisIsSet(false); this.timeoutMillis = 0; } public String getProjectName() { return this.projectName; } public watchFile_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public watchFile_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public Revision getLastKnownRevision() { return this.lastKnownRevision; } public watchFile_args setLastKnownRevision(Revision lastKnownRevision) { this.lastKnownRevision = lastKnownRevision; return this; } public void unsetLastKnownRevision() { this.lastKnownRevision = null; } /** Returns true if field lastKnownRevision is set (has been assigned a value) and false otherwise */ public boolean isSetLastKnownRevision() { return this.lastKnownRevision != null; } public void setLastKnownRevisionIsSet(boolean value) { if (!value) { this.lastKnownRevision = null; } } public Query getQuery() { return this.query; } public watchFile_args setQuery(Query query) { this.query = query; return this; } public void unsetQuery() { this.query = null; } /** Returns true if field query is set (has been assigned a value) and false otherwise */ public boolean isSetQuery() { return this.query != null; } public void setQueryIsSet(boolean value) { if (!value) { this.query = null; } } public long getTimeoutMillis() { return this.timeoutMillis; } public watchFile_args setTimeoutMillis(long timeoutMillis) { this.timeoutMillis = timeoutMillis; setTimeoutMillisIsSet(true); return this; } public void unsetTimeoutMillis() { __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID); } /** Returns true if field timeoutMillis is set (has been assigned a value) and false otherwise */ public boolean isSetTimeoutMillis() { return EncodingUtils.testBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID); } public void setTimeoutMillisIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMEOUTMILLIS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; case LAST_KNOWN_REVISION: if (value == null) { unsetLastKnownRevision(); } else { setLastKnownRevision((Revision)value); } break; case QUERY: if (value == null) { unsetQuery(); } else { setQuery((Query)value); } break; case TIMEOUT_MILLIS: if (value == null) { unsetTimeoutMillis(); } else { setTimeoutMillis((Long)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); case LAST_KNOWN_REVISION: return getLastKnownRevision(); case QUERY: return getQuery(); case TIMEOUT_MILLIS: return getTimeoutMillis(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); case LAST_KNOWN_REVISION: return isSetLastKnownRevision(); case QUERY: return isSetQuery(); case TIMEOUT_MILLIS: return isSetTimeoutMillis(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof watchFile_args) return this.equals((watchFile_args)that); return false; } public boolean equals(watchFile_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } boolean this_present_lastKnownRevision = true && this.isSetLastKnownRevision(); boolean that_present_lastKnownRevision = true && that.isSetLastKnownRevision(); if (this_present_lastKnownRevision || that_present_lastKnownRevision) { if (!(this_present_lastKnownRevision && that_present_lastKnownRevision)) return false; if (!this.lastKnownRevision.equals(that.lastKnownRevision)) return false; } boolean this_present_query = true && this.isSetQuery(); boolean that_present_query = true && that.isSetQuery(); if (this_present_query || that_present_query) { if (!(this_present_query && that_present_query)) return false; if (!this.query.equals(that.query)) return false; } boolean this_present_timeoutMillis = true; boolean that_present_timeoutMillis = true; if (this_present_timeoutMillis || that_present_timeoutMillis) { if (!(this_present_timeoutMillis && that_present_timeoutMillis)) return false; if (this.timeoutMillis != that.timeoutMillis) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); boolean present_lastKnownRevision = true && (isSetLastKnownRevision()); list.add(present_lastKnownRevision); if (present_lastKnownRevision) list.add(lastKnownRevision); boolean present_query = true && (isSetQuery()); list.add(present_query); if (present_query) list.add(query); boolean present_timeoutMillis = true; list.add(present_timeoutMillis); if (present_timeoutMillis) list.add(timeoutMillis); return list.hashCode(); } @Override public int compareTo(watchFile_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetLastKnownRevision()).compareTo(other.isSetLastKnownRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetLastKnownRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastKnownRevision, other.lastKnownRevision); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery()); if (lastComparison != 0) { return lastComparison; } if (isSetQuery()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTimeoutMillis()).compareTo(other.isSetTimeoutMillis()); if (lastComparison != 0) { return lastComparison; } if (isSetTimeoutMillis()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timeoutMillis, other.timeoutMillis); 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("watchFile_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } first = false; if (!first) sb.append(", "); sb.append("lastKnownRevision:"); if (this.lastKnownRevision == null) { sb.append("null"); } else { sb.append(this.lastKnownRevision); } first = false; if (!first) sb.append(", "); sb.append("query:"); if (this.query == null) { sb.append("null"); } else { sb.append(this.query); } first = false; if (!first) sb.append(", "); sb.append("timeoutMillis:"); sb.append(this.timeoutMillis); 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 (lastKnownRevision != null) { lastKnownRevision.validate(); } if (query != null) { query.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 { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class watchFile_argsStandardSchemeFactory implements SchemeFactory { public watchFile_argsStandardScheme getScheme() { return new watchFile_argsStandardScheme(); } } private static class watchFile_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, watchFile_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // LAST_KNOWN_REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.lastKnownRevision = new Revision(); struct.lastKnownRevision.read(iprot); struct.setLastKnownRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // QUERY if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.query = new Query(); struct.query.read(iprot); struct.setQueryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // TIMEOUT_MILLIS if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timeoutMillis = iprot.readI64(); struct.setTimeoutMillisIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, watchFile_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } if (struct.lastKnownRevision != null) { oprot.writeFieldBegin(LAST_KNOWN_REVISION_FIELD_DESC); struct.lastKnownRevision.write(oprot); oprot.writeFieldEnd(); } if (struct.query != null) { oprot.writeFieldBegin(QUERY_FIELD_DESC); struct.query.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMEOUT_MILLIS_FIELD_DESC); oprot.writeI64(struct.timeoutMillis); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class watchFile_argsTupleSchemeFactory implements SchemeFactory { public watchFile_argsTupleScheme getScheme() { return new watchFile_argsTupleScheme(); } } private static class watchFile_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, watchFile_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } if (struct.isSetLastKnownRevision()) { optionals.set(2); } if (struct.isSetQuery()) { optionals.set(3); } if (struct.isSetTimeoutMillis()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } if (struct.isSetLastKnownRevision()) { struct.lastKnownRevision.write(oprot); } if (struct.isSetQuery()) { struct.query.write(oprot); } if (struct.isSetTimeoutMillis()) { oprot.writeI64(struct.timeoutMillis); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, watchFile_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } if (incoming.get(2)) { struct.lastKnownRevision = new Revision(); struct.lastKnownRevision.read(iprot); struct.setLastKnownRevisionIsSet(true); } if (incoming.get(3)) { struct.query = new Query(); struct.query.read(iprot); struct.setQueryIsSet(true); } if (incoming.get(4)) { struct.timeoutMillis = iprot.readI64(); struct.setTimeoutMillisIsSet(true); } } } } public static class watchFile_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("watchFile_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 E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new watchFile_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new watchFile_resultTupleSchemeFactory()); } public WatchFileResult success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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, WatchFileResult.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(watchFile_result.class, metaDataMap); } public watchFile_result() { } public watchFile_result( WatchFileResult success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public watchFile_result(watchFile_result other) { if (other.isSetSuccess()) { this.success = new WatchFileResult(other.success); } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public watchFile_result deepCopy() { return new watchFile_result(this); } @Override public void clear() { this.success = null; this.e = null; } public WatchFileResult getSuccess() { return this.success; } public watchFile_result setSuccess(WatchFileResult success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public watchFile_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((WatchFileResult)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof watchFile_result) return this.equals((watchFile_result)that); return false; } public boolean equals(watchFile_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(watchFile_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("watchFile_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 watchFile_resultStandardSchemeFactory implements SchemeFactory { public watchFile_resultStandardScheme getScheme() { return new watchFile_resultStandardScheme(); } } private static class watchFile_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, watchFile_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 WatchFileResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, watchFile_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.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class watchFile_resultTupleSchemeFactory implements SchemeFactory { public watchFile_resultTupleScheme getScheme() { return new watchFile_resultTupleScheme(); } } private static class watchFile_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, watchFile_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, watchFile_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new WatchFileResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class getSchema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSchema_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getSchema_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getSchema_argsTupleSchemeFactory()); } public String projectName; // 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 { PROJECT_NAME((short)1, "projectName"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", 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(getSchema_args.class, metaDataMap); } public getSchema_args() { } public getSchema_args( String projectName) { this(); this.projectName = projectName; } /** * Performs a deep copy on other. */ public getSchema_args(getSchema_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } } public getSchema_args deepCopy() { return new getSchema_args(this); } @Override public void clear() { this.projectName = null; } public String getProjectName() { return this.projectName; } public getSchema_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); } 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 PROJECT_NAME: return isSetProjectName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getSchema_args) return this.equals((getSchema_args)that); return false; } public boolean equals(getSchema_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); return list.hashCode(); } @Override public int compareTo(getSchema_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); 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("getSchema_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } 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 getSchema_argsStandardSchemeFactory implements SchemeFactory { public getSchema_argsStandardScheme getScheme() { return new getSchema_argsStandardScheme(); } } private static class getSchema_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getSchema_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getSchema_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getSchema_argsTupleSchemeFactory implements SchemeFactory { public getSchema_argsTupleScheme getScheme() { return new getSchema_argsTupleScheme(); } } private static class getSchema_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getSchema_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getSchema_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } } } } public static class getSchema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSchema_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 E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getSchema_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getSchema_resultTupleSchemeFactory()); } public Schema success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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, Schema.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(getSchema_result.class, metaDataMap); } public getSchema_result() { } public getSchema_result( Schema success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public getSchema_result(getSchema_result other) { if (other.isSetSuccess()) { this.success = new Schema(other.success); } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public getSchema_result deepCopy() { return new getSchema_result(this); } @Override public void clear() { this.success = null; this.e = null; } public Schema getSuccess() { return this.success; } public getSchema_result setSuccess(Schema success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public getSchema_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Schema)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getSchema_result) return this.equals((getSchema_result)that); return false; } public boolean equals(getSchema_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(getSchema_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("getSchema_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 getSchema_resultStandardSchemeFactory implements SchemeFactory { public getSchema_resultStandardScheme getScheme() { return new getSchema_resultStandardScheme(); } } private static class getSchema_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getSchema_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 Schema(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getSchema_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.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getSchema_resultTupleSchemeFactory implements SchemeFactory { public getSchema_resultTupleScheme getScheme() { return new getSchema_resultTupleScheme(); } } private static class getSchema_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getSchema_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getSchema_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new Schema(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class saveSchema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveSchema_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField SCHEMA_FIELD_DESC = new org.apache.thrift.protocol.TField("schema", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new saveSchema_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new saveSchema_argsTupleSchemeFactory()); } public String projectName; // required public Schema schema; // 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 { PROJECT_NAME((short)1, "projectName"), SCHEMA((short)2, "schema"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // SCHEMA return SCHEMA; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.SCHEMA, new org.apache.thrift.meta_data.FieldMetaData("schema", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Schema.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveSchema_args.class, metaDataMap); } public saveSchema_args() { } public saveSchema_args( String projectName, Schema schema) { this(); this.projectName = projectName; this.schema = schema; } /** * Performs a deep copy on other. */ public saveSchema_args(saveSchema_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetSchema()) { this.schema = new Schema(other.schema); } } public saveSchema_args deepCopy() { return new saveSchema_args(this); } @Override public void clear() { this.projectName = null; this.schema = null; } public String getProjectName() { return this.projectName; } public saveSchema_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public Schema getSchema() { return this.schema; } public saveSchema_args setSchema(Schema schema) { this.schema = schema; return this; } public void unsetSchema() { this.schema = null; } /** Returns true if field schema is set (has been assigned a value) and false otherwise */ public boolean isSetSchema() { return this.schema != null; } public void setSchemaIsSet(boolean value) { if (!value) { this.schema = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case SCHEMA: if (value == null) { unsetSchema(); } else { setSchema((Schema)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case SCHEMA: return getSchema(); } 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 PROJECT_NAME: return isSetProjectName(); case SCHEMA: return isSetSchema(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof saveSchema_args) return this.equals((saveSchema_args)that); return false; } public boolean equals(saveSchema_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_schema = true && this.isSetSchema(); boolean that_present_schema = true && that.isSetSchema(); if (this_present_schema || that_present_schema) { if (!(this_present_schema && that_present_schema)) return false; if (!this.schema.equals(that.schema)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_schema = true && (isSetSchema()); list.add(present_schema); if (present_schema) list.add(schema); return list.hashCode(); } @Override public int compareTo(saveSchema_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetSchema()).compareTo(other.isSetSchema()); if (lastComparison != 0) { return lastComparison; } if (isSetSchema()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schema, other.schema); 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("saveSchema_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("schema:"); if (this.schema == null) { sb.append("null"); } else { sb.append(this.schema); } 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 (schema != null) { schema.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 saveSchema_argsStandardSchemeFactory implements SchemeFactory { public saveSchema_argsStandardScheme getScheme() { return new saveSchema_argsStandardScheme(); } } private static class saveSchema_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, saveSchema_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // SCHEMA if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.schema = new Schema(); struct.schema.read(iprot); struct.setSchemaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, saveSchema_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.schema != null) { oprot.writeFieldBegin(SCHEMA_FIELD_DESC); struct.schema.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class saveSchema_argsTupleSchemeFactory implements SchemeFactory { public saveSchema_argsTupleScheme getScheme() { return new saveSchema_argsTupleScheme(); } } private static class saveSchema_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, saveSchema_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetSchema()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetSchema()) { struct.schema.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, saveSchema_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.schema = new Schema(); struct.schema.read(iprot); struct.setSchemaIsSet(true); } } } } public static class saveSchema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveSchema_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new saveSchema_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new saveSchema_resultTupleSchemeFactory()); } public CentralDogmaException e; // 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 { E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(saveSchema_result.class, metaDataMap); } public saveSchema_result() { } public saveSchema_result( CentralDogmaException e) { this(); this.e = e; } /** * Performs a deep copy on other. */ public saveSchema_result(saveSchema_result other) { if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public saveSchema_result deepCopy() { return new saveSchema_result(this); } @Override public void clear() { this.e = null; } public CentralDogmaException getE() { return this.e; } public saveSchema_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof saveSchema_result) return this.equals((saveSchema_result)that); return false; } public boolean equals(saveSchema_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(saveSchema_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("saveSchema_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 saveSchema_resultStandardSchemeFactory implements SchemeFactory { public saveSchema_resultStandardScheme getScheme() { return new saveSchema_resultStandardScheme(); } } private static class saveSchema_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, saveSchema_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: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, saveSchema_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class saveSchema_resultTupleSchemeFactory implements SchemeFactory { public saveSchema_resultTupleScheme getScheme() { return new saveSchema_resultTupleScheme(); } } private static class saveSchema_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, saveSchema_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetE()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, saveSchema_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class getNamedQuery_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNamedQuery_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getNamedQuery_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getNamedQuery_argsTupleSchemeFactory()); } public String projectName; // required public String name; // 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 { PROJECT_NAME((short)1, "projectName"), NAME((short)2, "name"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // NAME return 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNamedQuery_args.class, metaDataMap); } public getNamedQuery_args() { } public getNamedQuery_args( String projectName, String name) { this(); this.projectName = projectName; this.name = name; } /** * Performs a deep copy on other. */ public getNamedQuery_args(getNamedQuery_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetName()) { this.name = other.name; } } public getNamedQuery_args deepCopy() { return new getNamedQuery_args(this); } @Override public void clear() { this.projectName = null; this.name = null; } public String getProjectName() { return this.projectName; } public getNamedQuery_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getName() { return this.name; } public getNamedQuery_args setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case NAME: return getName(); } 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 PROJECT_NAME: return isSetProjectName(); case NAME: return isSetName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getNamedQuery_args) return this.equals((getNamedQuery_args)that); return false; } public boolean equals(getNamedQuery_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); return list.hashCode(); } @Override public int compareTo(getNamedQuery_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } 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("getNamedQuery_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } 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 getNamedQuery_argsStandardSchemeFactory implements SchemeFactory { public getNamedQuery_argsStandardScheme getScheme() { return new getNamedQuery_argsStandardScheme(); } } private static class getNamedQuery_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getNamedQuery_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getNamedQuery_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getNamedQuery_argsTupleSchemeFactory implements SchemeFactory { public getNamedQuery_argsTupleScheme getScheme() { return new getNamedQuery_argsTupleScheme(); } } private static class getNamedQuery_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getNamedQuery_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetName()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetName()) { oprot.writeString(struct.name); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getNamedQuery_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } } } } public static class getNamedQuery_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNamedQuery_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 E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getNamedQuery_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getNamedQuery_resultTupleSchemeFactory()); } public NamedQuery success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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, NamedQuery.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(getNamedQuery_result.class, metaDataMap); } public getNamedQuery_result() { } public getNamedQuery_result( NamedQuery success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public getNamedQuery_result(getNamedQuery_result other) { if (other.isSetSuccess()) { this.success = new NamedQuery(other.success); } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public getNamedQuery_result deepCopy() { return new getNamedQuery_result(this); } @Override public void clear() { this.success = null; this.e = null; } public NamedQuery getSuccess() { return this.success; } public getNamedQuery_result setSuccess(NamedQuery success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public getNamedQuery_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((NamedQuery)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getNamedQuery_result) return this.equals((getNamedQuery_result)that); return false; } public boolean equals(getNamedQuery_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(getNamedQuery_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("getNamedQuery_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 getNamedQuery_resultStandardSchemeFactory implements SchemeFactory { public getNamedQuery_resultStandardScheme getScheme() { return new getNamedQuery_resultStandardScheme(); } } private static class getNamedQuery_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getNamedQuery_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 NamedQuery(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getNamedQuery_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.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getNamedQuery_resultTupleSchemeFactory implements SchemeFactory { public getNamedQuery_resultTupleScheme getScheme() { return new getNamedQuery_resultTupleScheme(); } } private static class getNamedQuery_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getNamedQuery_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getNamedQuery_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new NamedQuery(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class saveNamedQuery_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveNamedQuery_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField NAMED_QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("namedQuery", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new saveNamedQuery_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new saveNamedQuery_argsTupleSchemeFactory()); } public String projectName; // required public NamedQuery namedQuery; // 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 { PROJECT_NAME((short)1, "projectName"), NAMED_QUERY((short)2, "namedQuery"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // NAMED_QUERY return NAMED_QUERY; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.NAMED_QUERY, new org.apache.thrift.meta_data.FieldMetaData("namedQuery", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NamedQuery.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveNamedQuery_args.class, metaDataMap); } public saveNamedQuery_args() { } public saveNamedQuery_args( String projectName, NamedQuery namedQuery) { this(); this.projectName = projectName; this.namedQuery = namedQuery; } /** * Performs a deep copy on other. */ public saveNamedQuery_args(saveNamedQuery_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetNamedQuery()) { this.namedQuery = new NamedQuery(other.namedQuery); } } public saveNamedQuery_args deepCopy() { return new saveNamedQuery_args(this); } @Override public void clear() { this.projectName = null; this.namedQuery = null; } public String getProjectName() { return this.projectName; } public saveNamedQuery_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public NamedQuery getNamedQuery() { return this.namedQuery; } public saveNamedQuery_args setNamedQuery(NamedQuery namedQuery) { this.namedQuery = namedQuery; return this; } public void unsetNamedQuery() { this.namedQuery = null; } /** Returns true if field namedQuery is set (has been assigned a value) and false otherwise */ public boolean isSetNamedQuery() { return this.namedQuery != null; } public void setNamedQueryIsSet(boolean value) { if (!value) { this.namedQuery = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case NAMED_QUERY: if (value == null) { unsetNamedQuery(); } else { setNamedQuery((NamedQuery)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case NAMED_QUERY: return getNamedQuery(); } 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 PROJECT_NAME: return isSetProjectName(); case NAMED_QUERY: return isSetNamedQuery(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof saveNamedQuery_args) return this.equals((saveNamedQuery_args)that); return false; } public boolean equals(saveNamedQuery_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_namedQuery = true && this.isSetNamedQuery(); boolean that_present_namedQuery = true && that.isSetNamedQuery(); if (this_present_namedQuery || that_present_namedQuery) { if (!(this_present_namedQuery && that_present_namedQuery)) return false; if (!this.namedQuery.equals(that.namedQuery)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_namedQuery = true && (isSetNamedQuery()); list.add(present_namedQuery); if (present_namedQuery) list.add(namedQuery); return list.hashCode(); } @Override public int compareTo(saveNamedQuery_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetNamedQuery()).compareTo(other.isSetNamedQuery()); if (lastComparison != 0) { return lastComparison; } if (isSetNamedQuery()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.namedQuery, other.namedQuery); 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("saveNamedQuery_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("namedQuery:"); if (this.namedQuery == null) { sb.append("null"); } else { sb.append(this.namedQuery); } 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 (namedQuery != null) { namedQuery.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 saveNamedQuery_argsStandardSchemeFactory implements SchemeFactory { public saveNamedQuery_argsStandardScheme getScheme() { return new saveNamedQuery_argsStandardScheme(); } } private static class saveNamedQuery_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, saveNamedQuery_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // NAMED_QUERY if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.namedQuery = new NamedQuery(); struct.namedQuery.read(iprot); struct.setNamedQueryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, saveNamedQuery_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.namedQuery != null) { oprot.writeFieldBegin(NAMED_QUERY_FIELD_DESC); struct.namedQuery.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class saveNamedQuery_argsTupleSchemeFactory implements SchemeFactory { public saveNamedQuery_argsTupleScheme getScheme() { return new saveNamedQuery_argsTupleScheme(); } } private static class saveNamedQuery_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, saveNamedQuery_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetNamedQuery()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetNamedQuery()) { struct.namedQuery.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, saveNamedQuery_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.namedQuery = new NamedQuery(); struct.namedQuery.read(iprot); struct.setNamedQueryIsSet(true); } } } } public static class saveNamedQuery_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveNamedQuery_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new saveNamedQuery_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new saveNamedQuery_resultTupleSchemeFactory()); } public CentralDogmaException e; // 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 { E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(saveNamedQuery_result.class, metaDataMap); } public saveNamedQuery_result() { } public saveNamedQuery_result( CentralDogmaException e) { this(); this.e = e; } /** * Performs a deep copy on other. */ public saveNamedQuery_result(saveNamedQuery_result other) { if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public saveNamedQuery_result deepCopy() { return new saveNamedQuery_result(this); } @Override public void clear() { this.e = null; } public CentralDogmaException getE() { return this.e; } public saveNamedQuery_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof saveNamedQuery_result) return this.equals((saveNamedQuery_result)that); return false; } public boolean equals(saveNamedQuery_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(saveNamedQuery_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("saveNamedQuery_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 saveNamedQuery_resultStandardSchemeFactory implements SchemeFactory { public saveNamedQuery_resultStandardScheme getScheme() { return new saveNamedQuery_resultStandardScheme(); } } private static class saveNamedQuery_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, saveNamedQuery_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: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, saveNamedQuery_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class saveNamedQuery_resultTupleSchemeFactory implements SchemeFactory { public saveNamedQuery_resultTupleScheme getScheme() { return new saveNamedQuery_resultTupleScheme(); } } private static class saveNamedQuery_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, saveNamedQuery_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetE()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, saveNamedQuery_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class removeNamedQuery_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeNamedQuery_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removeNamedQuery_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new removeNamedQuery_argsTupleSchemeFactory()); } public String projectName; // required public String name; // 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 { PROJECT_NAME((short)1, "projectName"), NAME((short)2, "name"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // NAME return 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(removeNamedQuery_args.class, metaDataMap); } public removeNamedQuery_args() { } public removeNamedQuery_args( String projectName, String name) { this(); this.projectName = projectName; this.name = name; } /** * Performs a deep copy on other. */ public removeNamedQuery_args(removeNamedQuery_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetName()) { this.name = other.name; } } public removeNamedQuery_args deepCopy() { return new removeNamedQuery_args(this); } @Override public void clear() { this.projectName = null; this.name = null; } public String getProjectName() { return this.projectName; } public removeNamedQuery_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getName() { return this.name; } public removeNamedQuery_args setName(String name) { this.name = name; return this; } public void unsetName() { this.name = null; } /** Returns true if field name is set (has been assigned a value) and false otherwise */ public boolean isSetName() { return this.name != null; } public void setNameIsSet(boolean value) { if (!value) { this.name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case NAME: if (value == null) { unsetName(); } else { setName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case NAME: return getName(); } 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 PROJECT_NAME: return isSetProjectName(); case NAME: return isSetName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof removeNamedQuery_args) return this.equals((removeNamedQuery_args)that); return false; } public boolean equals(removeNamedQuery_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); return list.hashCode(); } @Override public int compareTo(removeNamedQuery_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) { return lastComparison; } } 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("removeNamedQuery_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("name:"); if (this.name == null) { sb.append("null"); } else { sb.append(this.name); } 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 removeNamedQuery_argsStandardSchemeFactory implements SchemeFactory { public removeNamedQuery_argsStandardScheme getScheme() { return new removeNamedQuery_argsStandardScheme(); } } private static class removeNamedQuery_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removeNamedQuery_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, removeNamedQuery_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removeNamedQuery_argsTupleSchemeFactory implements SchemeFactory { public removeNamedQuery_argsTupleScheme getScheme() { return new removeNamedQuery_argsTupleScheme(); } } private static class removeNamedQuery_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removeNamedQuery_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetName()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetName()) { oprot.writeString(struct.name); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeNamedQuery_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.name = iprot.readString(); struct.setNameIsSet(true); } } } } public static class removeNamedQuery_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removeNamedQuery_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removeNamedQuery_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new removeNamedQuery_resultTupleSchemeFactory()); } public CentralDogmaException e; // 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 { E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(removeNamedQuery_result.class, metaDataMap); } public removeNamedQuery_result() { } public removeNamedQuery_result( CentralDogmaException e) { this(); this.e = e; } /** * Performs a deep copy on other. */ public removeNamedQuery_result(removeNamedQuery_result other) { if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public removeNamedQuery_result deepCopy() { return new removeNamedQuery_result(this); } @Override public void clear() { this.e = null; } public CentralDogmaException getE() { return this.e; } public removeNamedQuery_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof removeNamedQuery_result) return this.equals((removeNamedQuery_result)that); return false; } public boolean equals(removeNamedQuery_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(removeNamedQuery_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("removeNamedQuery_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 removeNamedQuery_resultStandardSchemeFactory implements SchemeFactory { public removeNamedQuery_resultStandardScheme getScheme() { return new removeNamedQuery_resultStandardScheme(); } } private static class removeNamedQuery_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removeNamedQuery_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: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, removeNamedQuery_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removeNamedQuery_resultTupleSchemeFactory implements SchemeFactory { public removeNamedQuery_resultTupleScheme getScheme() { return new removeNamedQuery_resultTupleScheme(); } } private static class removeNamedQuery_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removeNamedQuery_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetE()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removeNamedQuery_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class listNamedQueries_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listNamedQueries_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listNamedQueries_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new listNamedQueries_argsTupleSchemeFactory()); } public String projectName; // 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 { PROJECT_NAME((short)1, "projectName"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", 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(listNamedQueries_args.class, metaDataMap); } public listNamedQueries_args() { } public listNamedQueries_args( String projectName) { this(); this.projectName = projectName; } /** * Performs a deep copy on other. */ public listNamedQueries_args(listNamedQueries_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } } public listNamedQueries_args deepCopy() { return new listNamedQueries_args(this); } @Override public void clear() { this.projectName = null; } public String getProjectName() { return this.projectName; } public listNamedQueries_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); } 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 PROJECT_NAME: return isSetProjectName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listNamedQueries_args) return this.equals((listNamedQueries_args)that); return false; } public boolean equals(listNamedQueries_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); return list.hashCode(); } @Override public int compareTo(listNamedQueries_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); 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("listNamedQueries_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } 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 listNamedQueries_argsStandardSchemeFactory implements SchemeFactory { public listNamedQueries_argsStandardScheme getScheme() { return new listNamedQueries_argsStandardScheme(); } } private static class listNamedQueries_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listNamedQueries_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listNamedQueries_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listNamedQueries_argsTupleSchemeFactory implements SchemeFactory { public listNamedQueries_argsTupleScheme getScheme() { return new listNamedQueries_argsTupleScheme(); } } private static class listNamedQueries_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listNamedQueries_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listNamedQueries_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } } } } public static class listNamedQueries_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listNamedQueries_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listNamedQueries_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new listNamedQueries_resultTupleSchemeFactory()); } public List success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NamedQuery.class)))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(listNamedQueries_result.class, metaDataMap); } public listNamedQueries_result() { } public listNamedQueries_result( List success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public listNamedQueries_result(listNamedQueries_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (NamedQuery other_element : other.success) { __this__success.add(new NamedQuery(other_element)); } this.success = __this__success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public listNamedQueries_result deepCopy() { return new listNamedQueries_result(this); } @Override public void clear() { this.success = null; this.e = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(NamedQuery elem) { if (this.success == null) { this.success = new ArrayList(); } this.success.add(elem); } public List getSuccess() { return this.success; } public listNamedQueries_result setSuccess(List success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public listNamedQueries_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listNamedQueries_result) return this.equals((listNamedQueries_result)that); return false; } public boolean equals(listNamedQueries_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(listNamedQueries_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("listNamedQueries_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 listNamedQueries_resultStandardSchemeFactory implements SchemeFactory { public listNamedQueries_resultStandardScheme getScheme() { return new listNamedQueries_resultStandardScheme(); } } private static class listNamedQueries_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listNamedQueries_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.LIST) { { org.apache.thrift.protocol.TList _list160 = iprot.readListBegin(); struct.success = new ArrayList(_list160.size); NamedQuery _elem161; for (int _i162 = 0; _i162 < _list160.size; ++_i162) { _elem161 = new NamedQuery(); _elem161.read(iprot); struct.success.add(_elem161); } iprot.readListEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listNamedQueries_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (NamedQuery _iter163 : struct.success) { _iter163.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listNamedQueries_resultTupleSchemeFactory implements SchemeFactory { public listNamedQueries_resultTupleScheme getScheme() { return new listNamedQueries_resultTupleScheme(); } } private static class listNamedQueries_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listNamedQueries_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (NamedQuery _iter164 : struct.success) { _iter164.write(oprot); } } } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listNamedQueries_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list165 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list165.size); NamedQuery _elem166; for (int _i167 = 0; _i167 < _list165.size; ++_i167) { _elem166 = new NamedQuery(); _elem166.read(iprot); struct.success.add(_elem166); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class getPlugin_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPlugin_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField PLUGIN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("pluginName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getPlugin_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new getPlugin_argsTupleSchemeFactory()); } public String projectName; // required public String pluginName; // 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 { PROJECT_NAME((short)1, "projectName"), PLUGIN_NAME((short)2, "pluginName"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // PLUGIN_NAME return PLUGIN_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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PLUGIN_NAME, new org.apache.thrift.meta_data.FieldMetaData("pluginName", 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(getPlugin_args.class, metaDataMap); } public getPlugin_args() { } public getPlugin_args( String projectName, String pluginName) { this(); this.projectName = projectName; this.pluginName = pluginName; } /** * Performs a deep copy on other. */ public getPlugin_args(getPlugin_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetPluginName()) { this.pluginName = other.pluginName; } } public getPlugin_args deepCopy() { return new getPlugin_args(this); } @Override public void clear() { this.projectName = null; this.pluginName = null; } public String getProjectName() { return this.projectName; } public getPlugin_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getPluginName() { return this.pluginName; } public getPlugin_args setPluginName(String pluginName) { this.pluginName = pluginName; return this; } public void unsetPluginName() { this.pluginName = null; } /** Returns true if field pluginName is set (has been assigned a value) and false otherwise */ public boolean isSetPluginName() { return this.pluginName != null; } public void setPluginNameIsSet(boolean value) { if (!value) { this.pluginName = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case PLUGIN_NAME: if (value == null) { unsetPluginName(); } else { setPluginName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case PLUGIN_NAME: return getPluginName(); } 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 PROJECT_NAME: return isSetProjectName(); case PLUGIN_NAME: return isSetPluginName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getPlugin_args) return this.equals((getPlugin_args)that); return false; } public boolean equals(getPlugin_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_pluginName = true && this.isSetPluginName(); boolean that_present_pluginName = true && that.isSetPluginName(); if (this_present_pluginName || that_present_pluginName) { if (!(this_present_pluginName && that_present_pluginName)) return false; if (!this.pluginName.equals(that.pluginName)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_pluginName = true && (isSetPluginName()); list.add(present_pluginName); if (present_pluginName) list.add(pluginName); return list.hashCode(); } @Override public int compareTo(getPlugin_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPluginName()).compareTo(other.isSetPluginName()); if (lastComparison != 0) { return lastComparison; } if (isSetPluginName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pluginName, other.pluginName); 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("getPlugin_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("pluginName:"); if (this.pluginName == null) { sb.append("null"); } else { sb.append(this.pluginName); } 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 getPlugin_argsStandardSchemeFactory implements SchemeFactory { public getPlugin_argsStandardScheme getScheme() { return new getPlugin_argsStandardScheme(); } } private static class getPlugin_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getPlugin_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // PLUGIN_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.pluginName = iprot.readString(); struct.setPluginNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getPlugin_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.pluginName != null) { oprot.writeFieldBegin(PLUGIN_NAME_FIELD_DESC); oprot.writeString(struct.pluginName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getPlugin_argsTupleSchemeFactory implements SchemeFactory { public getPlugin_argsTupleScheme getScheme() { return new getPlugin_argsTupleScheme(); } } private static class getPlugin_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getPlugin_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetPluginName()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetPluginName()) { oprot.writeString(struct.pluginName); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getPlugin_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.pluginName = iprot.readString(); struct.setPluginNameIsSet(true); } } } } public static class getPlugin_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPlugin_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 E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new getPlugin_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new getPlugin_resultTupleSchemeFactory()); } public Plugin success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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, Plugin.class))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(getPlugin_result.class, metaDataMap); } public getPlugin_result() { } public getPlugin_result( Plugin success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public getPlugin_result(getPlugin_result other) { if (other.isSetSuccess()) { this.success = new Plugin(other.success); } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public getPlugin_result deepCopy() { return new getPlugin_result(this); } @Override public void clear() { this.success = null; this.e = null; } public Plugin getSuccess() { return this.success; } public getPlugin_result setSuccess(Plugin success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public getPlugin_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((Plugin)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getPlugin_result) return this.equals((getPlugin_result)that); return false; } public boolean equals(getPlugin_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(getPlugin_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("getPlugin_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 getPlugin_resultStandardSchemeFactory implements SchemeFactory { public getPlugin_resultStandardScheme getScheme() { return new getPlugin_resultStandardScheme(); } } private static class getPlugin_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, getPlugin_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 Plugin(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, getPlugin_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.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class getPlugin_resultTupleSchemeFactory implements SchemeFactory { public getPlugin_resultTupleScheme getScheme() { return new getPlugin_resultTupleScheme(); } } private static class getPlugin_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, getPlugin_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getPlugin_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = new Plugin(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class savePlugin_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("savePlugin_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField PLUGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("plugin", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new savePlugin_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new savePlugin_argsTupleSchemeFactory()); } public String projectName; // required public Plugin plugin; // 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 { PROJECT_NAME((short)1, "projectName"), PLUGIN((short)2, "plugin"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // PLUGIN return PLUGIN; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PLUGIN, new org.apache.thrift.meta_data.FieldMetaData("plugin", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Plugin.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(savePlugin_args.class, metaDataMap); } public savePlugin_args() { } public savePlugin_args( String projectName, Plugin plugin) { this(); this.projectName = projectName; this.plugin = plugin; } /** * Performs a deep copy on other. */ public savePlugin_args(savePlugin_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetPlugin()) { this.plugin = new Plugin(other.plugin); } } public savePlugin_args deepCopy() { return new savePlugin_args(this); } @Override public void clear() { this.projectName = null; this.plugin = null; } public String getProjectName() { return this.projectName; } public savePlugin_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public Plugin getPlugin() { return this.plugin; } public savePlugin_args setPlugin(Plugin plugin) { this.plugin = plugin; return this; } public void unsetPlugin() { this.plugin = null; } /** Returns true if field plugin is set (has been assigned a value) and false otherwise */ public boolean isSetPlugin() { return this.plugin != null; } public void setPluginIsSet(boolean value) { if (!value) { this.plugin = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case PLUGIN: if (value == null) { unsetPlugin(); } else { setPlugin((Plugin)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case PLUGIN: return getPlugin(); } 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 PROJECT_NAME: return isSetProjectName(); case PLUGIN: return isSetPlugin(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof savePlugin_args) return this.equals((savePlugin_args)that); return false; } public boolean equals(savePlugin_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_plugin = true && this.isSetPlugin(); boolean that_present_plugin = true && that.isSetPlugin(); if (this_present_plugin || that_present_plugin) { if (!(this_present_plugin && that_present_plugin)) return false; if (!this.plugin.equals(that.plugin)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_plugin = true && (isSetPlugin()); list.add(present_plugin); if (present_plugin) list.add(plugin); return list.hashCode(); } @Override public int compareTo(savePlugin_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPlugin()).compareTo(other.isSetPlugin()); if (lastComparison != 0) { return lastComparison; } if (isSetPlugin()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.plugin, other.plugin); 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("savePlugin_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("plugin:"); if (this.plugin == null) { sb.append("null"); } else { sb.append(this.plugin); } 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 (plugin != null) { plugin.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 savePlugin_argsStandardSchemeFactory implements SchemeFactory { public savePlugin_argsStandardScheme getScheme() { return new savePlugin_argsStandardScheme(); } } private static class savePlugin_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, savePlugin_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // PLUGIN if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.plugin = new Plugin(); struct.plugin.read(iprot); struct.setPluginIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, savePlugin_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.plugin != null) { oprot.writeFieldBegin(PLUGIN_FIELD_DESC); struct.plugin.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class savePlugin_argsTupleSchemeFactory implements SchemeFactory { public savePlugin_argsTupleScheme getScheme() { return new savePlugin_argsTupleScheme(); } } private static class savePlugin_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, savePlugin_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetPlugin()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetPlugin()) { struct.plugin.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, savePlugin_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.plugin = new Plugin(); struct.plugin.read(iprot); struct.setPluginIsSet(true); } } } } public static class savePlugin_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("savePlugin_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new savePlugin_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new savePlugin_resultTupleSchemeFactory()); } public CentralDogmaException e; // 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 { E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(savePlugin_result.class, metaDataMap); } public savePlugin_result() { } public savePlugin_result( CentralDogmaException e) { this(); this.e = e; } /** * Performs a deep copy on other. */ public savePlugin_result(savePlugin_result other) { if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public savePlugin_result deepCopy() { return new savePlugin_result(this); } @Override public void clear() { this.e = null; } public CentralDogmaException getE() { return this.e; } public savePlugin_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof savePlugin_result) return this.equals((savePlugin_result)that); return false; } public boolean equals(savePlugin_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(savePlugin_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("savePlugin_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 savePlugin_resultStandardSchemeFactory implements SchemeFactory { public savePlugin_resultStandardScheme getScheme() { return new savePlugin_resultStandardScheme(); } } private static class savePlugin_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, savePlugin_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: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, savePlugin_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class savePlugin_resultTupleSchemeFactory implements SchemeFactory { public savePlugin_resultTupleScheme getScheme() { return new savePlugin_resultTupleScheme(); } } private static class savePlugin_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, savePlugin_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetE()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, savePlugin_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class removePlugin_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removePlugin_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField PLUGIN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("pluginName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removePlugin_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new removePlugin_argsTupleSchemeFactory()); } public String projectName; // required public String pluginName; // 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 { PROJECT_NAME((short)1, "projectName"), PLUGIN_NAME((short)2, "pluginName"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // PLUGIN_NAME return PLUGIN_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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PLUGIN_NAME, new org.apache.thrift.meta_data.FieldMetaData("pluginName", 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(removePlugin_args.class, metaDataMap); } public removePlugin_args() { } public removePlugin_args( String projectName, String pluginName) { this(); this.projectName = projectName; this.pluginName = pluginName; } /** * Performs a deep copy on other. */ public removePlugin_args(removePlugin_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetPluginName()) { this.pluginName = other.pluginName; } } public removePlugin_args deepCopy() { return new removePlugin_args(this); } @Override public void clear() { this.projectName = null; this.pluginName = null; } public String getProjectName() { return this.projectName; } public removePlugin_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getPluginName() { return this.pluginName; } public removePlugin_args setPluginName(String pluginName) { this.pluginName = pluginName; return this; } public void unsetPluginName() { this.pluginName = null; } /** Returns true if field pluginName is set (has been assigned a value) and false otherwise */ public boolean isSetPluginName() { return this.pluginName != null; } public void setPluginNameIsSet(boolean value) { if (!value) { this.pluginName = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case PLUGIN_NAME: if (value == null) { unsetPluginName(); } else { setPluginName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case PLUGIN_NAME: return getPluginName(); } 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 PROJECT_NAME: return isSetProjectName(); case PLUGIN_NAME: return isSetPluginName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof removePlugin_args) return this.equals((removePlugin_args)that); return false; } public boolean equals(removePlugin_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_pluginName = true && this.isSetPluginName(); boolean that_present_pluginName = true && that.isSetPluginName(); if (this_present_pluginName || that_present_pluginName) { if (!(this_present_pluginName && that_present_pluginName)) return false; if (!this.pluginName.equals(that.pluginName)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_pluginName = true && (isSetPluginName()); list.add(present_pluginName); if (present_pluginName) list.add(pluginName); return list.hashCode(); } @Override public int compareTo(removePlugin_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPluginName()).compareTo(other.isSetPluginName()); if (lastComparison != 0) { return lastComparison; } if (isSetPluginName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pluginName, other.pluginName); 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("removePlugin_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("pluginName:"); if (this.pluginName == null) { sb.append("null"); } else { sb.append(this.pluginName); } 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 removePlugin_argsStandardSchemeFactory implements SchemeFactory { public removePlugin_argsStandardScheme getScheme() { return new removePlugin_argsStandardScheme(); } } private static class removePlugin_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removePlugin_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // PLUGIN_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.pluginName = iprot.readString(); struct.setPluginNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, removePlugin_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.pluginName != null) { oprot.writeFieldBegin(PLUGIN_NAME_FIELD_DESC); oprot.writeString(struct.pluginName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removePlugin_argsTupleSchemeFactory implements SchemeFactory { public removePlugin_argsTupleScheme getScheme() { return new removePlugin_argsTupleScheme(); } } private static class removePlugin_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removePlugin_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetPluginName()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetPluginName()) { oprot.writeString(struct.pluginName); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removePlugin_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.pluginName = iprot.readString(); struct.setPluginNameIsSet(true); } } } } public static class removePlugin_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("removePlugin_result"); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new removePlugin_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new removePlugin_resultTupleSchemeFactory()); } public CentralDogmaException e; // 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 { E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(removePlugin_result.class, metaDataMap); } public removePlugin_result() { } public removePlugin_result( CentralDogmaException e) { this(); this.e = e; } /** * Performs a deep copy on other. */ public removePlugin_result(removePlugin_result other) { if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public removePlugin_result deepCopy() { return new removePlugin_result(this); } @Override public void clear() { this.e = null; } public CentralDogmaException getE() { return this.e; } public removePlugin_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case E: return getE(); } 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 E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof removePlugin_result) return this.equals((removePlugin_result)that); return false; } public boolean equals(removePlugin_result that) { if (that == null) return false; boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(removePlugin_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("removePlugin_result("); boolean first = true; sb.append("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 removePlugin_resultStandardSchemeFactory implements SchemeFactory { public removePlugin_resultStandardScheme getScheme() { return new removePlugin_resultStandardScheme(); } } private static class removePlugin_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, removePlugin_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: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, removePlugin_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class removePlugin_resultTupleSchemeFactory implements SchemeFactory { public removePlugin_resultTupleScheme getScheme() { return new removePlugin_resultTupleScheme(); } } private static class removePlugin_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, removePlugin_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetE()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, removePlugin_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class listPlugins_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listPlugins_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listPlugins_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new listPlugins_argsTupleSchemeFactory()); } public String projectName; // 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 { PROJECT_NAME((short)1, "projectName"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", 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(listPlugins_args.class, metaDataMap); } public listPlugins_args() { } public listPlugins_args( String projectName) { this(); this.projectName = projectName; } /** * Performs a deep copy on other. */ public listPlugins_args(listPlugins_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } } public listPlugins_args deepCopy() { return new listPlugins_args(this); } @Override public void clear() { this.projectName = null; } public String getProjectName() { return this.projectName; } public listPlugins_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); } 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 PROJECT_NAME: return isSetProjectName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listPlugins_args) return this.equals((listPlugins_args)that); return false; } public boolean equals(listPlugins_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); return list.hashCode(); } @Override public int compareTo(listPlugins_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); 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("listPlugins_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } 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 listPlugins_argsStandardSchemeFactory implements SchemeFactory { public listPlugins_argsStandardScheme getScheme() { return new listPlugins_argsStandardScheme(); } } private static class listPlugins_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listPlugins_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listPlugins_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listPlugins_argsTupleSchemeFactory implements SchemeFactory { public listPlugins_argsTupleScheme getScheme() { return new listPlugins_argsTupleScheme(); } } private static class listPlugins_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listPlugins_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listPlugins_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } } } } public static class listPlugins_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listPlugins_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listPlugins_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new listPlugins_resultTupleSchemeFactory()); } public List success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Plugin.class)))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(listPlugins_result.class, metaDataMap); } public listPlugins_result() { } public listPlugins_result( List success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public listPlugins_result(listPlugins_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Plugin other_element : other.success) { __this__success.add(new Plugin(other_element)); } this.success = __this__success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public listPlugins_result deepCopy() { return new listPlugins_result(this); } @Override public void clear() { this.success = null; this.e = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(Plugin elem) { if (this.success == null) { this.success = new ArrayList(); } this.success.add(elem); } public List getSuccess() { return this.success; } public listPlugins_result setSuccess(List success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public listPlugins_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listPlugins_result) return this.equals((listPlugins_result)that); return false; } public boolean equals(listPlugins_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(listPlugins_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("listPlugins_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 listPlugins_resultStandardSchemeFactory implements SchemeFactory { public listPlugins_resultStandardScheme getScheme() { return new listPlugins_resultStandardScheme(); } } private static class listPlugins_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listPlugins_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.LIST) { { org.apache.thrift.protocol.TList _list168 = iprot.readListBegin(); struct.success = new ArrayList(_list168.size); Plugin _elem169; for (int _i170 = 0; _i170 < _list168.size; ++_i170) { _elem169 = new Plugin(); _elem169.read(iprot); struct.success.add(_elem169); } iprot.readListEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listPlugins_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Plugin _iter171 : struct.success) { _iter171.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listPlugins_resultTupleSchemeFactory implements SchemeFactory { public listPlugins_resultTupleScheme getScheme() { return new listPlugins_resultTupleScheme(); } } private static class listPlugins_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listPlugins_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Plugin _iter172 : struct.success) { _iter172.write(oprot); } } } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listPlugins_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list173 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list173.size); Plugin _elem174; for (int _i175 = 0; _i175 < _list173.size; ++_i175) { _elem174 = new Plugin(); _elem174.read(iprot); struct.success.add(_elem174); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class listPluginOperations_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listPluginOperations_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listPluginOperations_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new listPluginOperations_argsTupleSchemeFactory()); } public String projectName; // 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 { PROJECT_NAME((short)1, "projectName"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", 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(listPluginOperations_args.class, metaDataMap); } public listPluginOperations_args() { } public listPluginOperations_args( String projectName) { this(); this.projectName = projectName; } /** * Performs a deep copy on other. */ public listPluginOperations_args(listPluginOperations_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } } public listPluginOperations_args deepCopy() { return new listPluginOperations_args(this); } @Override public void clear() { this.projectName = null; } public String getProjectName() { return this.projectName; } public listPluginOperations_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); } 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 PROJECT_NAME: return isSetProjectName(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listPluginOperations_args) return this.equals((listPluginOperations_args)that); return false; } public boolean equals(listPluginOperations_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); return list.hashCode(); } @Override public int compareTo(listPluginOperations_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); 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("listPluginOperations_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } 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 listPluginOperations_argsStandardSchemeFactory implements SchemeFactory { public listPluginOperations_argsStandardScheme getScheme() { return new listPluginOperations_argsStandardScheme(); } } private static class listPluginOperations_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listPluginOperations_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listPluginOperations_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listPluginOperations_argsTupleSchemeFactory implements SchemeFactory { public listPluginOperations_argsTupleScheme getScheme() { return new listPluginOperations_argsTupleScheme(); } } private static class listPluginOperations_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listPluginOperations_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listPluginOperations_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } } } } public static class listPluginOperations_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listPluginOperations_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listPluginOperations_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new listPluginOperations_resultTupleSchemeFactory()); } public List success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PluginOperation.class)))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(listPluginOperations_result.class, metaDataMap); } public listPluginOperations_result() { } public listPluginOperations_result( List success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public listPluginOperations_result(listPluginOperations_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (PluginOperation other_element : other.success) { __this__success.add(new PluginOperation(other_element)); } this.success = __this__success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public listPluginOperations_result deepCopy() { return new listPluginOperations_result(this); } @Override public void clear() { this.success = null; this.e = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(PluginOperation elem) { if (this.success == null) { this.success = new ArrayList(); } this.success.add(elem); } public List getSuccess() { return this.success; } public listPluginOperations_result setSuccess(List success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public listPluginOperations_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listPluginOperations_result) return this.equals((listPluginOperations_result)that); return false; } public boolean equals(listPluginOperations_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(listPluginOperations_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("listPluginOperations_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 listPluginOperations_resultStandardSchemeFactory implements SchemeFactory { public listPluginOperations_resultStandardScheme getScheme() { return new listPluginOperations_resultStandardScheme(); } } private static class listPluginOperations_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listPluginOperations_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.LIST) { { org.apache.thrift.protocol.TList _list176 = iprot.readListBegin(); struct.success = new ArrayList(_list176.size); PluginOperation _elem177; for (int _i178 = 0; _i178 < _list176.size; ++_i178) { _elem177 = new PluginOperation(); _elem177.read(iprot); struct.success.add(_elem177); } iprot.readListEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listPluginOperations_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (PluginOperation _iter179 : struct.success) { _iter179.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listPluginOperations_resultTupleSchemeFactory implements SchemeFactory { public listPluginOperations_resultTupleScheme getScheme() { return new listPluginOperations_resultTupleScheme(); } } private static class listPluginOperations_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listPluginOperations_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (PluginOperation _iter180 : struct.success) { _iter180.write(oprot); } } } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listPluginOperations_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list181 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list181.size); PluginOperation _elem182; for (int _i183 = 0; _i183 < _list181.size; ++_i183) { _elem182 = new PluginOperation(); _elem182.read(iprot); struct.success.add(_elem182); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class performPluginOperation_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("performPluginOperation_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField PLUGIN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("pluginName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField OPERATION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("operationName", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField PARAMS_FIELD_DESC = new org.apache.thrift.protocol.TField("params", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new performPluginOperation_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new performPluginOperation_argsTupleSchemeFactory()); } public String projectName; // required public String pluginName; // required public String operationName; // required public String params; // 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 { PROJECT_NAME((short)1, "projectName"), PLUGIN_NAME((short)2, "pluginName"), OPERATION_NAME((short)3, "operationName"), PARAMS((short)4, "params"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // PLUGIN_NAME return PLUGIN_NAME; case 3: // OPERATION_NAME return OPERATION_NAME; case 4: // PARAMS return PARAMS; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PLUGIN_NAME, new org.apache.thrift.meta_data.FieldMetaData("pluginName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OPERATION_NAME, new org.apache.thrift.meta_data.FieldMetaData("operationName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", 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(performPluginOperation_args.class, metaDataMap); } public performPluginOperation_args() { } public performPluginOperation_args( String projectName, String pluginName, String operationName, String params) { this(); this.projectName = projectName; this.pluginName = pluginName; this.operationName = operationName; this.params = params; } /** * Performs a deep copy on other. */ public performPluginOperation_args(performPluginOperation_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetPluginName()) { this.pluginName = other.pluginName; } if (other.isSetOperationName()) { this.operationName = other.operationName; } if (other.isSetParams()) { this.params = other.params; } } public performPluginOperation_args deepCopy() { return new performPluginOperation_args(this); } @Override public void clear() { this.projectName = null; this.pluginName = null; this.operationName = null; this.params = null; } public String getProjectName() { return this.projectName; } public performPluginOperation_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getPluginName() { return this.pluginName; } public performPluginOperation_args setPluginName(String pluginName) { this.pluginName = pluginName; return this; } public void unsetPluginName() { this.pluginName = null; } /** Returns true if field pluginName is set (has been assigned a value) and false otherwise */ public boolean isSetPluginName() { return this.pluginName != null; } public void setPluginNameIsSet(boolean value) { if (!value) { this.pluginName = null; } } public String getOperationName() { return this.operationName; } public performPluginOperation_args setOperationName(String operationName) { this.operationName = operationName; return this; } public void unsetOperationName() { this.operationName = null; } /** Returns true if field operationName is set (has been assigned a value) and false otherwise */ public boolean isSetOperationName() { return this.operationName != null; } public void setOperationNameIsSet(boolean value) { if (!value) { this.operationName = null; } } public String getParams() { return this.params; } public performPluginOperation_args setParams(String params) { this.params = params; return this; } public void unsetParams() { this.params = null; } /** Returns true if field params is set (has been assigned a value) and false otherwise */ public boolean isSetParams() { return this.params != null; } public void setParamsIsSet(boolean value) { if (!value) { this.params = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case PLUGIN_NAME: if (value == null) { unsetPluginName(); } else { setPluginName((String)value); } break; case OPERATION_NAME: if (value == null) { unsetOperationName(); } else { setOperationName((String)value); } break; case PARAMS: if (value == null) { unsetParams(); } else { setParams((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case PLUGIN_NAME: return getPluginName(); case OPERATION_NAME: return getOperationName(); case PARAMS: return getParams(); } 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 PROJECT_NAME: return isSetProjectName(); case PLUGIN_NAME: return isSetPluginName(); case OPERATION_NAME: return isSetOperationName(); case PARAMS: return isSetParams(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof performPluginOperation_args) return this.equals((performPluginOperation_args)that); return false; } public boolean equals(performPluginOperation_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_pluginName = true && this.isSetPluginName(); boolean that_present_pluginName = true && that.isSetPluginName(); if (this_present_pluginName || that_present_pluginName) { if (!(this_present_pluginName && that_present_pluginName)) return false; if (!this.pluginName.equals(that.pluginName)) return false; } boolean this_present_operationName = true && this.isSetOperationName(); boolean that_present_operationName = true && that.isSetOperationName(); if (this_present_operationName || that_present_operationName) { if (!(this_present_operationName && that_present_operationName)) return false; if (!this.operationName.equals(that.operationName)) return false; } boolean this_present_params = true && this.isSetParams(); boolean that_present_params = true && that.isSetParams(); if (this_present_params || that_present_params) { if (!(this_present_params && that_present_params)) return false; if (!this.params.equals(that.params)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_pluginName = true && (isSetPluginName()); list.add(present_pluginName); if (present_pluginName) list.add(pluginName); boolean present_operationName = true && (isSetOperationName()); list.add(present_operationName); if (present_operationName) list.add(operationName); boolean present_params = true && (isSetParams()); list.add(present_params); if (present_params) list.add(params); return list.hashCode(); } @Override public int compareTo(performPluginOperation_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPluginName()).compareTo(other.isSetPluginName()); if (lastComparison != 0) { return lastComparison; } if (isSetPluginName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pluginName, other.pluginName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOperationName()).compareTo(other.isSetOperationName()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationName, other.operationName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetParams()).compareTo(other.isSetParams()); if (lastComparison != 0) { return lastComparison; } if (isSetParams()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, other.params); 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("performPluginOperation_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("pluginName:"); if (this.pluginName == null) { sb.append("null"); } else { sb.append(this.pluginName); } first = false; if (!first) sb.append(", "); sb.append("operationName:"); if (this.operationName == null) { sb.append("null"); } else { sb.append(this.operationName); } first = false; if (!first) sb.append(", "); sb.append("params:"); if (this.params == null) { sb.append("null"); } else { sb.append(this.params); } 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 performPluginOperation_argsStandardSchemeFactory implements SchemeFactory { public performPluginOperation_argsStandardScheme getScheme() { return new performPluginOperation_argsStandardScheme(); } } private static class performPluginOperation_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, performPluginOperation_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // PLUGIN_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.pluginName = iprot.readString(); struct.setPluginNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // OPERATION_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.operationName = iprot.readString(); struct.setOperationNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // PARAMS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.params = iprot.readString(); struct.setParamsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, performPluginOperation_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.pluginName != null) { oprot.writeFieldBegin(PLUGIN_NAME_FIELD_DESC); oprot.writeString(struct.pluginName); oprot.writeFieldEnd(); } if (struct.operationName != null) { oprot.writeFieldBegin(OPERATION_NAME_FIELD_DESC); oprot.writeString(struct.operationName); oprot.writeFieldEnd(); } if (struct.params != null) { oprot.writeFieldBegin(PARAMS_FIELD_DESC); oprot.writeString(struct.params); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class performPluginOperation_argsTupleSchemeFactory implements SchemeFactory { public performPluginOperation_argsTupleScheme getScheme() { return new performPluginOperation_argsTupleScheme(); } } private static class performPluginOperation_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, performPluginOperation_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetPluginName()) { optionals.set(1); } if (struct.isSetOperationName()) { optionals.set(2); } if (struct.isSetParams()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetPluginName()) { oprot.writeString(struct.pluginName); } if (struct.isSetOperationName()) { oprot.writeString(struct.operationName); } if (struct.isSetParams()) { oprot.writeString(struct.params); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, performPluginOperation_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.pluginName = iprot.readString(); struct.setPluginNameIsSet(true); } if (incoming.get(2)) { struct.operationName = iprot.readString(); struct.setOperationNameIsSet(true); } if (incoming.get(3)) { struct.params = iprot.readString(); struct.setParamsIsSet(true); } } } } public static class performPluginOperation_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("performPluginOperation_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new performPluginOperation_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new performPluginOperation_resultTupleSchemeFactory()); } public String success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(performPluginOperation_result.class, metaDataMap); } public performPluginOperation_result() { } public performPluginOperation_result( String success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public performPluginOperation_result(performPluginOperation_result other) { if (other.isSetSuccess()) { this.success = other.success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public performPluginOperation_result deepCopy() { return new performPluginOperation_result(this); } @Override public void clear() { this.success = null; this.e = null; } public String getSuccess() { return this.success; } public performPluginOperation_result setSuccess(String success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public performPluginOperation_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((String)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof performPluginOperation_result) return this.equals((performPluginOperation_result)that); return false; } public boolean equals(performPluginOperation_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(performPluginOperation_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("performPluginOperation_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 performPluginOperation_resultStandardSchemeFactory implements SchemeFactory { public performPluginOperation_resultStandardScheme getScheme() { return new performPluginOperation_resultStandardScheme(); } } private static class performPluginOperation_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, performPluginOperation_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, performPluginOperation_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeString(struct.success); oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class performPluginOperation_resultTupleSchemeFactory implements SchemeFactory { public performPluginOperation_resultTupleScheme getScheme() { return new performPluginOperation_resultTupleScheme(); } } private static class performPluginOperation_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, performPluginOperation_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { oprot.writeString(struct.success); } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, performPluginOperation_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class queryByNamedQuery_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("queryByNamedQuery_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField NAMED_QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("namedQuery", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField REVISION_FIELD_DESC = new org.apache.thrift.protocol.TField("revision", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new queryByNamedQuery_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new queryByNamedQuery_argsTupleSchemeFactory()); } public String projectName; // required public String namedQuery; // required public Revision revision; // 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 { PROJECT_NAME((short)1, "projectName"), NAMED_QUERY((short)2, "namedQuery"), REVISION((short)3, "revision"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // NAMED_QUERY return NAMED_QUERY; case 3: // REVISION return REVISION; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.NAMED_QUERY, new org.apache.thrift.meta_data.FieldMetaData("namedQuery", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REVISION, new org.apache.thrift.meta_data.FieldMetaData("revision", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Revision.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryByNamedQuery_args.class, metaDataMap); } public queryByNamedQuery_args() { } public queryByNamedQuery_args( String projectName, String namedQuery, Revision revision) { this(); this.projectName = projectName; this.namedQuery = namedQuery; this.revision = revision; } /** * Performs a deep copy on other. */ public queryByNamedQuery_args(queryByNamedQuery_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetNamedQuery()) { this.namedQuery = other.namedQuery; } if (other.isSetRevision()) { this.revision = new Revision(other.revision); } } public queryByNamedQuery_args deepCopy() { return new queryByNamedQuery_args(this); } @Override public void clear() { this.projectName = null; this.namedQuery = null; this.revision = null; } public String getProjectName() { return this.projectName; } public queryByNamedQuery_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getNamedQuery() { return this.namedQuery; } public queryByNamedQuery_args setNamedQuery(String namedQuery) { this.namedQuery = namedQuery; return this; } public void unsetNamedQuery() { this.namedQuery = null; } /** Returns true if field namedQuery is set (has been assigned a value) and false otherwise */ public boolean isSetNamedQuery() { return this.namedQuery != null; } public void setNamedQueryIsSet(boolean value) { if (!value) { this.namedQuery = null; } } public Revision getRevision() { return this.revision; } public queryByNamedQuery_args setRevision(Revision revision) { this.revision = revision; return this; } public void unsetRevision() { this.revision = null; } /** Returns true if field revision is set (has been assigned a value) and false otherwise */ public boolean isSetRevision() { return this.revision != null; } public void setRevisionIsSet(boolean value) { if (!value) { this.revision = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case NAMED_QUERY: if (value == null) { unsetNamedQuery(); } else { setNamedQuery((String)value); } break; case REVISION: if (value == null) { unsetRevision(); } else { setRevision((Revision)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case NAMED_QUERY: return getNamedQuery(); case REVISION: return getRevision(); } 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 PROJECT_NAME: return isSetProjectName(); case NAMED_QUERY: return isSetNamedQuery(); case REVISION: return isSetRevision(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof queryByNamedQuery_args) return this.equals((queryByNamedQuery_args)that); return false; } public boolean equals(queryByNamedQuery_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_namedQuery = true && this.isSetNamedQuery(); boolean that_present_namedQuery = true && that.isSetNamedQuery(); if (this_present_namedQuery || that_present_namedQuery) { if (!(this_present_namedQuery && that_present_namedQuery)) return false; if (!this.namedQuery.equals(that.namedQuery)) return false; } boolean this_present_revision = true && this.isSetRevision(); boolean that_present_revision = true && that.isSetRevision(); if (this_present_revision || that_present_revision) { if (!(this_present_revision && that_present_revision)) return false; if (!this.revision.equals(that.revision)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_namedQuery = true && (isSetNamedQuery()); list.add(present_namedQuery); if (present_namedQuery) list.add(namedQuery); boolean present_revision = true && (isSetRevision()); list.add(present_revision); if (present_revision) list.add(revision); return list.hashCode(); } @Override public int compareTo(queryByNamedQuery_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetNamedQuery()).compareTo(other.isSetNamedQuery()); if (lastComparison != 0) { return lastComparison; } if (isSetNamedQuery()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.namedQuery, other.namedQuery); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetRevision()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision); 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("queryByNamedQuery_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("namedQuery:"); if (this.namedQuery == null) { sb.append("null"); } else { sb.append(this.namedQuery); } first = false; if (!first) sb.append(", "); sb.append("revision:"); if (this.revision == null) { sb.append("null"); } else { sb.append(this.revision); } 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 (revision != null) { revision.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 queryByNamedQuery_argsStandardSchemeFactory implements SchemeFactory { public queryByNamedQuery_argsStandardScheme getScheme() { return new queryByNamedQuery_argsStandardScheme(); } } private static class queryByNamedQuery_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, queryByNamedQuery_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // NAMED_QUERY if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.namedQuery = iprot.readString(); struct.setNamedQueryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // REVISION if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, queryByNamedQuery_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.namedQuery != null) { oprot.writeFieldBegin(NAMED_QUERY_FIELD_DESC); oprot.writeString(struct.namedQuery); oprot.writeFieldEnd(); } if (struct.revision != null) { oprot.writeFieldBegin(REVISION_FIELD_DESC); struct.revision.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class queryByNamedQuery_argsTupleSchemeFactory implements SchemeFactory { public queryByNamedQuery_argsTupleScheme getScheme() { return new queryByNamedQuery_argsTupleScheme(); } } private static class queryByNamedQuery_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, queryByNamedQuery_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetNamedQuery()) { optionals.set(1); } if (struct.isSetRevision()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetNamedQuery()) { oprot.writeString(struct.namedQuery); } if (struct.isSetRevision()) { struct.revision.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, queryByNamedQuery_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.namedQuery = iprot.readString(); struct.setNamedQueryIsSet(true); } if (incoming.get(2)) { struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); } } } } public static class queryByNamedQuery_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("queryByNamedQuery_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new queryByNamedQuery_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new queryByNamedQuery_resultTupleSchemeFactory()); } public String success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(String name) { return byName.get(name); } private final short _thriftId; private final String _fieldName; _Fields(short thriftId, String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public String getFieldName() { return _fieldName; } } // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(queryByNamedQuery_result.class, metaDataMap); } public queryByNamedQuery_result() { } public queryByNamedQuery_result( String success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public queryByNamedQuery_result(queryByNamedQuery_result other) { if (other.isSetSuccess()) { this.success = other.success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public queryByNamedQuery_result deepCopy() { return new queryByNamedQuery_result(this); } @Override public void clear() { this.success = null; this.e = null; } public String getSuccess() { return this.success; } public queryByNamedQuery_result setSuccess(String success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public queryByNamedQuery_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((String)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof queryByNamedQuery_result) return this.equals((queryByNamedQuery_result)that); return false; } public boolean equals(queryByNamedQuery_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(queryByNamedQuery_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("queryByNamedQuery_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 queryByNamedQuery_resultStandardSchemeFactory implements SchemeFactory { public queryByNamedQuery_resultStandardScheme getScheme() { return new queryByNamedQuery_resultStandardScheme(); } } private static class queryByNamedQuery_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, queryByNamedQuery_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, queryByNamedQuery_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); oprot.writeString(struct.success); oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class queryByNamedQuery_resultTupleSchemeFactory implements SchemeFactory { public queryByNamedQuery_resultTupleScheme getScheme() { return new queryByNamedQuery_resultTupleScheme(); } } private static class queryByNamedQuery_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, queryByNamedQuery_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { oprot.writeString(struct.success); } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, queryByNamedQuery_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.success = iprot.readString(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } public static class listSubscribers_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listSubscribers_args"); private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField REPOSITORY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("repositoryName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listSubscribers_argsStandardSchemeFactory()); schemes.put(TupleScheme.class, new listSubscribers_argsTupleSchemeFactory()); } public String projectName; // required public String repositoryName; // required public String path; // 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 { PROJECT_NAME((short)1, "projectName"), REPOSITORY_NAME((short)2, "repositoryName"), PATH((short)3, "path"); private static final Map byName = new HashMap(); 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: // PROJECT_NAME return PROJECT_NAME; case 2: // REPOSITORY_NAME return REPOSITORY_NAME; case 3: // PATH return PATH; 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.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.REPOSITORY_NAME, new org.apache.thrift.meta_data.FieldMetaData("repositoryName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "EntryPath"))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listSubscribers_args.class, metaDataMap); } public listSubscribers_args() { } public listSubscribers_args( String projectName, String repositoryName, String path) { this(); this.projectName = projectName; this.repositoryName = repositoryName; this.path = path; } /** * Performs a deep copy on other. */ public listSubscribers_args(listSubscribers_args other) { if (other.isSetProjectName()) { this.projectName = other.projectName; } if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetPath()) { this.path = other.path; } } public listSubscribers_args deepCopy() { return new listSubscribers_args(this); } @Override public void clear() { this.projectName = null; this.repositoryName = null; this.path = null; } public String getProjectName() { return this.projectName; } public listSubscribers_args setProjectName(String projectName) { this.projectName = projectName; return this; } public void unsetProjectName() { this.projectName = null; } /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ public boolean isSetProjectName() { return this.projectName != null; } public void setProjectNameIsSet(boolean value) { if (!value) { this.projectName = null; } } public String getRepositoryName() { return this.repositoryName; } public listSubscribers_args setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; return this; } public void unsetRepositoryName() { this.repositoryName = null; } /** Returns true if field repositoryName is set (has been assigned a value) and false otherwise */ public boolean isSetRepositoryName() { return this.repositoryName != null; } public void setRepositoryNameIsSet(boolean value) { if (!value) { this.repositoryName = null; } } public String getPath() { return this.path; } public listSubscribers_args setPath(String path) { this.path = path; return this; } public void unsetPath() { this.path = null; } /** Returns true if field path is set (has been assigned a value) and false otherwise */ public boolean isSetPath() { return this.path != null; } public void setPathIsSet(boolean value) { if (!value) { this.path = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case PROJECT_NAME: if (value == null) { unsetProjectName(); } else { setProjectName((String)value); } break; case REPOSITORY_NAME: if (value == null) { unsetRepositoryName(); } else { setRepositoryName((String)value); } break; case PATH: if (value == null) { unsetPath(); } else { setPath((String)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case PROJECT_NAME: return getProjectName(); case REPOSITORY_NAME: return getRepositoryName(); case PATH: return getPath(); } 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 PROJECT_NAME: return isSetProjectName(); case REPOSITORY_NAME: return isSetRepositoryName(); case PATH: return isSetPath(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listSubscribers_args) return this.equals((listSubscribers_args)that); return false; } public boolean equals(listSubscribers_args that) { if (that == null) return false; boolean this_present_projectName = true && this.isSetProjectName(); boolean that_present_projectName = true && that.isSetProjectName(); if (this_present_projectName || that_present_projectName) { if (!(this_present_projectName && that_present_projectName)) return false; if (!this.projectName.equals(that.projectName)) return false; } boolean this_present_repositoryName = true && this.isSetRepositoryName(); boolean that_present_repositoryName = true && that.isSetRepositoryName(); if (this_present_repositoryName || that_present_repositoryName) { if (!(this_present_repositoryName && that_present_repositoryName)) return false; if (!this.repositoryName.equals(that.repositoryName)) return false; } boolean this_present_path = true && this.isSetPath(); boolean that_present_path = true && that.isSetPath(); if (this_present_path || that_present_path) { if (!(this_present_path && that_present_path)) return false; if (!this.path.equals(that.path)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_projectName = true && (isSetProjectName()); list.add(present_projectName); if (present_projectName) list.add(projectName); boolean present_repositoryName = true && (isSetRepositoryName()); list.add(present_repositoryName); if (present_repositoryName) list.add(repositoryName); boolean present_path = true && (isSetPath()); list.add(present_path); if (present_path) list.add(path); return list.hashCode(); } @Override public int compareTo(listSubscribers_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetProjectName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRepositoryName()).compareTo(other.isSetRepositoryName()); if (lastComparison != 0) { return lastComparison; } if (isSetRepositoryName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repositoryName, other.repositoryName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPath()).compareTo(other.isSetPath()); if (lastComparison != 0) { return lastComparison; } if (isSetPath()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, other.path); 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("listSubscribers_args("); boolean first = true; sb.append("projectName:"); if (this.projectName == null) { sb.append("null"); } else { sb.append(this.projectName); } first = false; if (!first) sb.append(", "); sb.append("repositoryName:"); if (this.repositoryName == null) { sb.append("null"); } else { sb.append(this.repositoryName); } first = false; if (!first) sb.append(", "); sb.append("path:"); if (this.path == null) { sb.append("null"); } else { sb.append(this.path); } 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 listSubscribers_argsStandardSchemeFactory implements SchemeFactory { public listSubscribers_argsStandardScheme getScheme() { return new listSubscribers_argsStandardScheme(); } } private static class listSubscribers_argsStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listSubscribers_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: // PROJECT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // REPOSITORY_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // PATH if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.path = iprot.readString(); struct.setPathIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listSubscribers_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.projectName != null) { oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); oprot.writeString(struct.projectName); oprot.writeFieldEnd(); } if (struct.repositoryName != null) { oprot.writeFieldBegin(REPOSITORY_NAME_FIELD_DESC); oprot.writeString(struct.repositoryName); oprot.writeFieldEnd(); } if (struct.path != null) { oprot.writeFieldBegin(PATH_FIELD_DESC); oprot.writeString(struct.path); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listSubscribers_argsTupleSchemeFactory implements SchemeFactory { public listSubscribers_argsTupleScheme getScheme() { return new listSubscribers_argsTupleScheme(); } } private static class listSubscribers_argsTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listSubscribers_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetProjectName()) { optionals.set(0); } if (struct.isSetRepositoryName()) { optionals.set(1); } if (struct.isSetPath()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetProjectName()) { oprot.writeString(struct.projectName); } if (struct.isSetRepositoryName()) { oprot.writeString(struct.repositoryName); } if (struct.isSetPath()) { oprot.writeString(struct.path); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listSubscribers_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.projectName = iprot.readString(); struct.setProjectNameIsSet(true); } if (incoming.get(1)) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } if (incoming.get(2)) { struct.path = iprot.readString(); struct.setPathIsSet(true); } } } } public static class listSubscribers_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listSubscribers_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { schemes.put(StandardScheme.class, new listSubscribers_resultStandardSchemeFactory()); schemes.put(TupleScheme.class, new listSubscribers_resultTupleSchemeFactory()); } public List success; // required public CentralDogmaException e; // 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"), E((short)1, "e"); private static final Map byName = new HashMap(); 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: // E return E; 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Subscriber.class)))); tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", 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(listSubscribers_result.class, metaDataMap); } public listSubscribers_result() { } public listSubscribers_result( List success, CentralDogmaException e) { this(); this.success = success; this.e = e; } /** * Performs a deep copy on other. */ public listSubscribers_result(listSubscribers_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Subscriber other_element : other.success) { __this__success.add(new Subscriber(other_element)); } this.success = __this__success; } if (other.isSetE()) { this.e = new CentralDogmaException(other.e); } } public listSubscribers_result deepCopy() { return new listSubscribers_result(this); } @Override public void clear() { this.success = null; this.e = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } public void addToSuccess(Subscriber elem) { if (this.success == null) { this.success = new ArrayList(); } this.success.add(elem); } public List getSuccess() { return this.success; } public listSubscribers_result setSuccess(List success) { this.success = success; return this; } public void unsetSuccess() { this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { return this.success != null; } public void setSuccessIsSet(boolean value) { if (!value) { this.success = null; } } public CentralDogmaException getE() { return this.e; } public listSubscribers_result setE(CentralDogmaException e) { this.e = e; return this; } public void unsetE() { this.e = null; } /** Returns true if field e is set (has been assigned a value) and false otherwise */ public boolean isSetE() { return this.e != null; } public void setEIsSet(boolean value) { if (!value) { this.e = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { setSuccess((List)value); } break; case E: if (value == null) { unsetE(); } else { setE((CentralDogmaException)value); } break; } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: return getSuccess(); case E: return getE(); } throw new IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SUCCESS: return isSetSuccess(); case E: return isSetE(); } throw new IllegalStateException(); } @Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof listSubscribers_result) return this.equals((listSubscribers_result)that); return false; } public boolean equals(listSubscribers_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } boolean this_present_e = true && this.isSetE(); boolean that_present_e = true && that.isSetE(); if (this_present_e || that_present_e) { if (!(this_present_e && that_present_e)) return false; if (!this.e.equals(that.e)) return false; } return true; } @Override public int hashCode() { List list = new ArrayList(); boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); boolean present_e = true && (isSetE()); list.add(present_e); if (present_e) list.add(e); return list.hashCode(); } @Override public int compareTo(listSubscribers_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetE()).compareTo(other.isSetE()); if (lastComparison != 0) { return lastComparison; } if (isSetE()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, other.e); 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("listSubscribers_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("e:"); if (this.e == null) { sb.append("null"); } else { sb.append(this.e); } 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 listSubscribers_resultStandardSchemeFactory implements SchemeFactory { public listSubscribers_resultStandardScheme getScheme() { return new listSubscribers_resultStandardScheme(); } } private static class listSubscribers_resultStandardScheme extends StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, listSubscribers_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.LIST) { { org.apache.thrift.protocol.TList _list184 = iprot.readListBegin(); struct.success = new ArrayList(_list184.size); Subscriber _elem185; for (int _i186 = 0; _i186 < _list184.size; ++_i186) { _elem185 = new Subscriber(); _elem185.read(iprot); struct.success.add(_elem185); } iprot.readListEnd(); } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 1: // E if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, listSubscribers_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); for (Subscriber _iter187 : struct.success) { _iter187.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.e != null) { oprot.writeFieldBegin(E_FIELD_DESC); struct.e.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class listSubscribers_resultTupleSchemeFactory implements SchemeFactory { public listSubscribers_resultTupleScheme getScheme() { return new listSubscribers_resultTupleScheme(); } } private static class listSubscribers_resultTupleScheme extends TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, listSubscribers_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } if (struct.isSetE()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Subscriber _iter188 : struct.success) { _iter188.write(oprot); } } } if (struct.isSetE()) { struct.e.write(oprot); } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, listSubscribers_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list189 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list189.size); Subscriber _elem190; for (int _i191 = 0; _i191 < _list189.size; ++_i191) { _elem190 = new Subscriber(); _elem190.read(iprot); struct.success.add(_elem190); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { struct.e = new CentralDogmaException(); struct.e.read(iprot); struct.setEIsSet(true); } } } } }